Hoisting in JavaScript

Two weeks ago I gave a lightning talk at Caphyon on hoisting in JavaScript. Putting aside all the common jokes about the JS language, people really seemed to like it. It was kind of a challenge to talk about JS while having an audience of C++ and Java colleagues.

Now getting back to the talk, that was lightning ⚡️ fast and it didn’t covered that much as I would’ve liked to. So I’ll try to write a bit more on JavaScript scoping and hoisting bellow.

JS the good parts vs the definitive guide

Sticky table th's with position:sticky

This is not new anymore, nowadays it became so easy to have a piece of content stuck while you’re scrolling. No JS, no hassle just some CSS position: sticky magic. But the real thing is dealing with tabular sticky info.

Remember the last web app you’re working on it that had a large table with lots of data rows? Feels like yesterday, no? Well, having this scenario, in terms of UX, it’s almost mandatory to have thead’s or tr’s stuck while browsing the tabular data.

CSS writing mode experiment

Thoughts on accessibility

As a person who mainly works on small teams, I always felt guilty of making accessibility a lower priority. The reasons were multiple and it’s hard to blame someone else other than me.

Over time, I read lots of good articles on accessibility but couple of months ago, I stumbled upon this incredible article by Tuukka Ojala. Both incredible and inspiring, that article remained stuck in my head and hopefully will change the way I write HTML and not only.

Accessibility

I made the switch to catalin.red

I’ve never been a big fan of my very own domain name. Besides the fact that it was quite long, I really hated the hyphens for red-team-design.com.

Two hyphens, the mistakes of my youth.

Switch red-team-design.com to catalin.red

Visually validate an input field using CSS

While working on this site, I tried to improve my email subscription box a little bit. The idea was to enable the action button only when the user types something in the email input. So I found a way to use :placeholder-shown CSS pseudo-class in an attempt to visually validate an input before form submission.

Simple form with an email input and a subscribe button

Designing websites for iPhone X, they say

Upon the iPhone X release, I did enjoy the jokes and memes on Jony Ive and his notch haircut, or how to implement a scrolling list that shifts to avoid the notch. Those were funny. But the below excerpt from latest WebKit post on “Designing websites for iPhone X” isn’t.

… selectively apply padding to elements that contain important content, in order to ensure that they are not obscured by the shape of the screen.

Designing websites for iPhone X. How about no.

CSS utility classes for sizing and naming conventions

It happens pretty often to encounter situations when you don’t like a default style for an HTML element. The methodology that has proven to be reliable over time is to use the so-called CSS utility classes. Their purpose is to allow you to quickly make HTML classes adjustments until the result looks just right.

CSS utility classes for sizing and naming conventions

  • Previous
  • Page: 1 of 13
  • Next