Why programmers write conditions like Yoda
Normally, developers write 'if variable equals five'. A Yoda condition forces the completely inverted structure of 'if five equals variable'. It is aggressively unnatural to read, but it brilliantly prevents accidental reassignment of data, forcing programmers to sound like an ancient alien monk just to avoid typos.

Keep exploring facts in this topic.
Technology →

![Why [] + [] becomes an empty string](https://cdn.stackyfacts.com/images/d1aa02bf-a013-4e2f-8dcf-21df6e97df10_back.jpg)


