UK Royal Photo Shernanigans
The photo is clearly fake. Her kids are NEVER that old yet.
Are they? š¤Æ
UK Royal Photo Shernanigans
The photo is clearly fake. Her kids are NEVER that old yet.
Are they? š¤Æ
Web devs: This is worth knowing about. A proposal for a standard, well-known password-reset URL.
Poor code readability slows us down. So I'm going to post some of my code-readability tips! This is an introduction with the ideas behind it and all the caveats, and an initial example.
This is using JavaScript canvas manipulation to remove the background and CSS filters for shadows. Trying to get attention to detail while minimising dependencies! Totally amazing what the web platform can do. The only library here is Alpine.js.
Having so much fun.
After @davatron5000 recommended CoraQuest, and realising that its customisation tools lacked a weapon card maker, guess what Iām making (with the makerās blessing too)!! š
This post about Divine Code Reviews is excellent.
https://bigmachine.io/software-design/divine-code-reviews/
Iāve been spending a lot of time reviewing lately. My approach is to dive into code first to understand what I should be seeing. But maybe Iāll run tests and try the change out first.
Positivity is key! You can and should say what you like in reviews!!
Today Iām working with some of my own old code (from 10 months ago) and a well documented API and itās completely gloriously wonderful!!!!!!!! šš
Put the work in now. Reap the benefits later.
Thank you 2023-me!
Iām starting to mentor someone to get into web development.
Iām reminded of some really excellent resources that you may not know about:
– https://devdocs.io – multiple software dĆ©veloppement references in one place. Also a PWA so works offline!
– Julia Evanās excellent zines. The HTTP guide is a superb staring point for understanding how the web works under the hood. The debugging guide is excellent. https://wizardzines.com
I wish I had a home office I could retreat to. Our home is modest. Our āofficeā is the middle room and a thoroughfare. Itās not ideal. But also itās not quiet.
Thereās lots of stuff I would do if I had a decent space.
Perhaps I donāt actually need one though? Am I overthinking? Procrastinating?
Iāve also got totally addicted to a little mobile strategy game called āTurmoilā. It consumed a whole evening last night. And Iām sure the tiny graphics are ruining my eyes!
Having heard so much about Brandon Sanderson, I spotted āThe Way of Kingsā on Kobo for 99p and picked it up. Seems to be quite a tome! Did I do good?
Laravel 11 releases next week with simplified app structure and config and SQLite support baked in and enabled by default.
Plus there is Laravel Herd: a simple, first-party web server app.
It will be a superb platform for learning about web dev from the ground up.
I'm loving Tanner Record's newsletter on #WordPress plugin development. Really strong dev tips here:
https://www.tannerrecord.com/building-a-stress-free-deployment-pipeline/
My daughter telling me about the song āI donāt like Mondaysā
āI donāt like Mondays. And I donāt like āI donāt like Mondaysā. So I donāt like āI donāt like Mondaysā on Mondaysā
I approve of this message from @aurooba
Revisit your own work. Make it better. Itās important!
Finally there – wanted to get it all tidied up, written and documented:
npm-free LiveReload(ish): Simple, depedency-free scripts for asset watching and auto-reload in the browser
https://rosswintle.uk/2024/03/npm-free-livereload-asset-watching-auto-reload-scripts/
This is how I'll build small, static sites locally now. Yay!
If you just want the code:
https://gist.github.com/rosswintle/d1f6428685be5eb1091dab2246015ff2
Righty. I think I have a nicely working watch script + auto-reloader that doesn't poll.
That was WAY harder than I expected – mostly because of how nginx doesn't put headers on some things.
Need to tidy up and document. But want to get this into my small site template!
Making things simple is complicated!
So having discovered Live.js and Turbowatch and then deciding to write my own simple file watcher using a shell script and Live.js as a reloader, I wondered… do you need to poll?
WebSockets was an option for sending server-side changes to the browser. But too complex for my needs.
Then I found this ancient Server-Side Events API that's been around since Chrome version 6! And it's PERFECT!
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/
This is brilliantly nerdy and geek-funny. A chap who visited roads named after every day of the year. 5 min lightning talk.
Dang it – didn't quite get everything updated. But a @chriscoyier post referenced Turbowatch and Live.js as a simple file watcher/browser reloader combo.
I want something simpler than Turbowatch though, and more modern than Live.js.
Live.js also didn't work with Laravel Valet. š¢
BUT… I got it all working! It's 55 lines of shell script and 10k of modernised JS (uncompressed). I will build it into my small static site template and write up soon!!
š