When your code won't work (and why it can be a good thing)


View this email in your browser (or share it with a friend!)

Hello Reader,

You write a couple of lines of code, hit save and... nothing happens.

You check for typos and everything looks fine.

You open your dev tools and don't see anything that seems wrong.

Except, something is wrong because it isn't working!!!

Nothing is more frustrating than when something won't work, and you have no idea what the problem is.

Though, sometimes, the opposite is true, where you get something working and have no idea why it's working either, which can be equally frustrating.

To make it worse, when we get very stuck, it can cause feelings of self-doubt to start creeping in.

One of the reasons for this is learning resources and paths keep moving forward.

"You've completed this lesson, so you have all the knowledge you need here, time to move on!"

Learning doesn't work that way though.

Having learned something, and being able to do that same thing are very different things.

It's very normal for it to take time for concepts to sink in and make sense.

And while it would be nice if we could just go from lesson to lesson and absorb everything instantly, struggling with things is such an important part of learning.

They’re even a term for it, called Desirable Difficulty that was coined in 1994.

The idea with Desirable Difficulty is about how running into challenges that we struggle through is a key to long-term learning.

When we struggle through things, but then finally figure it out (and this doesn’t have to be on your own, it can be from the help of someone else explaining it to you, or a tutorial that helps things click), what you’ve learned will be much more sticky.

You’ll understand why it worked, and you’ll also have learned why what you were trying before didn’t work.

It can sometimes feel like you’ve wasted a bunch of time, but often, it’s the best way to learn, even if it’s frustrating at the moment.

It can be even worse if we pay attention to the progress everyone else around us seems to be making.

It’s important to know that everyone struggles though, and when they post on social media, they’re curating that timeline.

They want to celebrate the win, so they share that, but most won’t share the struggles they went through to get that win.

There’s also the false expectations of what being a “good developer” is.

In the last live stream I did, someone in the chat noted how cool it was to see me have to search MDN on how a CSS feature works.

If you watch a tutorial of mine, it might seem like I’m a CSS encyclopedia.

I think I know CSS pretty well at this point, but when I make a tutorial, I research everything ahead of time and build out the demo at least one time before recording.

I do this so we can focus on what the tutorial covers and to prevent it from dragging on forever as I debug something silly, but that is a big part of what I do every day!

We can’t remember everything, and we’ll never get something right every single time… but it’s all part of the journey to getting a little bit better at what we do 🙂.

🙋‍♂️ What I’ve been up to this week

My favorite tips from 2024

video preview

When I did my year-end review, I did a quick look at all the videos I put out, and it reminded me of some good tips that I shared!

So, I went back through and found my five favorites that didn’t involve cutting-edge stuff, meaning you can use all of these in your projects today if you’d like to!

Short of the week

Remove empty elements with one line of CSS - great for dynamic content

Tip of the week

This week’s HTML & CSS tip of the week looks at why I’ve stopped using text-wrap: nowrap for things like buttons, and started using min-inline-size: fit-content instead.

🎙️ Podcast

Conferences & Community: A Chat with Henri Helvetica

show
Conferences & Community: A C...
Oct 10 · General Musings with Kev...
58:18
Spotify Logo
 

In this episode I chat with Henri Helvetica, a performance engineer and active member of the web community. We dive into the significance of conferences and meetups, and how COVID-19 has affected in-person events. Henri offers insights on event organizing, the need for new in-person experiences, and what makes a good event. We also explore the value of community and networking, and how to find events and meetups in today's landscape.

LISTEN ON: APPLE | SPOTIFY | YOUTUBE | WEB

🔗 Other awesome stuff around from the web

🏁

Have yourself a fantastic week,
Kevin

P.S. I recently had a few people ask me if it would be possible to preview lessons from CSS Demystified, so I’ve unlocked the first 15 lessons from the course (excluding the intro module).

You can jump into the first unlocked lesson here, and make you’re way through those lessons if you’re interested 🙂.

Also, if you struggle with online/self-paced learning, in the top tier of the course I have an entire section about how to get the most out of it.

P.S.S. The course is a little old, but I’ve started planning a very big revamp for it. You can wait for the update if you’d prefer, but if you do enroll now, you will get access to the updated version when it’s released as well.


If you no longer want to get any emails from me, you can unsubscribe or you can edit your preferences if you'd like pick which emails you get from me.
113 Cherry St #92768, Seattle, WA 98104-2205

Hi! I'm Kevin

Weekly newsletter, where I talk about tangentially-related front-end development topics and share what I've been up to in the last week, plus any cool/fun/interesting/useful links I come across as well.

Read more from Hi! I'm Kevin

View this email in your browser (or share it with a friend!) Hello Reader, A bit of a different email this Sunday, as I don't have any new content to share (which is the first time I haven't had anything in a long time). Instead, I'm writing to let you know on Tuesday and Wednesday of this week, I’m giving a workshop with Frontend Masters called Modern CSS Fundamentals. The workshop is for anyone ready to move from doing their best to getting CSS to work to truly understanding it. Whether...

View this email in your browser (or share it with a friend!) Hello Reader, I’m going to keep the intro short on this ones because there is a lot going on in the What I’ve Been up to section, but before we jump into into that, two quick things: As an experiment for Interop 2026, Jake Archibald and the team at Firefox habe put together a way to gather more feedback on what features matter most to developers. So, if you head on over here, you can pick the proposals that are important to you, and...

View this email in your browser (or share it with a friend!) Hello Reader, A few weeks ago, I posted a video about the current state of the internet after I had a terrible AI-generated CSS article showing up in my news feed. I was saddened by how it was getting priority over quality content from sites like Piccalilli, Smashing Magazine, CSS-Tricks, and countless other excellent sources (I’ve put a bunch in the other links around the web section below if you’re looking for more to follow). At...