(6) Heydon Pickering continues his gallery of HTML elements. On Halloween he philosophizes about the <body>
element and sentences like:
Some even suggest removing the [
<head>
and<body>
] tags to reduce document size. And I mean. Sure, go ahead, if you’ve already done literally everything else in your power to optimize your HTML payload (tip: ditch your utility class library).
… aren’t even the scariest part.
(7) Anyone who works with web components quickly comes across corners that seem strange. For example, listening to external events within a component… that can get scary. I remember recently saying to the team: “That can’t be the idea, there has to be something better!” I’m an optimist. Chris Ferdinandi not so much, he draws a completely different conclusion.
(8) OK, I don’t normally use my own reset CSS, but normalize.css. Jake Lazaroff’s is still very interesting. I think it’s nice, for example, how @layer
is used here, where I’ve only just learned to use where()
.
(9) Oldie but goldie. A dear colleague likes to poke me with comments about TypeScript and Tailwind. I’m not a fan of the former and hate the latter. But I’m a passionate JSDoc lover. Today we learned: TypeScript types and JSDoc can be combined and that brings a lot if we use VSCode. Best of both worlds…
(10) In an incident recently, I was forced to read source code in Rust. I’ve been a programmer for a few years now, and somehow I understood the code, but not enough to tell someone else: you did something wrong… which would have led to a quicker solution. There’s really only one thing to do: Learn Rust.