HN Hall of Fame Weekly email

Build Your Own Text Editor

viewsourcecode.org Books & learning Tutorials & guides Software engineering Class of 2021-01 Hall of Fame
Screenshot of viewsourcecode.org captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 7 calendar years, with breakout response in 3 of them.

submissions
12
submitters
11
observed span
2017–2025
peak thread · 159 comments
1275 pts
latest 20+ return · 2022-11-13
236 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Reference implementations of medium sized applications are incredibly useful for leveling up as a programmer. While there are many large successful open source applications, many are overwhelming to read and learn from. Having something that outlines the key features and components and which ignores the important but complicated edge cases assists in keeping the attention focused. Now if there are annotation within the source code, that would be truely incredible.

This is a nice guide which walks through building the small editor, kilo, by antirez of redis fame. The original editor was introduced here: https://news.ycombinator.com/item?id=12065217 I put together a fork of that editor, in C++, with support for buffers, scripting with Lua, and similar things. Nothing amazing, but still quite useful. That was posted here to some small interest: https://news.ycombinator.com/item?id=12137698

Chapter 2 is an excellent dive into some of the more unfamiliar and confusing features emulated by terminal emulators. It would be neat to have an equivalent set-up using a GUI toolkit instead, but the terminal is good enough to work with. In a broader sense, it's pretty frustrating to know that we are still emulating features (like ctrl-[s,q]) that only really made sense in the context of a physical terminal. The amount of work and frustration we could save…

"I think everyone should have their own custom editor for editing their program files. I don't believe in universal editors. An editor is so easy to write that why, why not?" - Chuck Moore https://www.youtube.com/watch?v=N1FUY6g5crA&t=1278s

t-3·5-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
1861

reference only — not used in Hall rules or ranking

Total comments
224

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2017-04-05Build Your Own Text EditorJeremysr30
2017-04-05Build Your Own Text EditorFirst breakout · Best threadmatthewbauer1275159
2019-02-19Build Your Own Text Editorweeber20
2020-02-18Build Your Own Text Editorvsurabhi40
2021-01-10Build Your Own Text EditorHall inductionTomte32334
2022-05-03Build Your Own Text Editormemorable20
2022-10-12Build Your Own Text Editoryinso20
2022-10-27Create your own text editormetadat20
2022-11-13Build Your Own Text Editor (2017)Latest 20+ point returnTomte23630
2024-09-23Build Your Own Text Editorberetguy51
2024-10-13Build Your Own Text Editorsebg40
2025-02-27Build Your Own Text Editorstevenmh30