r/javascript • • Aug 16 '19

Introducing the New React DevTools

https://reactjs.org/blog/2019/08/15/new-react-devtools.html
181 Upvotes

37 comments sorted by

View all comments

-30

u/Ivu47duUjr3Ihs9d Aug 16 '19

Does anyone else miss the good old days when you didn't need all of this React ecosystem shit just to do front end web development?

Long live pure JavaScript, HTML and CSS. It's come a long way since the old days. It's so powerful now. This JS framework and tools churn with updating dependencies every week gets really old really quickly costing time and money.

19

u/Im_not_depressed_AMA Aug 16 '19

Does anyone else miss the good old days when you didn't need all of this React ecosystem shit just to do front end web development?

You mean.... Today?

4

u/fforw Aug 16 '19

Do I miss the days of debugging not yet documented IE6 bugs without even firebug?

That's a no from me.

7

u/evenisto Aug 16 '19

I work on a codebase that uses jQuery extensively, with some parts of it written in React. Before I came, there was no React, there was no webpack, and there was no dependency management. I do not miss it at all. DOM ops beyond adding basic attributes are fucking pain in the ass in vanilla or jQuery. Any sort of UI dynamism is an even bigger pain in the fucking ass. And don't even get me started on modularity. So yeah, I don't know what kind of experience you have, but you either never worked on a big app in vanillajs, so you don't know the pains, or in React, so you don't know how good it actually is.

6

u/two_in_the_bush Aug 16 '19

There's no reason you can't rewrite all of the dependencies yourself and just have them in your own code base and do the maintenance yourself.

I suspect it would quickly exceed the time taken to maintain the dependency versions though.

6

u/____0____0____ Aug 16 '19

This is where I'm at. A coworker of mine is resistant to front end frameworks, but will happily spend plenty of time just messing around in JS trying to emulate certain functions of those frameworks.

Me? I'm just looking for the easiest way to get what I need to done.

3

u/two_in_the_bush Aug 16 '19

Agreed. My last client had a policy of avoiding frameworks. By the time we were done with the app we had rebuilt an entire rendering engine, state management engine, etc. You know, the things React already does and does really well.

1

u/____0____0____ Aug 16 '19

Haha yeah exactly. When I first started learning angular, vue and most recently React, it became very apparent why these frameworks are valuable. I get not wanting dependencies, nobody does. But you cant manage it all by yourself. Even if you can afford the initial creation, the maintainence is going to be the size of the react team plus your app maintenance.

I'm super happy that you can kind of inject them into a project without fully commiting. I have a giant multi-page web app that I manage and it works well, but I realize so many of my problems could have been solved by implementing one of these frameworks from the get go

2

u/[deleted] Aug 17 '19 edited Aug 17 '19

You really went through that? how did you miss the manual labour involved in getting something going? anything really, from the smallest to the most daring, web-dev was almost impossible back then. the churn was out of this world. You had no build tools, correct, but you did everything by hand, which was time consuming and error prone. It isn't much different now, there is absolutely nothing in the newer specs that helps you to make sense of state and view fragments (components), not to mention scalable applications. web components also just point you to a naked dom node. Just like back then, making a professional site with html, javascript and css would be hard. It would cost you hundredfold the time, effort and code. You still would be on your own without a larger community. These apps tend to be dead slow and turn into a unprincipled mess quick.

React is pure javascript, that's why people like it so much. Today you get get a real project up in seconds, write re-usable components in no time, components that are cross platform by nature btw, and share them with a large community, perhaps the largest the world has seen so far, because we're unified maybe for the first time: web, native and mobile developers.

0

u/[deleted] Aug 16 '19

[deleted]

2

u/acemarke Aug 16 '19

Have you taken the time to read through and understand the motivations for why Redux exists, the inspirations for it, and how it's meant to be used? It is completely different than "storing variables in global window scope".

I'd strongly encourage you to read through Dan Abramov's post You Might Not Need Redux, my post The Tao of Redux, Part 1: Implementation and Intent, and the Redux docs page on Prior Art, which cover those topics.