this post was submitted on 21 Nov 2023
413 points (96.6% liked)

Programmer Humor

32410 readers
406 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] xmunk@sh.itjust.works 3 points 11 months ago* (last edited 11 months ago) (1 children)

That specific language is PHP, but the tip is applicable in any language that supports inline assignment.

[โ€“] TheOctonaut@mander.xyz 6 points 11 months ago
if (true === $wantToCauseErrorsForFun) {
    badOldFunction();
}