Bytesized - Bytesized #006 — Jamstack 🥪

Bytesized Newsletter
Bytesized
Ideas for technologists

Hey, it's Kristian 👋

2021 is coming — soon we’ll be raising our sponsorship prices! It’s your last chance to grow your project super-fast by sponsoring Bytesized for a small price. Book a Sponsor Slot

Hope you're having a good December! Just a quick note — Bytesized is going on vacation for the rest of this year. Thanks to some fancy newsletter workflows, if you're behind on some of our weekly emails, you'll get caught up over the next few weeks. If you are caught up already, we'll see you again in January 😀

In case you missed it — we're giving away six copies of Colby Fayock's Jamstack Handbook at the end of this month. There's two ways to enter, and all you have to do is share the newsletter with your friends! Check out the bottom of this email to learn more.

#006 — Jamstack 🥪

Thanks to Colby Fayock and Khaled Garbaya for contributing to this issue of Bytesized.

🎓 What is it?

JavaScript, APIs, Markup.

A new (but also old) way of building apps on the web.

Per Colby Fayock, who wrote the Jamstack Handbook earlier this year:

The Jamstack is a modern architecture that revolves around the age-old idea of providing end users a website or application from static storage, while supplementing it with modern technologies like APIs and front end tooling to bring a more dynamic user experience.

The infinite jam of space and time

⌛ The past

The 2010s was the era of single page applications.

In 2012, I was writing Ruby on Rails applications -- every HTML page was compiled and dynamically rebuilt on a Ruby server, and interactive interfaces were built on the client-side using jQuery, or if I was feeling particularly ambitious, Ember.js.

Then React hit.

Single-page applications (SPAs) showed that imperative programming techniques could build powerful user interfaces, and suddenly building frontend applications meant that you were a JavaScript developer.

Interactive user interfaces were great, but offloading everything onto the browser had downsides. Via TakeShape:

The rise of single-page applications (SPAs) has given many websites the feel of a native app, allowing for a faster transition across the site, and has been adopted by JavaScript frameworks and libraries like React, AngularJS, and Vue.js. But there are a couple key disadvantages to SPAs, particularly search engine optimization and load time. SPAs are built on JavaScript, and data and content is downloaded upon request. This makes search engine optimization difficult, as individual “pages” don’t have their own URLs, and can’t be scanned by search bots.

At the same time as SPAs grew in popularity, another category of tools was having a big impact on how people were building websites on the web: static site generators.

In 2008, Tom Preston-Werner at GitHub built Jekyll, a tool for combining static templates, HTML and CSS, and combining it with Markdown content to make simple blogs and websites.

The innovation here was simple: many sites didn’t need a server. The content on a simple blog, for instance, should just be generated once, when a new post is added or something changes, and then after that, you can just load it from somewhere like GitHub Pages, AWS S3, or even a CDN.

Jekyll was the first of many static site generators -- instead of just pulling from Markdown content local to your machine, subsequent frameworks like Gatsby.js went even further: what if you could pull data from anywhere and use it to build a static site?

Instead of exposing a WordPress instance, the associated PHP runtime, and the Apache server to sit in front of it and handle requests, what if you just grabbed all the data using an API request, and built a static version of the site to expose to your users?

🤔 Why it matters

Jamstack applications lean on build tooling like static site generators and content APIs to enable developers to offload their workload in two ways:

  1. Let focused services do the hard stuff (Stripe, Sanity.io)
  2. Move the bulk of your application’s data management to build-time

Here’s Colby on why Jamstack matters:

The fundamental qualities that Jamstack apps are trying to solve help everyone from the business owner to the customer.

For the business, you’re going to get a reliable app that’s cost effective that will make customers happy.

For a developer, you’re getting modern tooling that lets you keep working with the fun, more interesting parts, but it also inherently covers technical concerns like some security issues, performance, and maintenance, as a lot of the times, there is no maintenance with things like static storage.

For customers, you’re getting a fast app with a great experience that will help you solve your problems faster whether you’re making a purchase or just trying to read someone’s blog.

👶 Where to start

Khaled Garbaya on where to start:

Start simple and use a technology you’re most familiar with. Don't build everything yourself -- we’re not experts in everything, that's why there's API services.

There's a lot of tools to choose from in the Jamstack world: there's basically a static site generator in every programming language, a number of ways to manage your content, and API services springing up every day to help you with auth, developer experience, collaboration, and more.

Here's a list of a few things to check out, recommended by Colby and Khaled:

📌 Players

Interestingly, there's a strong correlation between players in the Serverless and Jamstack worlds. They're ideologically similar -- reducing friction in applications, and so a lot of the same companies and services play in both spaces. CSS Tricks' "The Power of Serverless" micro-site secretly acts as a great resource for Jamstack players as well, with sections like:

Many existing players in the CMS space are adapting to Jamstack, like WordPress and Ghost. Newcomers like Sanity.io and Contentful are building with a Jamstack-first approach, using modern API tooling and providing integrations with tools like Gatsby.js and Nuxt.js.

From Colby:

Next.js isn’t a company, but as a tool, it’s doing a pretty great job at defining what web apps should look like from a developer point of view. Vercel is the team that leads development efforts and has done a great job at pushing boundaries and listening to what developers want.

Netlify, who actually coined Jamstack as well as maintain sites like jamstack.org, were one of the first companies to feature the insanely simple setup of going from GitHub repo to statically deployed app with all of the automation along side of it. They’re more fundamentally sold on statically hosted apps, but provide additional features like lambdas and now edge functions.

🙅‍ Criticisms

