r/javascript • • Aug 27 '15

Stop Using React for EVERYTHING!

https://medium.com/@zackargyle/stop-using-react-for-everything-c8297ac1a644
3 Upvotes

131 comments sorted by

View all comments

41

u/ub3rgeek Aug 27 '15

I like ES6. I will use it for any project that requires Javascript. I build User Interfaces. React is a tool for building user interfaces. I will use React for building user interfaces because it is an excellent abstraction for composing user interfaces out of components.

I won't use React to build a toaster, but I would use React to build a UI for the toaster.

0

u/[deleted] Aug 27 '15

[deleted]

3

u/YodaLoL Aug 28 '15

And in order to create that lever and knob from scratch you'll need a lot of other tools and knowledge. You can't just make them appear from thin air - unless you modularise it in components cough React

2

u/dhdfdh Aug 28 '15

What language do they use to create React?

1

u/YodaLoL Aug 28 '15

I'm not following you

1

u/dhdfdh Aug 28 '15

People on reddit are saying things can't be done in plain javascript and they need React or it can't be done, yet, React is made in plain javascript which proves that your statement

You can't just make them appear from thin air - unless you modularise it in components cough React

is false. Any competent programmer can do what React does.

2

u/YodaLoL Aug 28 '15

People on reddit are saying things can't be done in plain javascript

Where?

Frameworks facilitates code reusability, readability, maintainability, security, you name it.

Of course you can reinvent React, but why?

0

u/dhdfdh Aug 28 '15

Reinventing React is not my point.

To the question of "where?", is this your first visit to reddit? 80% of all redditors believe it's impossible to code anything without a framework, library or someone else's code.

2

u/YodaLoL Aug 28 '15

I don't think that sentiment correlates with reality at all. People encourage use of popular, ubiquitous frameworks because of aforementioned reasons.

If someone asks for help on reddit, he/she is not quite capable off writing their own implementation, hence framework hype in comment sections.

0

u/[deleted] Aug 28 '15

[deleted]

-1

u/dhdfdh Aug 28 '15

None of what you said is my point except a modification of this:

most redditors don't have the knowledge or understanding

1

u/theQuandary Aug 28 '15

Changing my statement to Redditors substantially changes my statement. I have no knowledge of the general programming competence level of Reddit as a whole -- probably not what you meant. I would also not make the mistake of saying that most Redditors in the programming sub-reddits are below average (especially since many developers with far above average ability are on reddit).

Finally, I've made frameworks over the course of my career as a developer. I use React because it is easy, effective, has a decent ecosystem of libraries, and reduces my framework maintenance and design time to almost zero. Even a basic version of a React-style framework takes more time than most devs have available to spend on non-paying work.

Claiming that any dev could potentially write a framework using basic JS is like claiming that any dev could potentially write an OS in assembly. Just because a group of devs has done so doesn't mean that doing so is practical.

Technically possible and pragmatically do-able are very different. Calling out redditors for speaking about a practical framework in a pragmatic way does little to contribute to the discussion.

-2

u/dhdfdh Aug 28 '15

I stated it was my modification. My experience with redditors is proof, to me at least, that 80% of are clueless and their whole life experience is based what they read on reddit, which fits in with your own statement that most developers don't have the knowledge or understanding.

Claiming that any dev could potentially write a framework using basic JS is like claiming that any dev could potentially write an OS in assembly.

That you think writing an operating system in assembly is equivalent to writing a framework in JS shows you lack knowledge and understanding, too. You can't blow that line by me and expect me to think you have a good, technical background.

3

u/[deleted] Aug 28 '15

You could use React to build a form for someone to fill out to bid to build your toaster for you

2

u/hahaNodeJS Aug 28 '15

Fuck that bullshit. Use ncurses and C to build the UI for a toaster. What's wrong with you?