When someone tells me it's easier with JavaScript...


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

Hello Reader,

From my experience, there are a few reasons people push back on new things, but the most common one I see revolves around people preferring the old way of doing things.

This makes sense, because they are comfortable with what they are used to, rather than the new way, which is different. When something new comes along, that means they have to learn it, which for a lot of people means that it’s slower.

The thing is, in web development, most new things make things easier, and once you get used to them, often much faster as well.

The reason I mention this at all is that I put out a video this week showing how to create popovers without any JavaScript, including a nice little fade-in and slide-in/out effect.

video preview

If there were any pushback to this, you’d think it would be about browser support (which isn’t bad!), but instead, one of the first comments on the video was that it would be faster and easier to do it with JavaScript.

Anyway, that comment triggered me a little, so I made a Short to prove them wrong 😅.

video preview

If you’re going to say it’s faster or easier with something, at least say it’s with AI these days 😆 (and even then, I don't know if writing the prompt and then waiting for it would be under 2 minutes?).

📝 Quiz time!

Which HTML attribute is used on a button to open or close an element that has the popover attribute, without writing any JavaScript?

  1. popovercontrol
  2. popovertarget
  3. popovertoggle
  4. togglepopover

As per usual, you'll have to head on over to YouTube to take a stab at the quiz, and once you answer, you'll see if you were right or not.

🏁

With summer in full swing and the kids home, the newsletter might be slightly shorter than usual, with some of the regular sections missing. We’ll see how it goes from week to week, though 🙂.

Have a fantastic week!
Kevin


Are you looking to step up your CSS? I've got both free and premium courses to help with that! They cover a range of skill levels too 👇

Beginner friendly (and free)

HTML & CSS for Absolute Beginners

A free course that starts with the absolute basics, and gets to creating some layouts with Flexbox and Grid.

Enroll →

Intermediate

CSS Demystified

For those who've been writing CSS for a little bit now, but want to step up their game and start writing CSS with confidence!

Enroll →

Intermediate (Frontend Masters)

Build a Modern Site from Scratch

Build a fully responsive site using modern CSS features, along with some polished animations.

Enroll → (25% off first month of Frontend Masters if you use this affiliate link)

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.
600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246

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, Last week on my second channel, I asked a question near the end of the video about whether or not people are worried that, thanks to more and more people using AI to write code, there would be less pressure on languages to evolve. That led to a lot of interesting comments, with a bit of a split on people’s opinions. The two main arguments were: AI producing more and more code just builds up the training data on the...

View this email in your browser (or share it with a friend!) Hello Reader,It’s hard not to come back from an event like CSS Day and not be excited about the future of CSS, and the web in general. There is a lot to be concerned about with the current state of things, but one thing that is super clear is that there are still a lot of super passionate people who love their craft, and seeing that passion, both in the talks from other speakers as well as when chatting with attendees, you can’t...

View this email in your browser (or share it with a friend!) Hello Reader, The pattern of shorter newsletters continues for me, as I continue my prep for CSS Day. I’m writing this on Thursday morning (my normal newsletter writing time), and yesterday, as I was rehearsing my talk, I realized I had a pretty big oversight in my talk, so I spent the rest of the day reshuffling things and updating the demos I’m using. It all means it’ll be a stronger talk, but I’ll be on the plane to the...