News for hackers. Stuff that matters.
Re:Do Not Follow JavaScript Trends by 013a on Tuesday June 16, 2020 @01:21PM (#23541623)
Yeah; I think your timeline is off. I don't remember React being the very clear choice until probably 2017. It was still up in the air in 2016, and certainly moreso in 2015.

> by 2015 React "won" the framework battle.

Things have calmed down now. Its better, and has been for a couple years (not 5+ years). But, this isn't a battle. Its not a war. Just because things are calm now, doesn't mean they won't go crazy again.

The core of the issue has nothing to do with technology, or the frameworks, or programming languages. It has everything to do with how you, I, and Dave, who's reading this right now, respond when these new technologies come out. Just. Say. No. Play with them. Build toy projects. Give feedback. But for the love of God, at the end of the day, you Say No. No, we will not be integrating this. Looks cool though, we'll circle back in a year and see what progress you've made.

Re:Do Not Follow JavaScript Trends by ng12 on Tuesday June 16, 2020 @03:19PM (#23542970)
Either way the article is way off:

> Let us quickly travel back in time to 2016 ... If you are using a JavaScript framework or want to use a framework, Angular.js is probably something you would choose

Angula.JS was in the "failed experiment" category by 2016. The announcement that Angular2 was a rewrite (in 2014) was proof of that.

So in 2016 Angular was still really new and React had eaten AngularJS's market share.

Re:Do Not Follow JavaScript Trends by mercer on Tuesday June 16, 2020 @09:24PM (#23546616)
I completely disagree, at least when it comes to my surroundings.

In 2016, the vast majority of recruitment offers I received were Angular, or jQuery/javascript. And while HN (thankfully) was all about React and whatnot, this situation continued for a good few years. Angular was the safe choice which I guess the PM's wouldn't get fired for. I remember many, many conversations with various recruiters where I told them I refused to do Angular projects, but I'd love to work on a React or even 'vanilla' JS project.

I'd say that after React became 'standard' on HN (around the time Vue popped up I suppose?), it took at least 2 years before I started getting emails and calls from people looking for React work.

Currently hoping this will happen with Elixir but not getting my hopes up :). Still, not having this sword of damocles hanging over my head that 'maybe I should learn Angular' is real nice.

Re:Do Not Follow JavaScript Trends by phponpcp on Tuesday June 16, 2020 @01:43PM (#23541869)
"I don't remember React being the very clear choice until probably 2017."

Maybe you werent paying attention then.

Re:Do Not Follow JavaScript Trends by Izkata on Tuesday June 16, 2020 @03:03PM (#23542814)
CSS Modules didn't become the default way to go until sometime in 2016. Before that point people were still stumbling over how to manage their CSS in a component-oriented fashion, and it was only once that happened did React "win".
Re:Do Not Follow JavaScript Trends by CraftThatBlock on Tuesday June 16, 2020 @06:57PM (#23545353)
CS Modules are still not the "default", this space is still up in the air. There's CSS-in-JS (like styled-components or Emotion), Sass, plain CSS, etc.
Re:Do Not Follow JavaScript Trends by Izkata on Tuesday June 16, 2020 @09:11PM (#23546513)
They're at least compatible then.

More important to my point, back in 2015/early 2016 and before, you more likely than not had to somehow manually include the CSS for a given component library into your page. Right about the same time CSS Modules got popular, the CSS from libraries started getting included automatically in the compiled CSS file (whether by way of CSS Modules or something else that at least doesn't conflict with it).

I remember this part of the timeline pretty distinctly because late 2015 is when we started a new project in React, and struggled with how to reliably deal with CSS for several months.

Re:Do Not Follow JavaScript Trends by gitgud on Tuesday June 16, 2020 @07:45PM (#23545760)
Even utility CSS like Tailwind is gaining popularity...
Re:Do Not Follow JavaScript Trends by mercer on Tuesday June 16, 2020 @09:25PM (#23546623)
It wasn't in many places even until 2018 at least. HN isn't the real world.