Weeknotes 99
21st May, 2023
“CSS nostalgia”
-
Old CSS, new CSS – the nostalgia absolutely drips off this.
It’s pretty much as I remember it and a nice reminder.
(I should stop self-closing tags
<br />
). -
Relevant content: Modern CSS Solutions for Old CSS Problems.
-
Test Sizes – Test types are indeed a difficult topic and poorly understood.
What do you call a test that tests your application through its UI? An end-to-end test? A functional test? A system test? A selenium test?
Interesting.
-
I forgot to mention last week, I’m really enjoying Silo from Apple TV+!
-
In Vim, you can replace the last search you made without retyping the word by doing
%s//replacement/
😮 This is useful when you’ve searched for the word under the cursor with*
. -
Everyone is making fonts these days – Intel One Mono Typeface.
-
I learnt how to ignore a capture group this week. Sometimes you need to “capture” something but you’re not actually interested in using the value. It may be necessary in order to make the regular expression match.
Take the string
1.2.3-p123
.(\d+\.\d+\.\d+(-.+)?)
This regex will match the string and make
-p123
optional. But if the string you’re matching doesn’t include-p123
you will get an empty match group, which may be undesirable.However, if you add
?:
like this:(\d+\.\d+\.\d+(?:-.+)?)
The last capture group the optional capture will be omitted.
-
Did you know about the
webkitdirectory
HTML attribute for inputs?..indicates that the
<input>
element should let the user select directories instead of files. When a directory is selected, the directory and its entire hierarchy of contents are included in the set of selected items. -
The Debutante by Jon Ronson was a crazy, and good, listen.
-
“Types. For anyone who knows a programming language." by Gary Bernhardt, is, as you’d expect, excellent. If you want to know about types, read this. As Gary explains the terms used often means different things to different people. I will refer to this in the future, for sure.
-
I was messing around with Tailwind CSS this week so decided to setup LSP support for it in Neovim. I’ve been putting this off for a while because I thought it was going to be difficult, but it was actually fairly easy.
See the commit in my dotfiles.
Lesson: stop putting things off.
-
Tech CEOs Rank Web Browsers (AI Tier List) by The Browser Company.
-
Hostnames and usernames to reserve
If you’re setting up a service where people can register their own usernames to be used as a hostname (username.example.com), email address (username@example.com), or URL path (example.com/username) within your domain, there are some common names you should avoid letting the general public register.
This never has never occurred to me, but spelt out, it makes sense.
-
Lord of the Rings by Wes Anderson Trailer | The Whimsical Fellowship – Bravo!