Weeknotes 121
22nd October, 2023
“Self closing tag”
-
It was properly cold at one point this week.
-
Not getting on with Slack’s new workspace dropdown selector thingy?
cmd
-shift
-s
You’re welcome (sorry, can’t remember where I saw this 🙈).
-
I remember the transition to XHTML and then onto HTML 5 but I have to admit that I never really understood what was going on, just that it was “better” and more “correct” and could be “parsed”.
So here I am now confused about why, and if, we should be self-closing tags aka, your friend and mine:
<tag />
Jake Archibald and Remy Sharp both had excellent articles on the subject. Jake’s goes into the history of how we go into this situation, but also notes that self-closing is not really required any more.
And that’s where things are today. /> is mostly meaningless in HTML documents, with foreign content being the exception.
Which Remy agrees with:
In short, what I’m saying say is that the / character is completely and utterly redundant in HTML as a way of saying this is self closing. It has no effect and, effectively, is ignored.
But he also points out that JSX is not really HTML.
The thing that’s easy to forget is that JSX is a language that only lives inside the React compilers. It looks like HTML but it’s not HTML, at all.
And…
React and JSX specifically is to blame for putting this back into the mainstream development process as JSX offers this as a prerequisite of it’s language.
I’m happy report with can blame React and JSX.
-
The price of managed cloud services by DHH.
Because running things on premise is not a materially different scope of work from running it in the cloud. That’s the whole premise behind our overall cloud exit: The team it takes to run our scale of operations in the cloud wasn’t any less than what it takes to run that same scale on our own hardware.
I can believe this.
-
Supercharge your app: latency and rendering optimizations in Phoenix LiveView
Fascinating walk-through the optimisation the Phoenix team have made to LiveView over time. Chipping away bit by bit.
-
git pull --autostash
– where have you been all my life?!Saves the constant
git stash
,git pull
,git stash pop
💃 dance that I do every day. You can also configure this to be the default behaviour in your config file withmerge.autoStash
option. -
Visual Studio Code is designed to fracture (via Harry).
Microsoft gonna Microsoft. Embrace, extend, and extinguish.
-
TL;DR: we have discovered XMPP (Jabber) instant messaging protocol encrypted TLS connection wiretapping (Man-in-the-Middle attack) of jabber.ru (aka xmpp.ru) service’s servers on Hetzner and Linode hosting providers in Germany.
-
Unless Explicitly Specified Otherwise, Open Source Software With Users Carries Moral Obligations
The subtle point here is, if I make an Open Source Project, push it to some forge, write a nice readme explaining why one would want to use it, provide one-liner for installation, and publish builds to some package registries, I am already creating some expectations.
As a non-maintainer who barely contributes, I agree with this.