There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

AlmightySnoo , in ifn't
@AlmightySnoo@lemmy.world avatar

reminds me of #ifndef instead of #if !defined(…)

OpenStars , in ifn't
@OpenStars@startrek.website avatar

Please God let this be a humorous post that somehow does not also find a way to manage to come true…

jtk ,
@jtk@lemmy.sdf.org avatar

I would have bought it if they said ifnot instead, it’s the same number of characters and wouldn’t require a major parser overhaul to support keywords with a ’ in the name.

OpenStars ,
@OpenStars@startrek.website avatar

Yeah, to be clear, I don’t like it, I don’t like it one bit:-P.

jaybone ,

If not anybody have time for that.

OpenStars ,
@OpenStars@startrek.website avatar

ifn’t

Oh dear Lord what have I done!? :-P

pupbiru ,

i mean, “unless” tends to be the usual term for an “if not” keyword in languages that implement such a thing

Fal ,
@Fal@yiffit.net avatar

Which is awful and incredibly confusing. I hate ruby

msage ,

And Perl

NigelFrobisher ,

And my axe!

frezik ,

I find that you need to choose carefully when to use it. Simple cases tend to be alright. Larger, more complex conditions shouldn’t touch it.

pupbiru ,

totally agree; just saying that if it’s GOT to be something, that something should probably be unless… unless . . .

lurch , in ifn't

i assume “ifnot” wasn’t edgy enough and makes inferior noises on custom mechanical keyboards? /s

fl42v , in ifn't

This has to be illegal. I mean, it’s basically suicide incitement (or whatever is the phrase for it)

xmunk , in ifn't

Still not as good as whence

fartsparkles ,

Is this a reference to something because I’d love to read it if you have a time to share.

xx3rawr ,

Woah. I did a quick google and it’s not just a meme, but actually used in some major lang’s libraries.

jjjalljs ,

This is one of those “modern Google/search sucks” moments because I couldn’t immediately find examples of it in a programming language.

xx3rawr ,

I actually used DDG and most I’ve seen, they’re just used as arguments for functions notably in C and Python

LeFrog , (edited )
@LeFrog@discuss.tchncs.de avatar

It is used in ksh korn shell to see what executable responds to a command:

superuser.com/a/351995

Edit: Oh, what a rabbit hole: Why not use “which”? What to use then?

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

Legislation (which feels similar to programming languages sometimes) seems to have some keywords of its own. I remember seeing a lot of Whereas … and Having regard to ….

ryannathans , in DO NOT MERGE

There are a LOT of these in lineage repos. There must be a reason

xia ,

Maybe they dont use squash merges, so all the intermediate commits remain on-chain?

jtk , in ifn't
@jtk@lemmy.sdf.org avatar

<span style="color:#323232;">ifn't (myNum don't= 3 && myStr ain'tnull'rblankish)
</span>
felbane ,

Please remain calm, we are sending paramedics to your location.

ripcord ,
@ripcord@lemmy.world avatar

I genuinely lol’d

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

I hate seeing colloquial terms like ‘ain’t’ in non-comment (ie. standardized) parts of code

MagicShel , in ifn't

Reduce exclamation marks!? Great Scott!!! Is there a shortage of punctuation in the future!?

SubArcticTundra ,
@SubArcticTundra@lemmy.ml avatar

All known deposits were depleted

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

You could have saved two, all you had to do was use the interrobang. You’re a monster.

fsr1967 ,

Kernighan, what was I thinking?

jaybone ,

1.21GB!!!

max , in ifn't

;-;

aCodeCrafter , in WDYM your terminal isn't a test suite?

Welp, just did this to see what -c does…

Excuse me whilst I cry myself to sleep

sabreW4K3 OP ,
@sabreW4K3@lemmy.tf avatar

🥺

lung , in ifn't
@lung@lemmy.world avatar

ifn’t(!valid) halp?

Deconceptualist ,

I believe that resolves the same as

ain’t!(!untrue)

RagingHungryPanda ,

ain’t (nothin)

elvith ,

<span style="color:#323232;">{
</span><span style="color:#323232;">  put(a, "heartache")
</span><span style="color:#323232;">  tell(me, "why")
</span><span style="color:#323232;">  ain't(nothing)
</span><span style="color:#323232;">  {
</span><span style="color:#323232;">    put(a, "mistake")
</span><span style="color:#323232;">    //...
</span><span style="color:#323232;">  }
</span><span style="color:#323232;">}
</span>
EmperorHenry , in The Perfect Solution
@EmperorHenry@discuss.tchncs.de avatar

I don’t get this one.

Also, don’t use AI to write code. It’s a trap! It’s just going to steal your idea for the people who own the AI.

Anticorp , in Sometimes things do go your way
  • The bug is from a library
  • There are 5 dozen related bugs on GitHub
  • The last commit to the library was 3 years ago
bigboismith ,
  • Library is a read-only repo
  • last commit was 10 years ago
xia , in ifn't

“Help’s with readability”? You know what else helps? Not using contractions and introducing an unbalanced single quote.

bdonvr ,

If they’d’nt’ve done that, it’d’ve been better. Agreed.

fsr1967 ,

TIHI

Cwilliams ,

they’d’nt’ve

Aside: rip Tom Scott

survivalmachine ,

This feels racist against Appalachia. We naturally speak with contractions and are commonly referred to as “unbalanced”.

frezik ,

Runs havoc on parsing, too. It’s bad for both humans and robots. I say we ship it.

UnfortunateShort , in DO NOT MERGE

That’s why there are draft merge requests nowadays. Although I kinda miss the “DONT MERGE WE GONNA DIE” comments.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines