Write Libraries, Not Frameworks
A framework, usually, must predict ahead of time every kind of thing a user of it might need to do within its walls.The one thing not mentioned in the article is that the above line of thinking is almost guaranteed to lead to an insane level of abstraction, which was parodied in this classic article from nearly 15 years ago:http://web.archive.org/web/20141018110445/http://discuss.joe...(Sadly, that site is gone, but the memories live on...)Addendum: to see this in practice, one needs to look no farther than Spring, the famous Java framework:https://docs.spring.io/spring-framework/docs/current/javadoc...https://docs.spring.io/spring-framework/docs/current/javadoc...https://docs.spring.io/spring-framework/docs/current/javadoc...