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

推荐订阅源

F
Full Disclosure
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
LINUX DO - 最新话题
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
月光博客
月光博客
博客园 - 叶小钗
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
量子位
美团技术团队
Vercel News
Vercel News
Y
Y Combinator Blog
IT之家
IT之家
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
腾讯CDC
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
罗磊的独立博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
博客园 - 司徒正美
N
Netflix TechBlog - Medium
S
Schneier on Security
博客园 - 聂微东
U
Unit 42
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
Latest news
Latest news

Hacker News: Best

madhadron - The seven programming ur-languages GitHub - smol-machines/smolvm: Tool to build & run portable, lightweight, self-contained virtual machines. I Measured Claude 4.7's New Tokenizer. Here's What It Costs You. Introducing Claude Design by Anthropic Labs It Is Time to Ban the Sale of Precise Geolocation The creative software industry has declared war on Adobe Isaac Asimov: The Last Question Newly unsealed records reveal Amazon’s price-fixing tactics, California attorney general claims Clojure - Documentary Android CLI and skills: Build Android apps 3x faster using any agent Qwen3.6-35B-A3B on my laptop drew me a better pelican than Claude Opus 4.7 Codex for almost everything Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? Virginia Bans Sale of Geolocation Data YouTube now lets you turn off Shorts Burgers | マクドナルド公式 ChatGPT for Excel Ask HN: Who is using OpenClaw? Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Open Source Isn't Dead. The Future of Everything is Lies, I Guess: New Jobs Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests IPv6 – Google Your Backpack Got Worse On Purpose Good sleep, good learning, good life Fixing a 20-year-old bug in Enlightenment E16. Does Gas Town 'steal' usage from users' LLM credits & paid services to improve itself? Tell HN: Fiverr left customer files public and searchable Cybersecurity Looks Like Proof of Work Now Getting the Flock out Release OpenSSL 4.0.0 · openssl/openssl Internet será irrespirable los días de fútbol y otros deportes. Telefónica extiende los bloqueos a Champions, tenis y golf. Automate work with routines - Claude Code Docs The Future of Everything is Lies, I Guess: Work Thousands of rare concert recordings are landing on the Internet Archive — listen now What is jj and why should I care? Backblaze has quietly stopped backing up your data Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Codex Hacked a Samsung TV The Future of Everything is Lies, I Guess: Safety GitHub - sterlingcrispin/nothing-ever-happens: Polymarket bot that buys "No" on all non-sports markets. For entertainment only, mostly a meme. Make tmux Pretty and Usable - Ham Vocke Microsoft isn't removing Copilot from Windows 11, it's just renaming it Servo is now available on crates.io - Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications. We May Be Living Through the Most Consequential Hundred Days in Cyber History, and Almost Nobody Has Noticed All elementary functions from a single binary operator 奈拜提耶市 Seven countries now generate 100% of their electricity from renewable energy Pro Max 5x Quota Exhausted in 1.5 Hours Despite Moderate Usage Tell HN: docker pull fails in spain due to football cloudflare block Bring Back Idiomatic Design @adlrocha - How the "AI Loser" may end up winning Apple update turns Czech mate for locked-out iPhone user Cache TTL silently regressed from 1h to 5m around early March 2026, causing quota and cost inflation The peril of laziness lost AI Will Be Met With Violence, and Nothing Good Will Come of It Center for Responsible, Decentralized Intelligence at Berkeley The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job Artemis II crew splashes down near San Diego after historic moon mission Molotov Cocktail Is Hurled at Home of Sam Altman, OpenAI’s CEO France to ditch Windows for Linux to reduce reliance on US tech On filing the corners off my MacBooks Installing every* Firefox extension Chimpanzees in Uganda locked in vicious 'civil war', say researchers linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace FBI used iPhone notification data to retrieve deleted Signal messages Microsoft suspends dev accounts for high-profile open source projects Why you can’t trust Privacy & Security Serenity Forge (@serenityforge.com) A new trick brings stability to quantum operations OpenAI Backs Bill That Would Limit Liability for AI-Enabled Mass Deaths or Financial Disasters Netflix Prices Went Up Again – I Bought a DVD Player Instead DOJ Wants to Scrap Watergate-Era Rule That Makes Presidential Records Public EFF is Leaving X How NASA built Artemis II’s fault-tolerant computer Meta removes ads for social media addiction litigation How Pizza Tycoon simulated traffic on a 25 MHz CPU Claude mixes up who said what, and that's not OK Reallocating $100/Month Claude Code spend to Zed and OpenRouter Help Keep Thunderbird Alive! Why Are Flock Employees Watching Our Children? The Pentagon Threatened Pope Leo XIV’s Ambassador With the Avignon Papacy Fragments: April 2 Native Instant Space Switching on MacOS Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Apple Silicon and Virtual Machines: Beating the 2 VM Limit
But yak shaving is fun
Simon Park · 2026-06-16 · via Hacker News: Best

