HACKER Q&A
📣 gl-prod

Whats the smallest code that you looked at and said wow that's so clever


Whats the smallest code that you looked at and said wow that's so clever


  👤 ninethirty Accepted Answer ✓

👤 simonblack

👤 auroralimon
there lots of examples, in many languages, of Dijkstra’s Two Stack calculator. this one is in ?javascript? https://switzerb.github.io/imposter/algorithms/2021/01/12/di... a very elegant piece of code

👤 theGeatZhopa
Not a code, but an AI-Like solution for any programmer's problems on windows systems.. ALT+F4.

(But generally, I think the lambda functions of python is kind of clever, short code. Some solutions based on lambda functions let me shiver in respect)


👤 mintaka5
any self-replicating quine is amazing