429
advanced (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] PlexSheep@feddit.de 6 points 1 year ago

Never seen this, what language or buildsystem is this?

[-] xmunk@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago)

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

[-] TheOctonaut@mander.xyz 6 points 1 year ago
if (true === $wantToCauseErrorsForFun) {
    badOldFunction();
} 
this post was submitted on 21 Nov 2023
429 points (100.0% liked)

Programmer Humor

32562 readers
384 users here now

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

Rules:

founded 5 years ago
MODERATORS