2024-02-28 09:20:05

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!

developer.mozilla.org/en-US/do

2024-02-25 23:33:55

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!!

😃

2024-02-25 13:01:30

I’ve been thinking a lot about code style recently. Naming conventions. Simple refactors. Stuff like that.

I can’t think of who in is doing this (outside of recommending PHPCS and WPCS).

Am I missing something/someone? Or is this a gap that needs filling?

2024-02-24 09:56:22

I was also discussing sport with a Canadian this week and she told me that because ā€œhockeyā€ means ā€œice hockeyā€ by default they need a term for hockey-on-grass.

And that term is ā€œfloor hockeyā€

Which for some reason makes me giggle.

2024-02-24 09:54:14

Words that Americans seem to use a lot that I think carry cultural weight that I, as a Brit, don’t understand:

– ā€œcompellingā€ (as in ā€œThat’s a compelling toolā€)
– ā€œappreciateā€ (as in ā€œI appreciate you.ā€)

I wonder what I say that carries cultural weight that my other-side-of-the-pond colleagues don’t understand.

2024-02-24 09:50:37

Today will also require careful management of sugar/caffeine levels. Will be very easy to overdo it.

Yes, I’m middle-aged and these are the things I think about now when I’m socialising. šŸ˜‚

2024-02-24 09:43:52

I’m travelling to London today to… err… socialise with people in real life?!

Will I remember how?

Tips/advice?

Best worst advice wins.

2024-02-22 12:56:26

My friend Tim is running a workshop. He’s really very smart, has a TON of experience, and he’s entertaining too:

ā€œI'm running a workshop on how to clean a hacked Site, it's on the 21st March and I hope I can tempt you to come! I'm excited, I think I have managed to get the balance between technical and accessible, so that it genuinely is useful to everyone.ā€

timnash.co.uk/workshop/

2024-02-19 20:02:44

Another week, another single-page web app gets spun up. These are the new domain names. šŸ˜‚

This one is secret for now. But real fun to make.

Figuring out in-browser background removal with JS/CSS. Plus turning HTML into images to print.

Cool stuff!

2024-02-18 08:55:13

US Politics + ā€œOh my eyes!ā€ design.


Even if you thought Trump was a good politician, would you really look at this and think you’d want to spend $400 on them?

Keep scrolling too… there’s a VERY special offer at the bottom.

gettrumpsneakers.com/

2024-02-17 15:06:42

Here it is then: My manifesto for small, static web apps.

If you wish to comment/reply on this, please read the intro on what a manifesto is before you do.

rosswintle.uk/2024/02/a-manife

With that in mind the summary is:

– Static first/only
– No login
– Don't store user data
– Use the smallest JS library possible
– Use web standards as much as possible
– Use simple build steps that won't break
– ā€œDoneā€ is a goal
– Zero-maintenance (and easy maintenance) is a goal
– Don’t minify
– Be accessible