The joy of building from scratch

KO | EN

A yak.

This blog doesn’t use a static site generator or framework like Jekyll, Hugo, or Gatsby. I tried a few of them at first, but they gave me too little freedom to customize, so I decided to build the blog myself. Early on I just wrote posts in HTML, but that was so inconvenient that I built a system for writing posts as JSON files. That too was awkward for longer pieces, so I developed a service that converts Markdown files into HTML files. Then I built a tool to compile and deploy the resulting files. In the end, I’d built a static site generator from scratch.

This kind of thing is called yak shaving. The term was coined by Carlin Vieri, a PhD student at the MIT AI Lab, and it refers to doing a chain of related tasks for a single goal until you lose the original purpose entirely and end up on something completely unrelated. An example mentioned on LangDev IRC makes it clear why it’s called yak shaving.

  1. I get an axe to chop down a tree.
  2. The axe is too dull, so I go looking for a stone to sharpen it.
  3. But I hear that a certain village has a really good stone.
  4. I get a yak to travel to that village.
  5. The yak’s hair is too long, so I start shaving it.

There’s also an example from Seth Godin, the entrepreneur, marketer, and author.

  1. “I should wash the car today.”
  2. “Oh no, the hose is busted. I’d better buy a new one at Home Depot.”
  3. “But Home Depot is on the other side of the Tappan Zee Bridge. I have to go through the toll, so I need an E-ZPass.”
  4. “Wait! I think I could borrow my neighbor’s E-ZPass…”
  5. “But Bob won’t lend me his E-ZPass until my son returns the pillow he borrowed.”
  6. “The pillow has shed so much yak hair that I can’t just give it back. I’ll have to restuff it with yak hair.”
  7. And so, just to wash the car, I end up at the zoo shaving a yak.

Both stories came after the term yak shaving was coined; the term itself was actually born somewhere else. Carlin Vieri, who had played hockey late into a Tuesday night, was eating dinner in the middle of the night and watching TV. On TV was the Yak Shaving Day episode of the cartoon The Ren & Stimpy Show. The plot goes like this:

Yak Shaving Day is five days off. Ren and Stimpy decorate the house by hanging a dirty diaper on the wall and pouring coleslaw into their boots. Then they set shaving cream and a razor on the bathroom sink and pray that a shaved yak will fly in on a magic kayak and bring them gifts. That night, the yak emerges from the bathtub drain, shaves, and leaves a gift in the sink before going: the very scum of the cream it used to shave.[1]

Carlin Vieri found this bizarre. A few days later, while pulling an all-nighter on paperwork (annoying chores like getting an administrator’s permission, setting up a DHL account, and finding a post office), he told a colleague he was yak shaving. He kept using the phrase with people in the lab over the next few months, and the term caught on.[2] The cartoon is so strange, and has so little to do with software, that its origin doesn’t seem to be widely known.

One mistake engineers (or the managers running engineering teams) often make is “building from scratch.” An engineer might not quite like the off-the-shelf solutions, or might want to prove their own skill. A client or manager might have a mistaken idea of what existing solutions do, or might think those solutions don’t precisely meet the requirements.

Whether it’s production or a toy project, most projects have a limited budget and limited time. Build from scratch and you eventually start shaving a yak, and once you start shaving, there’s no telling where it ends. In the end you give up the original goal. In a case like that, the right move is to find an alternative that satisfies the core of the requirements and to cut the work down as much as possible.

But yak shaving is fun.

