- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
It's also possible that this code was auto-generated. I see this a lot when using NHibernate, if you add a condition to a while statement that has nothing to do with the object itself. E.g.:
Session.QueryOver<MyClass>().Where(x => a == b && x.Status == "Approved");
If a and b are booleans, this will result in a query containing the 1 == 1 or 1 == 0 argument.
Admin
And that is why real developers write all their SQL by hand, on physical media, one bit at a time. with a stylus.
Admin
Real developers use butterflies. https://xkcd.com/378/