Simon Porter
banner
simonporter.co.uk
Simon Porter
@simonporter.co.uk
All things frontend 💻 Software engineering at @kestrelwp, building on WooCommerce.
Reposted by Simon Porter
Astro 5.1 is now in session

Introducing Astro.session, an experimental utility to share data between requests. This is for you PHP lovers.

See what else we launched 👇

astro.build/blog/astro-5...
Astro 5.1 | Astro
Astro 5.1 is now available. This includes a new experimental sessions feature, improved caching for images, and new tools for building Astro Actions.
astro.build
December 19, 2024 at 4:15 PM
Catching up on Advent of TS day 14:
It's a pretty tricky one!
A pretty tricky one!
Pretty tricky one!
Tricky one!
One!

And so it begins...
December 18, 2024 at 12:21 AM
Advent of TS - day 13. Why it pays to always read release notes. That one was painful!
December 17, 2024 at 11:09 PM
I just stumbled upon Astro Docs Docs contribute.docs.astro.build what a fantastic resource! Really cool seeing the style guide laid out with explanations. Would be fun to try and contribute.

Relatedly, anyone recommend some good resources for more tech writing like this?
Astro Docs Docs (AD²)
Documentation for Contributing to Astro Docs
contribute.docs.astro.build
December 15, 2024 at 12:55 AM
Upgraded the blog to Astro 5, ez pz. Ran the migration tool and followed the (excellent) docs for legacy content collection migration.

Only problem I had was the post id including the nested file path and I was using only post title before. Easily fixed during getStaticPaths() though.
December 13, 2024 at 9:00 PM
Anyone else out here Googling bitwise operators and ELI5? #adventofts
December 11, 2024 at 8:47 PM
Anyone got a decent/unbiased review of the differences between hosting a blog on netlify vs vercel?
November 23, 2024 at 9:41 PM
TIL about the inert attribute: developer.mozilla.org/en-US/docs/W...

I love that after years and years of following web stuff, I still get to learn new things. I think I would be thoroughly bored in a role without having the space to learn and tinker.
inert - HTML: HyperText Markup Language | MDN
The inert global attribute is a Boolean attribute indicating that the browser will ignore the element. With the inert attribute, all of the element's flat tree descendants (such as modal <dialog>s) th...
developer.mozilla.org
November 22, 2024 at 8:49 PM
Never underestimate using the right tool for the right job. With so many options and strong opinions in web development, it's too easy to fall into the trap of sticking to what you know or who shouts loudest.

What you know isn't always the best tool though, neither is that rando on tinternet.
November 22, 2024 at 8:45 PM
Reposted by Simon Porter
I made this today, no reason.
November 22, 2024 at 7:16 PM
Reposted by Simon Porter
📢 TypeScript 5.7 is here! Now with

✅ Better checks for uninitialized variables
✅ Smarter tsconfig lookup in editors
✅ Improved startup time
✅ Stricter checks for JSON imports
✅ Extension rewrites for relative imports

and more! Try it today!

devblogs.microsoft.com/typescript/a...
Announcing TypeScript 5.7 - TypeScript
Today we excited to announce the availability of TypeScript 5.7! If you’re not familiar with TypeScript, it’s a language that builds on JavaScript by adding syntax for type declarations and annotation...
devblogs.microsoft.com
November 22, 2024 at 6:56 PM
Happy Monday. If it was anything like mine.
a man wearing a bandana on his head is saying `` my brain hurts ! ''
Alt: Gumby, played by Micheal Palin from Monty pythons flying circus, is wearing a bandana on his head and shouting `` my brain hurts ! ''
media.tenor.com
November 18, 2024 at 6:12 PM
Tip of the week. Take a spell, even a short one, to shadow your support team or even work alongside them in the support queue. There's no better way to get to know the real users of your product, and gain empathy, which inevitably helps in all sorts of decisions going forward.
November 15, 2024 at 10:21 PM
Reposted by Simon Porter
butterfly flash mob

- schedule a post to X with a single 🦋
- november 16, 15:00 UTC
- you know the first rule of the flash mob

invite your friends with your own voice: find a post on why we should move here, quote post it, copy and paste this post text, send
hailey.at hailey @hailey.at · Nov 15
one thing bluesky does better than any other app i’ve ever used is drive conversation. why? because it _incentivizes_ conversation. not through algorithms or through some technological trick. but because the community itself thrives off of that conversation.
November 15, 2024 at 3:00 PM
To all the Safari users out there. And why do you enjoy making me suffer?
a man in a suit and tie is sitting at a desk and says who hurt you
Alt: Seth Myers from the late night show is sitting at a desk and says "who hurt you?"
media.tenor.com
November 14, 2024 at 6:50 PM
So if 9-5 is for work, 5-8 is for the kids, 8-12 is for the wife and house, and 12-8 is for sleep. Remind me again where do I fit in fun projects, tinkering, side hustles, and gaming? 🫠
November 13, 2024 at 8:49 PM
Anchoreum
A game for learning CSS anchor positioning
anchoreum.com
November 12, 2024 at 8:11 PM
Christmas bits going up in shops, and kids want the tree up early. So really only one thing to do.

Prepare for another brutal advent of code and advent of typescript 🫠🎄
November 10, 2024 at 10:42 AM
Used `git bisect` yesterday to narrow down a cause of slow rendering. Don't reach for it often but when I do, it's pretty glorious. Especially since I switched to neovim+lazygit a few months ago, lazygit is such a great halfway house between cli and full gui.

10/10 would recommend.
November 9, 2024 at 6:16 PM
I must have shaved recently?!
November 9, 2024 at 2:37 PM
Ready for another Christmas ruined 🤣 all fun and games up to like day 15 and recursion hell through 🌲🌲🌲🎅🌲🌲 iykyk
Been burning the midnight oil getting everything ready for this year.

Excited to introduce our brand new platform, which we’ll be using from now on for this event!

Check it out 🎄
adventofts.com
November 8, 2024 at 8:39 PM
Yes, niiiiiicceee
📢 1.93 is rolling out now (2/5)

To compose threads, start with your first post, then press the plus button!
November 8, 2024 at 8:36 PM
Reposted by Simon Porter
📝 Testing HTML With Modern CSS

(With modern CSS selectors, you can do almost all your accessibility and best practice testing in CSS itself.)

heydonworks.com/article/test...
Testing HTML With Modern CSS
CSS can be a great HTML testing tool, especially in 2024
heydonworks.com
November 8, 2024 at 7:19 AM
Reposted by Simon Porter
I took the State of React Survey

You should too!

survey.devographics.com/en-US/survey...
State of React 2024
Take the State of React survey
survey.devographics.com
November 7, 2024 at 3:02 PM
Reposted by Simon Porter
I get more engagement here than X

I can finally share dev links again without having to fight an algo
November 7, 2024 at 1:39 PM