Should Everyone Learn Javascript Deeply?

I’ve been thinking about writing about learning javascript for a while now, but seeing Brad Frost and Heydon Pickerings articles appear over the last couple of weeks has really made me consider my approach to the technology.

Ever since Matt suggested we “learn Javascript deeply” at 2016’s WordCamp US, Javascript has become more prominent in the WordPress community. Clearly Matt was already planning the project that would become Gutenberg and knew that the editor was going to be rebuilt in React.

At the time I felt I had a good grasp of Javascript. I’d written video games in it. I had made countless websites and themes. I know I’m not the best programmer, but I was comfortable. But equally – I guessed Matt was talking about ReactJS.

But, learning React isn’t learning Javascript. React is a library that sits on top of Javascript. Learning React might not be the best thing: 10 years ago learning jQuery was the thing to do, but using it now feels a bit antiquated (despite me building Brush Ninja with it).

I’ve since started learning React, and it’s not as difficult as I had imagined. I feel like I have a good grasp of the basics. I still need to learn Redux, and I need to make more ‘things’ (since that’s the best way to learn). I’m relatively happy with how things are changing. But does that mean everyone is?

A lot of themers (myself included) learnt PHP because they wanted to make more advanced WordPress themes. They learnt jQuery for the same reason. Now they need to learn React to stay ‘relevant’.

I’m just glad the Gutenberg team didn’t go down the CSS in JS route, and stuck with SASS, although that does require a Webpack build step. But, at least that makes it a bit easier for designers to contribute.

This feels like what Heydon and Brad are talking about: the technology is changing and people feel like they are being excluded. I wonder now if this is what a lot of the backlash has been about. Lots of people has spoken out against Gutenberg for various reasons, but I wonder if some of it has been a fear of the unknown. A fear of being locked out by something they don’t understand.

React is a lot to learn. New concepts, new technologies, new thought processes. In particular for designers and implementers, people who focus on CSS with some HTML. I can see how it would feel like your livelihood is being restricted.

I don’t have an answer, but I can say that I sympathise. My concerns with Gutenberg, long term, is that WordPress themes will be irrelevant. I earn a living selling themes, but with WordPress becoming a site builder the number of themes needed will shrink. If everyone is doing the layout themselves then there will be no need for me to do that in the templates.

So, I am learning React, because then I might still have some relevant skills than can help me. But it’s taking time, which isn’t a luxury everyone has.

I don’t know; I just find these discussions really interesting. Especially since similar things are happening in the wider web development community. And the fact that other people share my concerns, and worry about falling behind and gatekeeping, is a relief.

Let me know what you think on Mastodon, or BlueSky (or Twitter X if you must).

Link to this page

Thanks for reading. I'd really appreciate it if you'd link to this page if you mention it in your newsletter or on your blog.

WordPress News

The latest WordPress updates from the WPBriefs Podcast.

Related Posts

30 Jul 2018

Learning ReactJS for Designers

JavaScript is simple, or at least it used to be. If you’ve done any programming, and you know how to use Google then you can program in JavaScript. Of course, to make it more powerful we have to complicate things.We...
04 Jun 2020

Learning is hard, and so is React

This tweet from Kelly Vaughn caught my eye recently. It came a couple of days after another tweet from Brad Touesnard who said “I have run out of empathy for people whining about having to learn React”.I really sympathise with...
21 Oct 2018

Contributing to WordPress

In this article for WPTavern Chris Van Patten shares his experience with contributing to the Gutenberg project. The original article was a Twitter thread, but it’s nicer reading a proper long form piece.For Chris, the experience of contributing to Gutenberg...
31 Jan 2019

Javascript VS. HTML & CSS

A couple of weeks ago I wrote about the frustration and in many cases, arguments, happening between designers (CSS & html specialists) and Javascript developers. Increasingly Javascript developers, who are experts at programming, are taking on CSS and HTML roles....
01 Apr 2015

The State of WordPress Themes #wcldn

I recently spoke on a panel at WordCamp London 2015e. Lance – who used to be the Theme Team lead at WordPress.com – asked me if I wanted to speak on a panel with him at WordCamp London 2015. I’ve...