Skip to content

Comment on What was the silliest issue you discovered during debugging?

You are viewing one comment and its replies. View all comments · View the comment above

Comments

  • Ah yes, yoda conditionals. Because guarding against accidentally typoing if(x=6) is worth destroying your code’s readability.

    7
    • This is not needed anymore thanks to compiler warnings

      3
      • Tell that to my colleague who still insists on writing if conditions like that. Maybe it’s just a PHP thing.

        0
        • I think php had a linter for stuff like this. Defensive programming is good, but having tools to do the defending is better so I can use my brain power where it matters

          0

Sign in to comment. Sign in