4 ms·
> which is not true of a framework What framework are you talking about ? Symfony or Silex do exactly that : "respects the principles of abstraction that the p
by aikah 11y ago
> which is not true of a framework
What framework are you talking about ? Symfony or Silex do exactly that : "respects the principles of abstraction that the programming language provides". Spring does that too. Any framework powered by dependency injection does that. Only frameworks that try to be to smart for their own good like Rails violate basic separation of concerns. Furthermore, just have a look at most Go or Node web apps out there : globals everywhere, tightly coupled code, no separation of concerns, no dependency injection,direct db calls in controllers... All because "you don't need a framework with Go" or "Dependency injection makes no sense in Javascript", good to luck to the people maintaining these messes 5 years down the road. Not using a framework doesn't make a automatically a codebase better. A framework however can mandate some discipline,especially when based on IoC : on one side : the framework's code , on the other side : the user code and the only glue is the manifest declaring dependencies between the two.
- kganser 11y agoYou're right that IoC/Dependency injection pretty much define a framework -- that and ascii folder diagrams. IoC and other patterns are pretty common and well regarded, but they are not features of the language. If you had a library using functional programming instead of an IoC framework you'd be closer to the "principles of abstraction that the programming language provides."
- mchahn 11y ago> globals everywhere, tightly coupled code, no separation of concerns Speak for yourself. I am not guilty of any of these in my large node applications. And I use no frameworks, just npm libraries.
- deleted 11y ago[deleted]