@lewis@social.lol avatar

lewis

@lewis@social.lol

Senior software engineer, cyclist, film lover, sci-fi and horror reader, and a Dad

Substitutes obsession with bikes for a personality.

Harmful to aquatic life. Dispose responsibly.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

afilina, to random
@afilina@phpc.social avatar

I need your advice on testing React. I want to mock API responses, but without using a complex Docker setup. Ideally, a way to simply say what fetch should return. Then I can test that the UI correctly responds to every scenario provided by the API contract. Was thinking Jest.

lewis,
@lewis@social.lol avatar

@afilina I've used this before: https://mswjs.io/docs/integrations/node/

It's a bit fiddly to get setup initially, but it does work fairly well.

The other way I've done it is to have the calling function/class take a fetchFn, which defaults to native fetch, but for tests I can pass a mocked function in instead

lewis, to cycling
@lewis@social.lol avatar

Think I might convert my old Peugeot bike into a single-speed for commuting. It'll eliminate so many issues I end up with around gears, wheels, & general maintenance.

I was considering doing it anyway to sell, but my LBS has suggested it for me as a commuting option, which is tempting tbh

robb, to random
@robb@social.lol avatar

I'm so exhausted by various self-hosted projects that say "It's easy to host on {Netlify|Vercel|CloudFlare}" with no thought about what happens when those companies no longer offer a free tier, get too expensive, or you just want to move off of them. One specific host as part of the infrastructure is a terrible idea.

Do you know what's nice and easy to install on a server and not locked to one vendor? PHP. https://rknight.me/notes/202405211209/

lewis,
@lewis@social.lol avatar

@robb I didn't even realise people wrote PHP anymore

🎣

lewis, to cycling
@lewis@social.lol avatar

Another pinch flat this morning, this time because I'd put my new wheels on the commuter bike 🤦‍♂️ Marathon Plus tyres are a pain to get on, especially in the dark, by the side of the road

lewis, to random
@lewis@social.lol avatar

What do people use for bookmarking articles/sites to read later? My current strategy of “open in new tab and hope I remember before it auto-archives” isn’t working out for me, shockingly

lewis, to random
@lewis@social.lol avatar

Started the account migration now. Turns out Firefish is a pain to migrate from, especially if you're an admin account - had to manually remove my admin privileges using Postgres to do it

lewis, to random
@lewis@social.lol avatar
lewis, to random
@lewis@social.lol avatar

I’m very glad I prepared my first weeks posts. Moving house this weekend and we won’t have internet until Tuesday at the earliest, so no chance to write anything this weekend

lewis, to random
@lewis@social.lol avatar

No I don't want to watch a video to find out what your expensive product does. Just give me a list of the features!

lewis, to random
@lewis@social.lol avatar

New post: My first ever promotion

I got promoted for the first time in my entire career today, believe it or not

https://lewisdale.dev/post/my-first-ever-promotion/

lewis, to random
@lewis@social.lol avatar

New post: The web doesn't want to be browsed

A little rant about the state of modern web browsers

https://lewisdale.dev/post/the-web-doesn-t-want-to-be-browsed/

lewis, to random
@lewis@social.lol avatar

New post: Theory: Lara Croft is a vampire

I've had far too much time to play games, and this is the result. I'm sorry.

https://lewisdale.dev/post/theory-lara-croft-is-a-vampire

lewis, to random
@lewis@social.lol avatar

Renting continues to get worse, as now Rightmove actually tries to get you to submit to a credit check just so you can send an email to a letting agent

lewis, to cycling
@lewis@social.lol avatar

Finally! 🎉

#BikeTooter

lewis, to cycling
@lewis@social.lol avatar

Nice Sunday ride out today, tackling a few short-but-steep hills in the area in an effort to get better at climbing.

My Specialized Allez has been such a brilliant bike, I’ve covered probably 12-13,000km on it, and I got it as a gift from a friend who was having a clear-out. But I really can’t wait to get my new bike, it should be ready within the next week or two according to Ribble

lewis, to random
@lewis@social.lol avatar

Well this is a new one

lewis, to random
@lewis@social.lol avatar

Question for people who sit on video calls in crowded coworking spaces, without wearing headphones: why?

lewis, to random
@lewis@social.lol avatar

Just went to have a look at the website for the Giro D'Italia (cycling race like the Tour de France, for those that don't know).

It's like a masterclass in how to make an inaccessible website

  • Images without alt text
  • Icons that are just <divs> with a background image applied in CSS
  • "Buttons" are just <span> that show/hide content using onClick Javascript handlers
  • Keyboard navigation is nearly impossible, no focus indicators anywhere
  • Disabling Javascript breaks nearly everything
lewis, to random
@lewis@social.lol avatar

Reasons my daughter is mad at me now include “I won’t let her go into the Goofy Movie”

lewis, to random
@lewis@social.lol avatar

Some of the Google product UIs are just... the worst. My org uses Looker for data analysis, and I needed to configure an alert on a dashboard.

It took me about 15 minutes to find the alert icon, which is only discoverable after you exit development mode, and then hover over the title of a card on the dashboard. Who thought that was a good idea?? Just... put the icon there, make it clear

lewis, to random
@lewis@social.lol avatar

New post: It's CSS Naked Day

It’s CSS Naked Day[1], so to celebrate I’ve stripped all of the CSS from my
blog. I’ve added a quick Nunjucks shortcode to make it easier, so the CSS should automagically reappear tomorrow morning […]

Read it: https://lewisdale.dev/post/it-s-css-naked-day/

lewis, to random
@lewis@social.lol avatar

Streaming services need a “here’s what you’re watching on repeat” section so that I don’t have to search for the Goofy Movie every single time my daughter asks for it

lewis, to random
@lewis@social.lol avatar

📝 New post: WeblogPoMo 2024

Once again unable to say no to a commitment, I&;ve signed up to WeblogPoMo 2024, in which I post something to my blog every day for the month of May

🔗 https://lewisdale.dev/post/weblogpomo-2024/

lewis, to random
@lewis@social.lol avatar

Ordered a massive pipe wrench to try and help remove a very seized seatpost (I don’t have a table vice), but then managed to get it unstuck before the wrench arrived so now I just like… have a pipe wrench that I’m almost certainly going to forget to return

lewis, to random
@lewis@social.lol avatar

📝 New post: Adding some slashpages

Inspired by the release of slashpages.net, I've added a couple to my blog

🔗 https://lewisdale.dev/post/adding-some-slashpages/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • ngwrru68w68
  • osvaldo12
  • cubers
  • magazineikmin
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • InstantRegret
  • kavyap
  • everett
  • megavids
  • Durango
  • ethstaker
  • GTA5RPClips
  • Leos
  • khanakhh
  • mdbf
  • tester
  • modclub
  • cisconetworking
  • provamag3
  • normalnudes
  • anitta
  • lostlight
  • All magazines