423
advanced (lemmy.world)
submitted 3 months ago by hairinmybellybutt to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 3 points 3 months ago* (last edited 3 months ago)

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

[-] [email protected] 6 points 3 months ago
if (true === $wantToCauseErrorsForFun) {
    badOldFunction();
} 
this post was submitted on 21 Nov 2023
423 points (97.1% liked)

Programmer Humor

9822 readers
47 users here now

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

Rules:

founded 4 years ago
MODERATORS