C Code Quality Debate

The cluster centers on debates about the readability, elegance, and quality of a specific C codebase, with many users praising it as exceptionally clean and succinct while others critique it or discuss examples of well-written C in general.

πŸ“‰ Falling 0.5x Programming Languages
2,740
Comments
20
Years Active
5
Top Authors
#6045
Topic ID

Activity Over Time

2007
6
2008
17
2009
54
2010
88
2011
121
2012
123
2013
138
2014
175
2015
158
2016
228
2017
169
2018
139
2019
143
2020
200
2021
178
2022
215
2023
205
2024
186
2025
188
2026
9

Keywords

TODO ioccc.org GAS BSD ghc.html NetHack OMG debian.net eastman.c github.com code written readable beautiful coding write code codebase source source code error handling

Sample Comments

voxl β€’ Nov 13, 2021 β€’ View on HN

Maybe it's next to impossible to write C code that isn't badly written

smashing β€’ Mar 22, 2012 β€’ View on HN

Clear and easily readable C code is underrated.

huhtenberg β€’ May 21, 2012 β€’ View on HN

Hi!You seem to imply that this is not a well-written C code. Why do you feel this way?

dboon β€’ Apr 14, 2020 β€’ View on HN

What are two or three C codebases that are elegantly and cleanly written, and that every mid-level C programmer should read for sake of knowledge?

huhtenberg β€’ May 20, 2012 β€’ View on HN

Yay! to more people being exposed to a well-written C code :)

kennywinker β€’ Oct 7, 2021 β€’ View on HN

Hi! Thank you for writing and publishing this project! Just to clarify: no part of my critique was aimed at you or your choices in this codebase. My main point is that unlike the original commenter in this thread, i believe that well written C is not as clear and simple as well written rust (or other modern languages). I then tried to back that up by cherry picking a random line of β€œc-like” code from your codebase. My beef is with C, not you or anybody else using it :)

koonsolo β€’ Nov 12, 2021 β€’ View on HN

Maybe the C code was just badly written

huhtenberg β€’ Dec 26, 2014 β€’ View on HN

That's a very good code. Succinct and readable. You clearly now your C well :)

DasIch β€’ Jul 14, 2016 β€’ View on HN

Keep in mind that we're talking about C code here. Error handling etc. blows that up quite significantly.

lsllc β€’ Dec 6, 2022 β€’ View on HN

That's some quite nicely written C!