Default parameters: your code just got smarter
Matt Smith with wonderfully straightforward writing on why default parameters for functions are a good idea. I like the tip where you can still do it with an object-style param.
Matt Smith with wonderfully straightforward writing on why default parameters for functions are a good idea. I like the tip where you can still do it with an object-style param.
There are no browser implementations of mixins yet, nor a fleshed out spec. So perhaps now is the best time to try to understand and opine.
Nikita Prokopov in I am sorry, but everyone is getting syntax highlighting wrong: … if everything is highlighted, nothing stands out. Your eye adapts and considers it a new norm: everything is bright and shiny, and instead of getting separated, it all blends together. I think there are some strong points made here. But 😬 […]
Banger page from the Chrome DevRel team showcasing the incredible year CSS had.
It maintains space for where a scrollbar would be, whether there actually is one or not. But do you always want that?
I think it’s cool our industry has these high quality documentaries documenting the stories behind some of the transformative tech in what we do. The Vite one just came out about a month ago. What would you pick if you could pick the next one? I wouldn’t mind hearing about early-days AWS or Docker. Maybe […]
Dan Abramov has an interesting article How to Fix Any Bug where he’s having Claude write the code, but a bug shows up he needs to fix. Claude just isn’t getting it and it keeps saying it’s fixed when it isn’t (classic). Claude was repeatedly wrong because it didn’t have a repro. Meaning Claude couldn’t see […]
Just a simple link tag in HTML can point to an online wallet to take payments, and a JavaScript API to react to them. But it’s (still) early days.
Paul Smith made these Classic Mac OS System 1 Patterns, which are super tiny (in size) graphics that work with background-repeat to make old school “textures”. They have an awfully nostalgic look for me, but they are so simple I can see them being useful in modern designs as well.
A satisfying little rant from Justin Fagnani: Stop Using CustomEvent. One point is that you’re forcing the consumer of the event to know that it’s custom and you have to get data out of the details property. Instead, you can subclass Event with new properties and the consumer of that event can pull that data […]
Frontend Masters donates to open source projects through thanks.dev and Open Collective, as well as donates to non-profits like The Last Mile, Annie Canons, and Vets Who Code.