wiki

Component Oriented Programming

Summary taken from https://blog.mediocregopher.com/2020/11/16/component-oriented-programming.html

## Key Points

Benefits

Testing

Its easier to test, there are lots of benifits to writing tests.

Configuration

AKA [Dependency-Injection]

Components are isolated, so easy to either swap out, to configure in different ways, for different use cases.

Criticisms/Questions

Does CoP conflict with object-oriented or functional programming?

I don’t think so. OoP languages will have abstract types as part of their core feature-set; most difficulties are going to be with deliberately not using other features of an OoP language, and with imported libraries in the language perhaps making life inconvenient by not following CoP (specifically regarding cleanup and the use of singletons).