Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Awesome! Is there a design architecture that you find useful for organizing your code? I noticed you split the code a bit into business vs other. I recently stumbled upon Clean Architecture that helps me make sense of things. Programming isn't my primary field so the more structure in a project, the better (within reason).


I found it most useful to follow what people are already used to, which is to say that it follows the principles laid out by Symfony.

The code for the framework is its own composer library which is pulled in to the vendor directory, the code for the application sits within src/{BundleNamespace}.

If there's a service, it's a service, if there's a controller, it's in Controller, etc.

The aim is to maximise ergonomics and familiarity while minimising surprises. If a developer can pick up your microframework and be instantly writing code then you've done your job right.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: