Live data from Hacker News

You probably don't need a JavaScript framework

slack-files.com

11–20 of 356 posts

Re: You probably don't need a JavaScript framework

#11

You don't need one, but if you don't eventually adopt one, you'll end up writing one.

Yep. If you're getting paid to maintain even 10-20 UI's, frameworks help preserve your sanity. At least you'll know what to expect from the boilerplate and what are the general capabilities of dozens of apps, just by learning 1 framework. And the more popular the framework, the easier it is to hire new developers to work on your apps.

Re: You probably don't need a JavaScript framework

#12
post #2

I have been avoiding JS for years (not out of hate, just the job) and every time I dabble in the node/js framework ecosystem I end up turning away frustrated. I have a few small personal projects that I haven't started due to lack of desire in building the front end I want, after reading this I'm going to give them a shot and see how far I can go with out all the goodies!

I was in the same boat, tried reading tutorials for Angluar/Ember/Backbone/etc and wanted to throw up because of all the complexity and prior web experience/knowledge that they expect you to know. But then tried Meteor and everything there made a lot of sense to me.

Re: You probably don't need a JavaScript framework

#14
post #7

Earlier quoted context omitted.

"That the author kind of misses this point makes me pay less attention to the rest of the post." Too bad. The author addressed everything you said. You just didn't read past the sentence you quoted. Nowhere does the piece imply that you should render every state change server-side. In fact, it goes on to show, with specific examples, of how you can get data-binding and partial-update behavior with web-native APIs. Th…

That doesn't address the fact that, to some of us, React simplifies creating, testing, and maintaining complex UI due to its functional nature. React is simple to me, and that's why I like using it.

"React is simple to me, and that's why I like using it."

Horses for courses. The author is merely making the argument that you don't need react, and the GP comment didn't bother to read the argument before responding.

Re: You probably don't need a JavaScript framework

#15

React doesn't exist to handle the massive amounts of data that facebook has. React exists to make complex UIs easier to build and maintain. Being able to just write the code once to render a UI from some state and then just reloading the entire UI when the state changes is an incredible simplification of your code. That the author kind of misses this point makes me pay less attention to the rest of the post.

I remember seeing an article a while ago that suggested react was a bad paradigm because of a similar paradigm that failed... something about COM interfaces in windows programs? Does anyone remember such an article? That was one of the few truly interesting critiques of react that I have read.

Don't get me wrong, I'm not a React die hard but I definitely do like that it exists, and I understand where it fits on the library/framework spectrum (somewhere inbetween knockoutjs and angular) -- and don't try and use it when I shouldn't be.

Re: You probably don't need a JavaScript framework

#17

React doesn't exist to handle the massive amounts of data that facebook has. React exists to make complex UIs easier to build and maintain. Being able to just write the code once to render a UI from some state and then just reloading the entire UI when the state changes is an incredible simplification of your code. That the author kind of misses this point makes me pay less attention to the rest of the post.

Moreover, I don't even consider React a framework. I consider it a library for my creating my view layer. Frameworks, at least to me coming from back end, have all sorts of extra bells and whistles. Something like Angular I would consider a framework and it has its OWN view layer inside. But React feels much different, it feels like something your (non-view layer) framework should feed into, not replace entirely.

Re: You probably don't need a JavaScript framework

#18
post #9

You don't need one, but if you don't eventually adopt one, you'll end up writing one.

Sure, you may well end up writing one, but it's likely to be a fraction of the size. My current entire app is running at half the size of jquery, which is getting me awesomely quick page loads even on poor mobile connections. The dev time was longer, but not crazily longer, and the surface area for testing is somewhat smaller

In reality JavaScript size means very little when a single image might be 500k.

Re: You probably don't need a JavaScript framework

#20
post #18
post #9

Earlier quoted context omitted.

Sure, you may well end up writing one, but it's likely to be a fraction of the size. My current entire app is running at half the size of jquery, which is getting me awesomely quick page loads even on poor mobile connections. The dev time was longer, but not crazily longer, and the surface area for testing is somewhat smaller

In reality JavaScript size means very little when a single image might be 500k.

Unfortunately I have to disagree. The JavaScript Engine still have to parse and interpret the code. This can take a bit of time, especially on mobile devices.
Post reply on HN