4 ms·
I don't know what's wrong with me. I hate JavaScript. I tried learning react and redux and just gave up. All this to put a button and a field on a page. React w
by bennysomething 5y ago
I don't know what's wrong with me. I hate JavaScript. I tried learning react and redux and just gave up. All this to put a button and a field on a page. React was basically invented by John carmack to do doom 3 and copied to render web pages. Is this really required!? It's not a 3d games engine. I've worked on web apps that require a lot of page updates per minute and I still hate react. I stay the hell away from front end web Dev as it just feels like hell. Sorry drunken rant.
Edit: I also worked on a node app that should have been written in a staticall typed language. Bugs that could have been caught at compile time literally caused me utter misery in on call overtime. All because some guy in our team demanded we wrote it in node. This was way before type script. I actually feel physical pain thinking about.
- adamscybot 5y agoPerhaps give it another try, but with TypeScript. Im a front end dev and yes, I feel the JS pain. I look back at how I used to do things and think "wtf". TS completely changed this and brought it back to sanity.
- hajile 5y agoI’m pretty sure the real issue is backend vs UI rather than JS/HTML. If you’ve worked with a few alternatives, the web suddenly doesn’t look too bad. Sure, a couple solutions are probably nicer, but they are mostly platform locked and way slower to develop on. UI programming is literally the fine art of handling what your most exasperating client is capable of inflicting on your UI. I suspect this is the core complaint.
- bobthepanda 5y agoat least part of the problem is that Javascript and webdev have really low barriers to entry, which is positive in the sense that anyone can do it, but the problem is that anyone can reach that unhappy valley of knowledgeable enough to do a lot of damage without realizing it. If you put bad developers on other languages they usually end up running into some wall first but Javascript is pretty forgiving.
- schwartzworld 5y agoYou should really try learning react first without redux. Redux is for managing global state. It's rarely needed but has become the defacto solution for react state for some reason. React on its own is much simpler, once you grok the react compositional model. I don't know how you can do that while using redux too.
- acemarke 5y agoWe specifically recommend that most folks should _not_ try learning Redux until after they're already comfortable with React: https://redux.js.org/tutorials/essentials/part-1-overview-concepts#how-to-read-this-tutorial https://redux.js.org/tutorials/essentials/part-1-overview-co...
- schwartzworld 5y agoThat's great! (Although redux enthusiasts I've met tend to disagree with that philosophy).
- acemarke 5y agoYeah, unfortunately there's been lots of folks out there who have tried to insist that Redux should be used everywhere, all the time, and ignored the guidance we've offered over the years on when it _might_ make sense to use Redux.
- TheRealSteel 5y ago"React was basically invented by John carmack to do doom 3 and copied to render web pages. " Does anyone have any reading material on this? I've never heard it and a quick Google turned up nothing, but I'd love to read about it. Unless it's a joke that went over my head...?
- bennysomething 5y agohttps://m.youtube.com/watch?v=nYkdrAPrdcw# https://m.youtube.com/watch?v=nYkdrAPrdcw# 32 minutes in.