Hacker News new | ask | show | jobs
by kking50 4109 days ago
I love lightweight frameworks that exist mainly to reduce boilerplate code and, for web development, mitigate cross-browser compatibility issues. ExpressJS and jQuery are good JavaScript examples.

I tend to avoid frameworks that attempt to push developers into coding "the framework's way" (cough cough AngularJS). Such frameworks are often great in the beginning, but once you pass the basic application stage, a deep understanding of the framework itself will become necessary and it will stop saving you time. Sometimes you have to adapt special ways of writing tests, debug nonsensical stack trace dumps, etc. Not to mention it increases the overhead of bringing new developers on the project.

tl;dr Don't use heavyweight frameworks unless you have a good reason.

2 comments

> a deep understanding of the framework itself will become necessary and it will stop saving you time

This is true for any 3rd party code you're going to use.If you don't know the difference between jQuery the DOM and how to go from one to the other within jQuery you're going to do a lot of mistakes as DOM apis evolve fast while jQuery features don't.

> I tend to avoid frameworks that attempt to push developers into coding "the framework's way"

What makes you think your way is better? and when you end up working with several devs , are going to meet every morning to talk about what's the good way to do things for every aspect of the project ? using a third party frameworks helps , people only have to agree on what 3rd party code they are going to use.

And libraries are not black boxes. Reading 10 000 lines of code shouldn't considered a burden or one should reconsider career choices.

jquery is a library not a framework but yeah i agree

edit: sheesh why did i get downvoted for this? it is absolutely a library which is completely different from a framework. even jquery's website says it is a library.

Roughly speaking, jQuery is a library for the app developers and a framework for the plugin authors. So it is both a library and framework at once.
> framework for the plugin authors

interesting viewpoint, I hadn't thought of jQuery this way.