Yak shaving can’t help but be fun. Making something that didn’t exist before, finding and solving problems, digging through a chain of knowledge to understand how something works: all of it pulls engineers in. The very idea of building the thing you want yourself is appealing even if you aren’t an engineer. In The Mythical Man-Month, Frederick P. Brooks Jr. gave these reasons why programming is fun:[3]

  1. The sheer joy of making things.
  2. The joy of making something useful to other people.
  3. The fascination of fashioning a complex, puzzle-like object out of interlocking moving parts, and watching the rules you built into it play out in subtle cycles.
  4. The joy of constant learning.
  5. The joy of working with a flexible, easily handled medium of expression.

TeX, too, was born from shaving a yak. TeX is a typesetting system created by Stanford professor Donald Knuth; the name covers the whole system that runs the program, including the typesetting language and the compiler that processes it.[4] Because it makes formulas easy to enter, it’s widely used in the social sciences and in science and engineering. (LaTeX, a set of macros for using TeX more easily, is what most people use.)

For example, write this in TeX syntax:

-b \pm \sqrt{b^2 - 4ac} \over 2a

and it comes out nicely typeset like this:

−b±b2−4ac2a -b \pm \sqrt{b^2 - 4ac} \over 2a

In 1976, Donald Knuth was preparing the second edition of The Art of Computer Programming, Volume 2: Seminumerical Algorithms. He wanted to use hot type, the same typesetting used in the first edition, but hot type was no longer available. Unhappy with the alternatives, Knuth came across Patrick Winston’s new book, which had been digitally typeset around that time. Inspired by it, he resolved to build his own digital typesetting system and sketched out TeX’s basic features.[5]

Knuth built the first version of TeX in the SAIL language, then developed and finished it in WEB, a programming language he created himself.[6] WEB source mixes documentation and code together, and the documentation and code in a WEB file can be extracted into a TeX file and a Pascal file by two programs called Weave and Tangle, respectively. He called this programming paradigm literate programming. Together with Michael Plass, Knuth also devised the Knuth-Plass line-wrapping algorithm, which decides where to break lines in a paragraph. On top of that, he designed Computer Modern, a font for TeX, and created METAFONT, a language for defining vector graphics. He even developed the DVI (Device Independent) format so that TeX could be output without depending on any particular device.[7]

So, in order to write a book, Donald Knuth created a programming language, a paradigm, an algorithm, tools, and a typeface. TeX took nearly ten years to build, and the book came out that much later. But it wasn’t a wasted effort.

Of course, this is an extreme success story; most yak shaving fails. You’re supposed to stop at the right point,[8] but once you start shaving, it’s hard to quit, whether because the time you’ve already sunk in feels too precious to waste or because the shaving itself is fun. Or you really do need to see it through, but you end up quitting anyway, either when the thought “what am I even doing right now?” creeps in and your interest fades, or when the resources allotted to the project run dry.

On the other hand, for someone trying to learn, I think yak shaving is remarkably effective. Most CS coursework demands a certain amount of yak shaving regardless of what the professor intended, and sometimes you get more out of digging into the knowledge around an assignment than out of its main instructions. Put the other way around, shaving a yak always teaches you something. If you set out to build a computing system the yak-shaving way, for instance, you have to study everything from Boolean logic to logic circuits, computer architecture, programming languages, and operating systems. Noam Nisan and Shimon Schocken’s The Elements of Computing Systems walks through exactly this. So even if you never reach the end, as long as you learned something while shaving the yak, that alone makes it worthwhile (or so I’d like to believe).

Anyway, yak shaving is fun.


  1. DeadPark, “Ren and Stimpy: The Quest for the Shaven Yak”. ↩︎

  2. Donavon West, “Yak Shaving: A Short Lesson on Staying Focused”, American Express, 2018. ↩︎

  3. 프레더릭 브룩스, “맨먼스 미신: 소프트웨어 공학에 관한 에세이”, 강중빈 역, 인사이트, 6-7쪽, 2015. ↩︎

  4. KTUG, “KTUGFaq: TeX”, 2009. ↩︎

  5. TUG, “History of TeX”, 2019. ↩︎

  6. 권현우 외 15명, “TeX: 조판, 그 이상의 가능성”, KTS 설립 10주년 기념문집, 한국텍학회, 경문사, 314쪽, 2017. ↩︎

  7. Florian Gilcher, “Donald Knuth - The Patron Saint of Yak Shaves”, 2017. ↩︎

  8. item4, “성공적인 Yak Shaving, 실패하는 Yak Shaving”, 2015. ↩︎