HN Hall of Fame Weekly email

Yoda conditions

en.wikipedia.org Reference Encyclopedia entries Software engineering Class of 2019-08 Hall of Fame
Screenshot of en.wikipedia.org captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 9 calendar years, with breakout response in 2 of them.

submissions
9
submitters
9
observed span
2013–2023
peak thread · 104 comments
133 pts
latest 20+ return · 2019-08-15
133 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

All linters and C compilers emit a warning when an assignment is made in a condition. There are zero reasons to use that ugly and unnatural Yoda notation in 2019.

One of the best bugs I've ever seen was in the game Dungeon Crawl Stone Soup. It's a roguelike, and a venerable old one at that, so the codebase is quite tangled and convoluted, with logic for everything in every corner. One of the worshippable gods in the game is Xom, god of chaos, whose effects are just as likely to kill their worshipers as to help them (frustrating for those who might actually want to win, but always good…

kibwen·76-point thread·

I use Xcode for development and it already warns against assignment within conditions[0]. gcc also warns against it[1]. Python just errors out all together[2]. I don't have my Windows instance up with Visual Studio but I'm fairly certain that it too notifies you of assignments within conditions. So the question is, why would you sacrifice readability to help solve a non-issue? [0]https://www.dropbox.com/s/sjtefd55mwigq3y/Screenshot%202014-... [1]https://www.dropbox.com/s/yx01tdeykpkespv/Screenshot%202014-…

There is a fantastic list of similar jargon: https://blog.codinghorror.com/new-programming-jargon/ At work, we reference these all the time, especially the Ninja comments and the Heisenbugs.

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
2

100+ points or 50+ comments

Total points
235

reference only — not used in Hall rules or ranking

Total comments
192

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2013-09-26Yoda conditionsrhapsodyv20
2014-03-10Yoda conditionsz0a94
2015-01-14Yoda conditionsfranzpeterstein30
2016-08-18Yoda conditionsduck20
2017-02-17Yoda ConditionsFirst breakoutsloankev7679
2018-08-10Yoda conditionsbased211
2019-08-15Yoda conditionsHall induction · Best thread · Latest 20+ point returntosh133104
2021-02-17Yoda Conditionsreacht30
2023-01-30Yoda Conditionssuperjan64