JavaScript, 2020

I love JavaScript. It's easy, to write, easy to understand. What I've noticed lately, is unhealthy. It's tough to describe this problem, other than a simple "feeling" of increasing bloat, and decreasing understanding of the fundamentals. Check out Kyle Simpson's You Don't Know JS. This is how I define quality (or the lack therof).

Why React?

Know when to reach for it. You don't need it for every project.

Why Hooks?

It's answering the wrong questions. React is still bad at state management. It's something EmberJS got right.

Why Gatsby?

Like React, know what you're getting into. It's a big project, full of dependencies, opinions. It can get out of hand. Remember that entropy is real.

Why CSS in JS?

The biggest issue I have with it, thinking CSS is "just" another programming language. It's not. The global namespace, a feature of CSS, is what makes it so incredibly powerful.

Vanilla

Can you get by with some vanilla HTML/CSS/JS?

  • JS has been around for a long time and it's getting better. It's been the language of the web for 25 years.
  • HTML, it's everything you see on the web. Don’t worry about the “shadow DOM”. HTML It's been around for a long time and has changed little and it’s easy to understand.
  • CSS just works. (I still remember being blown away by http://www.csszengarden.com/.)

Quality?

Quality, it's not easy to define that as websters would have you believe. Like Phaedrus in Zen and the Art of Motorcycle Maintenance... "quality". Try to define "quality", it's infinitely granular. And yet everyone has a different opinion on what "good" "quality" code is.

But, you'll know it when you see it.