|
|
|
|
|
by thanzex
1351 days ago
|
|
Hi! While the project does look very interesting, i'm kind of put off by the code.
While it is pretty organized and neat, I can see that all of the services offered are hard-coded. Like the 330 lines long if-else chain in apps/api/src/lib/services/common.ts. This way every time you need to set add a new service to coolify there's the need to ship a new version. Why did you choose to go this way rather than a more generalized concept of a service?
Wouldn't having a generic service architecture be more maintainable and ( imo ) more importantly add the capability to have a dynamic, global and customizable 'app store' of sort? |
|
I agree and disagree.
I agree that this kind of approach to coding is something that would put anyone senior-ish off totally, but I disagree at the same time because it's only 20-ish services, and the code is easily refactorable.
My assumption - after having read code 30+ years - is that this is done on purpose, so that they want to stabilise the approach and refactor it later. Though, as we all know, there's no thing as "I'll fix this later" in programming, but still (in this case) not something that would put me off.
Also, it's on github, so I could always refactor it for them if I'm not happy with it.