Dan Barclay

Dan Barclay

@danbarclay.dev

Tech Lead 🧑🏻‍💻 Website and app builder ⛏️ Ending Food Waste for Good with KeepFre.sh

34 followers75 following119 posts

KeepFresh v1.1 (my food waste tracking app) just dropped! Edit, move and add additional food items in a flash. Blazing fast search from 3mil+ grocery products that's growing everyday. Find all your supermarket favourites - guaranteed. Give it a try! apps.apple.com/app/keepfres...

apps.apple.comKeepFresh: Food Waste Tracking App - App StoreDownload KeepFresh: Food Waste Tracking by Daniel Barclay on the App Store. See screenshots, ratings and reviews, user tips, and more games like KeepFresh: Food…

Dan Barclay reposted

Want an easy way to stay up to date with new releases of libraries, frameworks and tools you use #buildinpublic? Easiest way I've found: Go to the relevant Github repo, click on Watch -> Custom -> Releases, and you'll get notified by email every time a new release is made 👌

Say you're working on a UI design from Figma that's using hex codes for colours: If you stumble across a new colour to add to the UI e.g. #EAF2FC, does a tool exist to automatically determine the relative value of the new colour to your existing colour set? Ideally would return blue-100 here

"Hey Siri, define recovery winter arc" 📈 *Disclaimer, my work required me to use a different Github account so these are all purely open source commits. Feels great to be getting back to side projects and super motivated to make 2025 the year they go live. Happy New Year everyone 🎉

The Next team are ridiculously good at this. We need more people in the react-router/Remix ecosystem to follow suit

leerob@leerob.com

I built a clone of the Yeezy store: nextzy.vercel.app Built with @nextjs.org, @v0.dev, and @motion.dev. Code is open source!

Ignoring all the controversy with Kanye for a moment, the UX of yeezy.com is extremely good. I'm a huge fan of futuristic minimalism as a design philosophy (anything Black Mirror inspired floats my boat). Cooking up something of my own for my portfolio website soon ⏳

yeezy.comYZYYZY

Jumping onboard the Ghostty hype but I'm loving it so far 👻 ⚡️It's super fast, works with existing zsh configurations, great built in themes too. It's my go to Terminal now. Seriously tempted to learn Zig following Ghostty's and Bun's track record for speed

