惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园_首页
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
Y
Y Combinator Blog
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
G
Google Developers Blog
Last Week in AI
Last Week in AI

CloudCannon Blog

Building with AI: Git-based vs headless vs traditional CMS CloudCannon + Astro: performance meets powerful content management Introducing the Astro Component Starter Introducing Jetstream — built on the Astro Component Starter Why we switched to the system font stack Redesigning CloudCannon’s docs with Diátaxis, Lume, and Pagefind Make content editing more visual: upgraded Editable Regions How Configuration Mode makes building editing interfaces easy Your hosting just got an upgrade (and a price cut) Custom testing domains for professional branding Keep your content consistent with input validation Managing multilingual content in CloudCannon Simplify team publishing with conflict resolution and domain tools Open Beta: Publishing Conflict Resolution Getting started with CloudCannon and Astro: Bookshop, components, and live editing Welcome to the CloudCannon Community! Omnichannel delivery is just marketing spin from API-based CMS companies Getting started with CloudCannon and Astro: Snippets and Collections Managing digital assets in CloudCannon: a guide to smart asset storage Understanding CloudCannon's branching workflows and Projects: a complete guide What is a static website? CloudCannon’s 2024 wrapped Getting started with CloudCannon and Astro: WYSIWYG blogging Jamstack vs. WordPress: reasons to make the change The top five static site generators for 2025 (and when to use them!) Free Jekyll themes for 2025: ten great community options Eleventy (11ty) vs. Hugo How to set up WYSIWYG editing with MkDocs Material The rise of static-first websites: why major brands are making the switch Watching your Core Web Vitals on Jamstack
Artisanal Web Development
2022-10-12 · via CloudCannon Blog

On our last episode of Static Feedback, I spoke with Joost van der Schee about ‘Artisanal Web Development’, the approach he takes to solo web development projects. Over the course of our conversation we talked at length about the importance of knowing the purpose and scope of each line of code, and the value of approaching new projects like this.

Joost interprets this approach as deliberately avoiding frameworks that ‘simplify’ code by including predefined classes and functions that are shipped client-side, even if they’re not used. In principle you’d think these frameworks would be helpful, and they certainly can be, on the development side. The trouble is, unless they’re pared back with additional tooling (like PurgeCSS, for example), even well designed and developed sites can bloat significantly.

When you’re working in teams, or handing off a site to a client developer who’s going to continue working with your front-end project, the most important thing to do is find common ground. This might take the form of a carefully scoped framework or a handcrafted component system, or code that you construct specifically for your use case.

Our conversation is above if you haven’t seen it, but we discussed three major arguments in favor of artisanal web development:

Faster loading websites Direct link to this section

If you avoid frameworks and third-party code your websites will usually be considerably smaller, and will thus load faster for users. And generally speaking, faster page loads means happier users!

Flexibility and efficiency Direct link to this section

If you know the purpose of every single line, you’re much more likely to be able to make small tweaks and adjustments to the site. If you’re working on a client site, it’s particularly important to know which aspects of the site are easy to change, and which would require additional development time.

Personal education Direct link to this section

Developers are typically life-long learners — it’s one of the most exciting parts of the job, and it’s hard to argue against the benefits of learning more about the code you ship. Unless you’re extremely time-poor or don’t see yourself making more websites in the future, the return on investment for learning the limits of your code will make the effort worthwhile.

Further to this point, your own learnings will accumulate to the point that you’ll want to record them for later use, making you a more efficient developer while also helping others following in your tracks. Joost, for example, keeps track of the common solutions he encounters on his community sites, Hugo Codex and Jekyll Codex.

As he notes in his own follow-up post, your own understanding of every line of code can even make you a better user of web frameworks, because you get a better understanding of the problems that these frameworks are trying to solve.

Extending the conversation Direct link to this section

As Joost has pointed out, over the course of our conversation there were a few other important benefits of the artisanal approach that we didn’t get to discuss.

Project stability Direct link to this section

Anyone who’s maintained a WordPress or Drupal site for longer than a few months at a time will likely be familiar with the concept of ‘dependency hell’, where a single out-of-date or broken plugin or extension can cause problems with other components. The artisanal approach tends to result in more stable projects, because it only relies on web standards that simply don’t change.

Privacy and security Direct link to this section

Third-party code in ‘black box’ containers like WordPress plugins — or indeed any externally hosted code — can be a huge risk from a privacy point of view. If you can’t see, understand, and approve the code you’re relying on, you might risk exposing user data or opening up your sites to attacks like cross-site scripting (XSS).

Constrained web development and sustainable code Direct link to this section

To be clear, the artisanal approach is a deliberate constraint. It’s a set of rules you define, and can choose to apply to yourself, or to a given project. Like most constraints, though, it does promote creativity — and often the most creative solutions emerge from rigorous constraints.

The open-source search tool Pagefind is a prime example of development under constraint, while also solving a distinct problem. In its case the constraint was network traffic — why ship a large search index file to every user, when indexes can be ‘chunked’ and served atomically, on demand?

The artisanal approach, then, is about making your websites both performant and sustainable, in the sense that they’re able to be maintained under a given set of constraints. Your constraints may be different from project to project, depending on your client, or you may bring a set of rules with you to each new site build.

No matter how permanent we might wish our sites would be, as Jake Albaugh writes, our code is always transient. Luckily, our best code can be the code right in front of us, and the best website we can make right now is the next one:

If you can justify the effort of writing your own code, you become more familiar with web specifications and learn just how robust they are on their own. You also end up with something that can be easier to maintain long-term because it is closest to the core evolutionary path of the web.

As long as you have a very clear idea of who you’re developing for — of who will work with your code, and what their level of knowledge will be — you’ll know whether the artisanal approach is right for you. But as Joost writes, it’s worth trying out on your personal project sites

Less is More Direct link to this section

Joost and I focused on knowledge in our conversation on Static Feedback, but we could have equally described the artisanal approach in terms of deliberate simplicity in development. Bringing these two concepts together is where a Git-based CMS like CloudCannon comes in — because CloudCannon is tightly integrated with the ways that your chosen SSGs build your sites, we’re able to offer much more flexible development and editing workflows, whether or not you prefer to take an artisanal approach to your code.