hello.js

var please = require('share');
console.log('thank you');

NEW !!!

Tuesday, 17 January, 2023 UTC

Promises, Thenables, & Lazy-evaluation: What, Why, How

It’s the start of a new year, and while lots of folks are promising to be more active, I’m going to show you how to make Promise s to be more lazy…JavaScript Promise s, that is. It’ll make more sense in a moment. First, let’s look at a basic Promise ... more


Tuesday, 3 January, 2023 UTC

Conditional API Responses For JavaScript vs. HTML Forms

Today, I’ll show you how to detect whether an HTTP request was submitted via HTML form or with JavaScript to the server. The examples in this post are based on Nuxt.js and include references to a few global functions ( defineEventHandler , getRequestHeaders ... more


Thursday, 15 December, 2022 UTC

5 ways CSS :has() can make your HTML forms even better

There’s been a lot of hype lately around the CSS :has() pseudo-class. And rightly so! It’s basically the “parent selector” we’ve been asking for for years. Today I want to focus on ways we can use :has() to make HTML forms even better. (There’s a Codepen ... more


Monday, 21 November, 2022 UTC

Automatically Deploy Apps to VPS with Git Triggers & Coolify

I make a lot of silly projects, and one things I’ve wanted for a long time is a way to automate the deployment process using Git. So in this blog post, we are going to be tackling just that. First things first, let’s settle on what the target is. What ... more


Thursday, 15 September, 2022 UTC

Fixing Obscure Bugs: Apache, GZip, ETags, & Edge Compute

I was recently introduced to an obscure performance bug with Apache’s GZip module, and a clever solution using EdgeWorkers. So I made a video, and a small blog post to cover it: One thing I love about my job is when I get to work with people that are ... more


Thursday, 19 May, 2022 UTC

What is Edge Compute? It’s kind of like knitting dog hats

한국어 버전 (Korean version) I’ve been trying to come up with a good explanation of what exactly “edge compute” is and for reasons I don’t need to justify to you, I’ve landed on the analogy: it’s like selling knitted hats for dogs. Why knitted dog hats? Because ... more


Tuesday, 29 March, 2022 UTC

Make Beautifully Resilient Apps With Progressive Enhancement

I’ve talked at length about the benefits and virtues of progressive enhancement. I won’t spend too much time explaining it today, but it boils down to this: provide at least a working experience to the most users possible, and jazz things up for users ... more


Tuesday, 15 February, 2022 UTC

Cookies At The Edge: Not A Baking Blog Post

I came across an interesting use case for edge compute the other day: cookie management at the edge. It probably won’t be super relevant to a ton of people, but it’s an interesting use case I wanted to share, nonetheless. Brief Background About Cookies ... more


Friday, 21 January, 2022 UTC

Optimizing Content Migrations With Edge Compute

The more I learn about edge computing, the more I look for compelling use cases that developers can relate to. Today, I have one: edge redirects. Background Imagine you manage a website with a lot of content. I’m talking, like hundreds of thousands of ... more


Wednesday, 22 December, 2021 UTC

New Job, Who Dis?

Hey friends, I have a little life update I wanted to share with you. Last month, I started a new role as a Senior Developer Advocate at Akamai. I’m super excited about this because it aligns well with my interests, and I wanted to take this opportunity ... more


Sunday, 21 November, 2021 UTC

Making Accessibility More Accessible

Every person I’ve worked with has agreed that making the web more accessible is a good thing. We don’t want to disservice any of our users. However, accessibility is nuanced, the work is not always straight forward, and responsibility can be unclear. ... more


Thursday, 4 November, 2021 UTC

Building Super Powered HTML Forms with JavaScript

I recently gave a talk for the Conf42: JavaScript 2021 conference on using JavaScript to progressively enhance HTML forms. The goal was to show people how to improve user experience without negatively impacting native functionality. Transcript 0:01 Today ... more


Monday, 18 October, 2021 UTC

3 Ways To Write Function Overloads With JSDoc & TypeScript

I like TypeScript, but I prefer the JSDoc syntax for writing it. That should be obvious if you’ve read any of my JavaScript articles, especially Get Started With TypeScript the Easy Way. So far, I haven’t run into any scenarios where I can’t use JSDoc ... more