Inching closer to getting KeepFresh live (the app I'm building for fighting food waste). Keeping to a strict MVP is a challenge but motivated to share a TestFlight link in early January. Back to designing the last screens and then hooking up the API 🚀 github.com/barclayd/kee...

Relieved to be free of AoC duties now it's Christmas Day but really enjoyed challenging myself and completing the challenge for the first time this year (3rd attempt - 2018 day 7, 2022, day 13). DFS, BFS and Dijkstra'salgorithm are firmly ingrained in my mind 😅 github.com/barclayd/adv...

github.comGitHub - barclayd/advent-of-code-2024: Advent of Code 2024, written in RustAdvent of Code 2024, written in Rust. Contribute to barclayd/advent-of-code-2024 development by creating an account on GitHub.

“The best designed software is frictionless to change” 👆I’ve come up with my first engineering principle after nearly 6 years of professional software engineering at some of the biggest companies in the UK Blog post incoming 👀

This might be my most satisfying Github Actions set up yet. Context: Large monorepo of projects that each have their own tests (no shared code). Only run tests for projects that have code changes in the most recent commit(s). Git diff + bash magic generates a matrix of projects to be tested, < 9s

TIL I've been sleeping on folders in Mail for over a decade 🤯 Today is the first time I've seen my inbox at 0 since the day I setup my email account. Feels great to have things organised. Now to create an LLM that can do all future organising for me 🧠

After 6 weeks with Cursor, I feel like I'm starting to get an understanding on how to get the most benefit from AI in my daily coding ✅ Turning off Cursor autocomplete has been the biggest boost in improving my daily interactions with AI, productivity and code quality

View full thread

Strengths of AI in 2024: ✅ When you have a backbone of tests to safeguard your business logic, AI chat can shine in explaining refactors and reviewing your code ✅ READMEs should never be empty or look ugly again, AIs take all the effort out of putting one together and maintaining it

✅ AI is exceptionally good at command line scripting and regex ✅ AI is really good at implementing and optimising CI/CD pipelines. Spinning up GitHub Actions for parallelised matrixes in a monorepo takes seconds ✅ Rubber ducking code is a breeze with AI and it can simplify legacy code quickly

After 6 weeks with Cursor, I feel like I'm starting to get an understanding on how to get the most benefit from AI in my daily coding ✅ Turning off Cursor autocomplete has been the biggest boost in improving my daily interactions with AI, productivity and code quality

Pitfalls of AI in 2024: ❌ Autocomplete often removes the space/time to think about what I'm implementing ❌ Often the suggestion will look ok on the surface but is riddled with hard to spot bugs that take ages to find ❌ Chat feature often makes up fake APIs for newer tech e.g. SwiftUI or Bun

Dan Barclay reposted

More API products should return errors with links to docs. I suspect I get fewer support tickets and quicker integrations because of that. For every possible API error, I return a link to the dedicated page on the possible reasons and how to fix it.

TIL that I never need to lose my inline styling changes made in Dev Tools ever again 🤯

Simon Holmes@srsholmes.com

Good morning Bluesky 👋🏼 🦋 Web Dev / Dev tools tip 🔥 Did you know there is a 'changes' tab in the browser dev tools? It keeps track of changes that you make and presents it in git style diff UI. You can even copy changes when you're finished! 🤯 Never lose those unknown CSS changes again 🎉

Dan Barclay reposted

Replying to @ricky.fm

Thank you. I really like react scan and think it's awesome. But I wish it also had tools for before/after measurements that showed whether optimizations paid for the added complexity in perf gains.

This is super neat from @wesbos.com as always 🔥 Great to see focus on accessibility too. CSS grid is super underrated and can help solve so many issues more elegantly than flexbox. Really hoping the CSS-first configuration in Tailwind v4 makes writing grid css easier than before

Wes Bos@wesbos.com

How do you make a button that doesn't change it's width when it's in a loading state? Use CSS Grid to stack items, and visibility: hidden to hide/show spinner! This approach allows the largest item to size the button, and keeps the button text accessible

Dan Barclay reposted

Replying to @shilman.net

As I understand, SB leans heavily into module mocking, which yields an integration test. I believe a proper way to test RSC is an e2e test that runs the underlying framework, be it Remix or Next, in its entirety, executes routes, loaders, server-side code as it happens in production.

Another reminder of the amazing impact @tannerlinsley.com and the maintainers of his projects have had in the front end ecosystem. Great to see more commonality within our community, we’re so much more powerful working together

Leonardo Montini@leonardomontini.dev

TanStack Form now supports Standard Schema validators! 🔀 You can swap between Zod, Valibot and ArkType without zero effort, give it a try on the stackbliz you can find in the official docs 👇 tanstack.com/form/latest/...

Dan Barclay reposted

Replying to @kettanaito.com

As it often comes, one should test a thing similar to how it's used. RSC is by design a full-stack feature requiring the client and server/build. It's crucial we preserve that requirement in testing. The easiest way to do that is to build your app and interact with it. Almost a conventional e2e test

Dan Barclay reposted

I've had a great discussion around testing RSC with @kentcdodds.com the other day. I will share my view on it once I've explored the tools (and wrote a few of those myself). So far, I see the in-browser, app-instance-per-test approach to justify its cost. It's always about justifying the cost.

Dan Barclay reposted

I love that @bsky.app has a setting to make alt text required for images I post. Here’s a nice 🧵 on what should go in there!!!

Accessibility Awareness@a11yawareness.bsky.social

Alt text is not the same as a photo caption. Captions are typically written to support a photo, and usually depend on users being able to see the photo. But alt text is meant to be the stand-in for the photo. The alt text is what a screen reader user gets in place of the photo.

Dan Barclay reposted

There’s a $2.99 app in the App Store right now “My Classic - Retro Console” that’s hiding its true feature: an iPod Classic emulator that utilizes your Apple Music library. It works amazingly well and if you want it, get it before Apple pulls it (they will).