Best of 2021

The blog posts Hacker News loved most in 2021. 3,497 posts.

Any topic
2253

Clever vs. Insightful Code

“Don’t write clever code.” Why not? “Because it’s hard to understand.” People who say this think of clever code such as Duff’s Device: Duff's Device send(to, from, count) registershort*to, *from; registercount; { registern =(count +7) /8; switch(count %8) { case0: do{ *to =*from++; case7: *to =*from++; case6: *to…

2261

JSON with Commas and Comments

Summary: JWCC is a minimal extension to the widely used JSON file format with (1) optional commas after the final element of arrays and objects and (2) C/C++ style comments. These two features make it more suitable for human-editable configuration files, without adding so many features that it’s incompatible with…

2264

Prions

Editor’s Note 4/4/21: A few weeks after this article was published, a mysterious prion disease was identified in New Brunswick, Canada. I do not have to say that viruses have dominated every level of public conversation for the past year. Ancient and odd but relatively easy to talk about,

2269

Reading code is a skill (2020)

I’m inspired to write this post because Someone Is Wrong On The Internet. Of course a more accurate statement would be “I disagree with some aspects of what someone on the internet said, even though they have an entirely valid point of view”. But that’s less catchy. I saw a Tweet I violently agreed with, so I…

2272

There is no “us” in team

I’ve talked before about the non-team team dynamic that is “one person per task”. Where the management and engineers collude to push the organisation beyond a sustainable pace by making sure that at all times, each individual is kept busy and collaboration is minimised. I talked about the deleterious effect on…