3 ms·
> starting from scratch or from a minimal base is massively slower This isn't the better alternative to frameworks. The better alternative is using libraries
by smt88 8y ago
> starting from scratch or from a minimal base is massively slower
This isn't the better alternative to frameworks.
The better alternative is using libraries and optionally a bootstrap code generator, which is not at all "starting from scratch".
The major difference is that you tell the libraries how to work together, rather than the framework telling you how to work.
Some frameworks become like a terrible DSL that you could never translate back into idiomatic code.
- monkeynotes 8y ago> you tell the libraries how to work together Doesn't this just become a bunch of decisions and team cognitive load you have to deal with?
- smt88 8y agoLess than you'd think. The team architect should set up the project structure, not a committew. Most languages have idiomatic conventions for writing framework-less code, so it's not going to look totally unique when they're done.
- klodolph 8y agoWith frameworks you need a mental model of how the framework works. With libraries, you need a mental model of how your code works. On the balance of things, I would say that libraries often (not always) have less cognitive load here. If you need the best library for the job, you can spend as much time as you like picking one. It's a matter of restraint to simply not spend that effort, and instead just pick a library because it meets your needs (without spending more than a moment evaluating whether it is better or worse than alternatives).
- danmaz74 8y ago> > starting from scratch or from a minimal base is massively slower > This isn't the better alternative to frameworks. I was specifically answering to the remark from the what was at the time the top comment, saying that starting from Rack is the best approach.