|
|
|
|
|
by toddmorey
1588 days ago
|
|
Ok, I'll take the counterpoint and offer a few challenges I've seen with libraries. In a sense, you are often assembling your own framework. No judgement there--just good to know what you are getting into. - There's the potential for quite a bit of choice paralysis along the way as you assemble your stack
- It's harder to seek help: as you've likely assembled a unique collection of tools (and therefore encountered unique challenges)
- It's harder to onboard other developers
- There's often more bespoke glue code
- Smaller libraries often have a smaller community and a shorter lifespan
All of that said, I'd likely choose the library approach for certain unique applications and the framework approach for "common / solved problems" like publishing content. |
|
- There's the possibility you will do something very wrong if you roll your own from libraries
For example, HTTP serving frameworks are popular because the HTTP protocol is complicated, not to mention best practices around security that have evolved over decades and are still evolving, and the (ideal framework) will handle a lot of high-level protocol logic (do you really want to parse mimetype ranges and do Accept matching? How about CORS? Cookie signing?) on your behalf, calling into your code only for the business logic.