Frameworks are for hacks, libraries for seeds
1–10 of 50 posts
Re: Frameworks are for hacks, libraries for seeds
#2It seems to be a really good idea. It solves the exact problem that the author has.
Re: Frameworks are for hacks, libraries for seeds
#3It's not that frameworks are bad; they quite clearly have their place. It's that they are short term hacks, and as such there is a time and a place for using them, but they aren't a long term solution to a problem.
Re: Frameworks are for hacks, libraries for seeds
#4Re: Frameworks are for hacks, libraries for seeds
#5Because a framework is basically a set of libraries that work together to help you get to a certain goal.
If there's already a framework that helps you get to a certain goal, it can save you a lot of work to use that existing framework instead of making your own. It can also save you a lot of security issues.
But if your requirements don't really connect to the things existing frameworks provide, you'll have to build your own custom framework by collecting all the libraries you need and making them work together the way you want. Maybe you can make a framework out of it so the next person that has the same requirements as you doesn't have to go through this process again.
Re: Frameworks are for hacks, libraries for seeds
#6Frameworks by their nature affect the whole codebase.
This is the low-coupling/high-cohesion benefit of libraries as seen in many places in software engineering.
A codebase with low coupling is inherently more flexible and maintainable. Libraries and well defined, sensible interfaces are critical to good engineering.
Re: Frameworks are for hacks, libraries for seeds
#7When you're using libraries, you're actually making your own custom framework. Because a framework is basically a set of libraries that work together to help you get to a certain goal. If there's already a framework that helps you get to a certain goal, it can save you a lot of work to use that existing framework instead of making your own. It can also save you a lot of security issues. But if your requirements don't…
Arguably a framework is a lot more than just a set of libraries - it's a formal specification for how you layout your code, from what directory you put a class in to how you do your database migrations. Dropping a few libraries in to an app won't make you work in a specific way. Using a framework will.
Re: Frameworks are for hacks, libraries for seeds
#8Great article. It puts into words something that I've been feeling for many years, but have been struggling to express. It's not that frameworks are bad; they quite clearly have their place. It's that they are short term hacks, and as such there is a time and a place for using them, but they aren't a long term solution to a problem.
Re: Frameworks are for hacks, libraries for seeds
#9When you're using libraries, you're actually making your own custom framework. Because a framework is basically a set of libraries that work together to help you get to a certain goal. If there's already a framework that helps you get to a certain goal, it can save you a lot of work to use that existing framework instead of making your own. It can also save you a lot of security issues. But if your requirements don't…
In theory, sure, and as another poster said that's exactly what the PHP-FIG (PHP Framework Interoperation Group) have achieved over the past year or two. However, in practice, the big frameworks that most developers and employers use give you much more than just a set of easily plugged together libraries, typically enough more that you end up building software on-top of that framework, and extracting your product out onto another or swapping a library out becomes nigh-on impossible.