Over at CSS Tricks, Brian Rinaldi debunks 5 Myths About Jamstack:

  1. They’re rebranded static sites
  2. Jamstack sites are fragile
  3. Editing content is difficult
  4. SEO is hard on Jamstack
  5. Jamstack requires heavy JavaScript frameworks

Jay Freestone offers some legitimate criticisms of Jamstack on London-based consultancy Browser’s blog — from the perspectives of performance, developer experience, and dynamism:

There’s still a place for static sites on the web, but it’s shrinking, not growing, and likely still the domain of developer portfolios and side-projects. Sure, it’s possible to engineer a workflow in 2020 that manages to smoosh together a set of disparate 3rd parties, a version-control-system backed CMS and a bunch of template files into a working (and fast!) site, but the value is questionable. Instead of reducing complexity, the JAMStack just shifts it around.

It’s fitting that we have taken the simplest form of a website — static HTML — and transformed it into a complex landscape of build processes, tooling and services that more than rivals the complexity it set out to supplant.

Here’s Colby again on incorporating Jamstack into larger stacks:

I haven’t experienced anything that I’d fundamentally criticize Jamstack as severely flawed, but how it’s incorporated into a full development stack can be tricky depending on the flexibility and skillsets you have for putting together a backend or what services you use to accomplish that.

🙋 Who to know

What did you think of Bytesized #6? Let us know by clicking a reaction below ⏬

😍 🤯 😴 😡 👍 👎

Bytesized is a weekly newsletter exploring ideas for developers. Join us on our Discord server 👋

Book a Sponsor Slot

Refer your friends to our newsletter!

You'll get rewards and swag as you refer more people to Bytesized :)

It’s easy, just copy and paste your unique link and share it in an email, on Twitter, or wherever you like. Thanks for spreading the word!

Your referral link: https://www.bytesized.xyz?rh_ref=d69b9b2f

Bytesized is produced by Kristian Freeman (hello!)

You can unsubscribe from our emails here.

10025 Wind Cave Trail, Austin, TX 78747

Older messages

Bytesized #005 — GraphQL 📈

Tuesday, December 8, 2020

Bytesized Ideas for technologists Fauna is a flexible, developer-friendly, transactional database delivered to you as a secure, web-native API. Never again worry about database provisioning,

Bytesized #001 — Human-computer interfaces

Sunday, December 6, 2020

Bytesized Ideas for technologists 🔐 Overwhelmed by auth? Auth0 lets you quickly and easily add rock-solid authentication to your applications, including universal login, multi-factor authentication,

Bytesized #002 — Svelte.js ⚡️

Sunday, December 6, 2020

Bytesized Ideas for technologists 🔐 Overwhelmed by auth? Auth0 lets you quickly and easily add rock-solid authentication to your applications, including universal login, multi-factor authentication,

Bytesized #003 — Serverless 📦

Sunday, December 6, 2020

Bytesized Ideas for technologists 🔐 Overwhelmed by auth? Auth0 lets you quickly and easily add rock-solid authentication to your applications, including universal login, multi-factor authentication,

This is what happens when software developers run Black Friday deals

Sunday, December 6, 2020

​ I know that you're going to get a thousand of these kind of emails today, so I'll keep it short and sweet. We're working with eight excellent authors and educators over the next few days

You Might Also Like

Dark forest, bad art and paying to bike

Saturday, December 28, 2024

Neologism #24, 28.12.2024 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Weekend Reading — Happy New Year! 🥳

Saturday, December 28, 2024

Vitalis 🇺🇦 The most original and unusual landmark in Odesa, which has become a symbol of the creativity of Odesa residents. Tech Stuff Cursor I really really like Cursor. I had a great time using VS

Daily Coding Problem: Problem #1651 [Hard]

Saturday, December 28, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Apple. You are going on a road trip, and would like to create a suitable music playlist.

📺 There's Still A Place for Universal Remotes — 10 Apps I Always Install on a New Mac

Saturday, December 28, 2024

Also: How to Add Emails to Your Tasks To-Do List in Gmail, and More! How-To Geek Logo December 28, 2024 Did You Know In December 2014, two con men from Girona, Spain, agreed to sell a fake Francisco de

Ranked | The World's Top 30 Countries, by Automobiles Manufactured 🚙

Saturday, December 28, 2024

In 2023, China led global car production, contributing nearly a third of total output. Which countries followed in this competitive industry? View Online | Subscribe | Download Our App FEATURED STORY

🐍 New Python tutorials on Real Python

Saturday, December 28, 2024

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: Learn From 2024's Most Popular Python

15,000+ Four-Faith Routers Exposed to New Exploit Due to Default Credentials

Saturday, December 28, 2024

THN Daily Updates Newsletter cover Resilient Cybersecurity ($39.99 Value) FREE for a Limited Time Reconstruct your defense strategy in an evolving cyber world Download Now Sponsored LATEST NEWS Dec 28,

Hands Down One Of The Best Cards For 2025 Offering 0% interest until 2026

Saturday, December 28, 2024

iPhoneLife Logo Sponsored email sent by iPhone Life Hands Down One Of The Best Cards For 2025 Offering 0% interest until 2026 If you have outstanding credit card debt, getting a new 0% intro APR credit

📧 What Rewriting a 40-Year-Old Project Taught Me About Software Development

Saturday, December 28, 2024

​ What Rewriting a 40-Year-Old Project Taught Me About Software Development Read on: m​y website / Read time: 7 minutes The .NET Weekly is brought to you by: As the year wraps up, it's clear API

This Week in Rust #579

Saturday, December 28, 2024

Email isn't displaying correctly? Read this e-mail on the Web This Week in Rust issue 579 — 25 DEC 2024 Hello and welcome to another issue of This Week in Rust! Rust is a programming language