Clever Concise Code

Comments in this cluster praise a short, ingenious, and effective code snippet for its brevity, cleverness, and fun to read, often comparing it to code golf or hacky tricks. Users express admiration for such exploratory, pointless hackery and request more code-reading posts.

➡️ Stable 0.5x Programming Languages
3,318
Comments
20
Years Active
5
Top Authors
#2542
Topic ID

Activity Over Time

2007
10
2008
45
2009
80
2010
123
2011
170
2012
148
2013
221
2014
192
2015
159
2016
183
2017
181
2018
170
2019
151
2020
201
2021
263
2022
260
2023
256
2024
234
2025
250
2026
21

Keywords

CPU ShortestWikiContest betterexplained.com OK myjewishlearning.com youtube.com code clever reading code code looks cool code ve algorithm code like written short

Sample Comments

yago-123 May 4, 2025 View on HN

One of the best pieces of code that I've seen in a while. Thanks for sharing

edmcnulty101 Apr 1, 2022 View on HN

I'm not going to lie, that code looks fun to me.

wingo Aug 14, 2011 View on HN

Very cool. More code reading posts, please! :)

kbrannigan Feb 6, 2023 View on HN

Here's a youtube video: https://www.youtube.com/watch?v=z2CKQFi746QHis mind is blown by how well it can code common cases

mkchoi212 May 22, 2020 View on HN

Genius. I'm sure Bryan Kernighan would approve :)

tribaal Oct 30, 2014 View on HN

That's very neat, and also a surprisingly concise bit of code!

autoexec Oct 18, 2022 View on HN

That's impressive... If I randomly stumbled onto it, I wouldn't even recognize that as code!

exabrial Feb 12, 2022 View on HN

Briliant, thank you! We don't have a real application for this, but just reading the code has been fascinating.

czechdeveloper Sep 28, 2017 View on HN

Because it's cool example how to make something semi-complex and interesting in very short code?

phlipski Sep 27, 2022 View on HN

One man's "hack" is another man's "elegant solution".