Phil Nash

https://philna.sh/blog

4 posts

Tech 75% · Writing 25%

Subscribe via RSS

  1. Build a contact form with Astro and Resend

    I try to keep my email address from appearing on public websites to avoid spam. But I do like people to be able to contact me if they have something I might be interested in. The solution for this? A contact form! This site is mostly statically generated, but as it is currently built with Astro and hosted on Cloudflare Workers, I can designate an endpoint as dynamic, use it to accept a form submission, validate the data on the server, and send it to my email inbox using Resend. In this post,…

    0 ▲
  2. Generate AI-powered related content for your Astro site

    Showing related posts beneath a blog post is a great way to give your visitors more to read and encourage them to spend more time on your site. Existing methods of showing related content include matching posts by tags or by manually adding related posts to your frontmatter. Both of these work, and I used to use tag-based related posts myself, but I wanted something a bit less manual. It's a perfect use-case for vector embeddings to help tell what content is similar to other content. I have…

    0 ▲
  3. I built a new app and I don't know how I feel about it

    Much like almost every other developer on the planet, I have been trying to work out my relationship with coding agents. I have been using AI-assisted coding since the GitHub Copilot beta came out in 2021 (yes, that long ago) and have seen them evolve from being a fancy autocomplete to sidebar assistants to full-blown applications that don't even show you the code (unless you want to see it). I've used almost all variations of coding assistants, but one thing I hadn't experimented with was…

    0 ▲
  4. 5 quick tips for giving better presentations

    I have been speaking publicly at developer conferences for over a decade and in that time I've seen plenty of other people giving talks. Everyone gives talks differently, and if you are a speaker or thinking about getting into it, I encourage you to work on developing your unique style as well as your content. However, recently I have noticed a few little things that some speakers do and others do not that make for a better experience for both the audience and the presenter. They are mostly i...

    0 ▲