Articles

Software engineering lessons from production, raw and honest from the heart — almost 20 years of them. Jump to a year in the sidebar, or browse categories.

June 2021

Use Netlify's _redirects on Gatsby Cloud

Something always goes wrong when you change hosting providers. 😅 For me it was redirects. A vital feature of any site migration.

Do important work

Next time you finish a project, ask yourself: *"Might this work be important?"*. Add the polish.

A better React 18 startTransition demo

Demoing startTransition is hard. Modern computers are too fast 😅 – Dan Abramov, a React core team member, helped me fix it up. Here's what I learned

Trying out React 18 Alpha

I read everything about React 18 Alpha, trawled through the work group, and ran some experiments. Here's what you'll wanna know.

Words that scare developers

Words that scare developers are powerful tools that are not meant to be safe. That is a valuable lesson.

A fun security bug with static rendering – CodeWithSwiz #31

The flash of unlocked content is great fun for any paywall

May 2021

Software Engineering is the 2nd best job

Ok so I've been doing lots of research into the Software Engineer job market – Some highlights 👇

Why you need a positioning statement

High value experts use positioning statements to say what they do for whom. Most engineers don't have one. 🤨

Build privacy-focused blazing fast tweet embeds – CodeWithSwiz 30

Twitter embeds every tweet on your page as an iframe. Loads 1.2MB of JavaScript, makes 20+ HTTP requests and uses 100+ DOM nodes. 💩

What matters in a senior engineer job interview

Degree matters if you have nothing better to show, consulting and BigTech backgrounds are negative, too many seniors can't code.

Twitter embeds without JavaScript, pt1 – #CodeWithSwiz 29

Continuing our quest for better Lighthouse scores, more reader privacy, and less JavaScript we attacked the next biggest culprit 👉 Twitter.

April 2021

the trashcan metaphor

2 quick tips for 250% better Lighthouse scores – CodeWithSwiz 28

Your site may be fast for users, but Google don't care. Official metrics or bust.

Flow good for programming, not engineering

Friend, how good are you at your best? ... Nobody cares. How good are you at your average? What about your worst?

Serverless file upload to S3 with NextJS and AWS Lambda – CodeWithSwiz 27

The Girl loves her daily cute photos, but she's bored of repeats. What if adding images was easier 🤔

Send daily random photos from an S3 bucket using AWS Lambda – CodeWithSwiz 25

An experiment that sends daily photos from an S3 bucket to an IoT device using AWS Lambda

March 2021

Your serverless questions, answered

When talk comes to serverless, engineers have lots of questions. Here are some answers 😊

Your luck & opportunity surface area

Here's a comment that resonated yesterday and you might like. It's about how to maximize the opportunity in your work.

How do you know if serverless fits your project?

The hallmark of a true expert is understanding about the pros and cons of your technical decisions.

Serverless Handbook coming Mar 31st

Serverless is the future. New book coming out Mar 31st and it's looking bomb

Different medium, different mindset

Ever wondered what it's like to make a physical book? It ain't as easy as shipping code lemme tell ya 😅

Go full-stack in 5min with your first cloud function

How *do* you build a JavaScript function that runs in the cloud serverlessly? Here's how to get started with Vercel, Netlify, or AWS Lambda

Can you automate love?

What's the laziest thing you've ever built? For me it's a bot that sends cute pictures every day

If you can JavaScript, you can backend

When you think of a backend or server developer, who comes to mind? A wizard of arcane magics. The future belongs to full-stack frontend engineers.

That time serverless melted my credit card

Serverless is pretty cheap. But you *can* get it wrong.

Why serverless fits side-projects perfectly

How do you provision servers for no load most days THEN ALL THE LOAD THIS MINUTE? That's how side-projects work and it's hard

How a $12 AWS bill powers a $50k business

my point is that running server code on the web has become ridiculously cheap *and* easy

Variants – a quick tip for better React components

Reusable components like to grow boolean props for different situations and complexity soon blows up. Variant props are the perfect solution.

February 2021

Can you code faster?

What slows you down most while coding? It's not lack of skill. It's not lack of ideas. It's uncertainty. Fear.

Reverse engineer a GraphQL API to automate love notes – CodeWithSwiz 24

We used a man-in-the-middle attack to snoop an app's API traffic, replayed it in a GraphQL client, and successfully put it inside an AWS Lambda 🤘