• A.N.O Nymos (unregistered)

    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.

  • 516052 (unregistered)

    And that is why real developers write all their SQL by hand, on physical media, one bit at a time. with a stylus.

  • COBOL Dilettante (unregistered)
    Comment held for moderation.
  • ricecake (unregistered) in reply to 516052

    Real developers use butterflies. https://xkcd.com/378/

Leave a comment on “Both Ways Bug Me”

Log In or post as a guest

Replying to comment #:

« Return to Article