Front-end education for the real world. Since 2018.





Another Q&A with JavaScript for Everyone author, Mat Marquis

Mat Marquis

Topic: Announcements

What, above anything else, encouraged you to pick up your text editor and do such a big update?

Well, hubris was a factor, clearly. Maybe spite, if I’m being totally honest with myself.

It wasn’t that I was dissatisfied with the original launch version of JavaScript for Everyone, I can say that much without hesitation. Content-wise, I feel like things were in pretty good shape. Granted, there were a few things I’d wanted to cover that I knew I wouldn’t have time to get to, and a few things that I only realized I should’ve covered after it had shipped — pretty standard “big project launch” stuff. There were some additions and updates based on feedback from folks who had already taken the course, like the coding exercises. I absolutely think New Game+ is stronger for it all, but I was still feeling pretty good about JavaScript_for_Everyone-v1_final-FINAL.md back when I started work on the updates.

So yeah, “spite” is the best answer, I think. Working on the original course meant months of constant research and verification of my assumptions, and I watched as trustworthy sources of web development knowledge dried up, went dark, got replaced by half-correct all-sans-serif pages with SEO-juiced domains and emoji in every subhead — you know the ones. I watched an industry break the hearts of devs who care about craft over and over and over. I wanted to push back against that in whatever small way I could.

A lot has changed in the tech industry in the last 12 months. Do you have advice to help people navigate the changes?

It’s rough out there, no question. I tell you, I try not to indulge too much cheap-and-easy cynicism, but it’s tough to deny the feeling that those of us building the web are being systematically devalued at the same time the platform itself is being stripped for parts and rented back to us. It feels harder and harder to find the spark in this gig when we’re all under so much pressure to produce output — to churn out lines of code regardless of quality, shoulder greater workloads, and do more and more and more with less and less and less every day.

But again, cynicism comes easy; sometimes optimism can take a little more work. I’ve said this before and I’ll say it again, but for me, that work means focusing on the things I do know in times of uncertainty.

I know this much: whatever the state of this industry, there will always be value in gaining a greater understanding of the work you do. No matter how technologies change, JavaScript isn’t going anywhere — an inexorable, foundational part of the web platform. The key to producing better JavaScript, regardless of the tools you use to do so, is understanding JavaScript. Most importantly, I know there are plenty of us out there that still take genuine pride in our work — developers that look at something broken and think “I bet can fix that;” that look at code they wrote a week ago and think “I can do better.” I might not know what comes next for this industry, but man, I know them. That drive to learn, to understand, to improve — that curiosity — is a trait shared by all of the most brilliant developers I know.

My advice is to find ways to nurture that spark, even if the nature of the day-to-day work has changed. Find ways to keep growing, keep deepening your understanding of the way web is built, and keep sharing what you’ve learned. There will always be value in expertise.

You remember what I said about “spite” being my primary motivator here, yeah? Well, small as my impact may be in the grand scheme of things, what is it for if not trying to push back against the state of the industry lately — if not trying to help those developers grow, despite it all?

LLMs have evolved a lot in the last 12 months too. What’s the point in bothering learning JavaScript?

Yeah, “speaking of,” right?

Listen: no one is ever going to convince me that “I might never need to understand the work I do” is any reason not to. Besides, I don’t know that I’d be willing to stake my career on a “might” in the first place, even if we didn’t already have a few years’ worth of evidence to the contrary. “Make no mistakes” is a running joke for a reason.

Still, let’s leave aside the quality of these models’ output as it stands today — head off an easily-anticipated rush of “but the next one” replies — and instead focus on that theoretical “next one” for a moment. Imagine we’re living in a world where anyone could press a button and receive a perfect representation of the output they had in mind, so long as they know precisely how to ask. Well, can you have that ideal output in mind, without understanding the medium itself? “Make a thing that goes and gets this JSON file and puts it in a list” and “write an asynchronous function that accepts the following endpoint as an argument passed to fetch, filters the results through the trustedHTML interface, and returns the results as a DOM node representing an ordered list” are two very different prompts, with very different potential consequences for both the end result and the button-presser.

In a world where you’re no longer interacting with the code directly — even just to chase down the occasional missing semicolon — and you didn’t take the time to learn more about the platform on your own, will you know the difference in the results of those two prompts? When you’re asked to explain the output you’re putting your name on or interviewing for a new role, do you want to be seen as a subject matter expert capable of directing this perfect machine and understanding its output, or as “the person that mashes the five-dollar-a-press JavaScript button and hopes for the best?” Are you supervising, or are you just along for the ride; will you be seen as someone that solves hard problems for an organization, or a cheap proxy for statistically average results?

It might take a little more work to get there, but I know which one I’d want to be.

The course is so big and yet, there’s even more JavaScript out there. How did you choose what to cover?

So much more; there is so very, very, very much JavaScript. I’ve been caught up in the tangle of these prototype chains for twenty years now, and I sure as hell don’t know all of it. Nobody should, honestly — the platform itself gives us countless resources for tracking down property names and syntax details, from MDN to my old friend Object.getPrototypeOf(). “Having a lot of built-in methods memorized” has never been the thing that makes a senior developer.

Right away, I knew I wasn’t going for breadth, but depth. I wanted to teach you JavaScript, not “quick and easy copy-and-paste-able one-pot weeknight recipes for managing state,” but the how and the why of JavaScript, not just the what.

The Proxy constructor and Reflect namespace object are features of the language worth having in your toolbox, sure, and I could give you a couple of quick copy-and-paste-able snippets for a few relatively common use cases. Maybe you’ll even be able to summon them up from memory when the opportunity presents itself, but what did that teach you about the way the language fundamentally works?

By really understanding those syntaxes, you come to see another, far more foundational syntax in a different way. You can understand dot notation as “if I put a . here a value comes out,” or by really digging into Proxy and Reflect, understand it it as an API that prompts a [[Get]] internal operation that follows a finite and knowable set of invariant rules that don’t just govern the way the language works internally, but must be followed when you intercept that operation. You can get “if I type this, then this happens” anywhere, but a real understanding of how the gears mesh deep down within the machinery of the language is the kind of understanding that makes a senior developer.

What’s the best improvement to JavaScript over the last few years?

Temporal would be the easy answer given how hard I’ve dunked on raggedy ol’ Date over the years. Not unrelated, I constantly find myself staggered by the amount of formerly nightmarish work Intl has completely covered.

Still, I’m [mumble] years old, remember. My favorite improvement to JavaScript in recent years is the same improvement as over all the years prior: cross-browser consistency. What a privilege it is to assume things will work; I’ll never take that for granted.

If you were tasked with rebranding JS, what would you rename it to?

Oh, easy — I’d rebrand it to “Coca-Cola.” Good luck and have fun, Oracle!

Lastly, what is your opinion on the Zelda timelines?

What, you think I got these DOWN FALL knuckle tattoos for nothin’? I mean, the original Legend of Zelda, Zelda 2: The Adventure of Link (that’s right I said it), Link to the Past — the offshoot timeline where the Hero of Time fails to single-handedly save Hyrule is the one with all the best games, hands down.

In fact, you can go right ahead and assume that I am making eye contact just a little too intensely as I say that I believe there is always hope for great things after times of upheaval, no matter how hopeless things might seem in the moment, and no matter how thunderous the resulting crash.

…In the Legend of Zelda series, that is.

Check out JavaScript for Everyone

Enjoyed this article? You can support us by leaving a tip via Open Collective


Newsletter

About