News! Tech related notes are NOW published
to ShippingBytes.
See you there! I always felt this was not the right place for me to write
consistently about tech and tools. So if you want to read more about that see
you at the other side
Hey! I see you use an adblocker as I do as
well! I use Carbon Adv to support this tiny website a network with developers
in mind. Please consider disabling the adblocker for this website to support my
work.
Today all frameworks are modulable but it isn’t just a beautiful word, behind it there are a lot of concepts and ideas:
The modularity helps you to reuse parts of code in different projects
Every component is indipendent so you work on single part of code
Every component solves a specific problem… it’s a beautiful concept that helps you with maintainance!
other stuffs..
As you can imagine there is a drawback, all this requires a big effort.
Ideally every component requires personal circle of release, repository, commits, pull requests, travis conf, documentation etc. etc.
Anyway several shorcuts are available. For instance, git subtree could help you in this war but the key is this: you need an agreement to win.
Zend Framwork Community choose another street, Zend\Mvc in this moment required:
A few require-dev dependencies are used into the component to run some features, why? This force me to think “Dependencies of this feature are included or not?”!!
Composer was born to solve it! In my opinion the cost of the question is highest than download a few unused classes.
There are a lot of unused classes? Maybe too much?
Even if the right answer donsn’t exist I think thant some indicators may help you to understand when is the moment to split the component: