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.

backhdlp , in My VSCode started to summon DEMONS😈, how do I stop it? I have checked PHP docs but got nothing. 😥
@backhdlp@iusearchlinux.fyi avatar

I doubt PHP has anything to do with that.

activ8r ,

You just never know when that bastard is gonna pop up

Blackmist , in ===

JS devs should have a font that turns == into ≈.

Matty_r , in Sleep() at home
@Matty_r@programming.dev avatar

This should be the new isEven()/isOdd(). Calculate the speed of the CPU and use that to determine how long it might take to achieve a ‘sleep’ of a required time.

henfredemars ,

I took an embedded hardware class where specifically we were required to manually calculate our sleeps or use interrupts and timers rather than using a library function to do it for us.

akincisor , in The AI plugins in my IDE right now

They talk amongst themselves about how shit the code is.

ReallyKinda , in Infinite Loop

Switching jobs can be worth it just for the change up.

PanArab , in ifn't

This can’t be for real. I’ll stick with C11 thank you.

stardreamer ,
@stardreamer@lemmy.blahaj.zone avatar

Here you dropped this:


<span style="font-weight:bold;color:#a71d5d;">#define </span><span style="font-weight:bold;color:#795da3;">ifnt</span><span style="color:#323232;">(x) </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(</span><span style="font-weight:bold;color:#a71d5d;">!</span><span style="color:#323232;">(x))
</span>
AlmightySnoo , in ifn't
@AlmightySnoo@lemmy.world avatar

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

Mastershelf , in The Perfect Solution

TIL Python dictionaries allow trailing commas.

GBU_28 ,

List

dalegribble ,

While there are not actually any trailing commas in the dictionaries present and you are correct to say the ones present are part of a list, you can also have trailing commas in Python dictionaries. OP might have researched “Python trailing commas” and learned that part.

Trailing commas are fantastic to reduce changed lines in git diffs. Makes life much better. Same thing with leading commas in SQL queries.

GBU_28 ,

Yeh

Ephera ,

Yeah, I think, that’s only really JSON which is so pedantic about it…

owenfromcanada ,
@owenfromcanada@lemmy.world avatar

Yeah…

sweats nervously in C

renzev ,

Python is so great (half-sarcasm) that a trailing comma on its own constitutes a tuple (immutable list):


<span style="color:#323232;">mytuple </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#0086b3;">4</span><span style="color:#323232;">,
</span><span style="font-weight:bold;color:#a71d5d;">assert </span><span style="color:#62a35c;">len</span><span style="color:#323232;">(mytuple) </span><span style="font-weight:bold;color:#a71d5d;">== </span><span style="color:#0086b3;">1
</span><span style="font-weight:bold;color:#a71d5d;">assert </span><span style="color:#323232;">mytuple[</span><span style="color:#0086b3;">0</span><span style="color:#323232;">] </span><span style="font-weight:bold;color:#a71d5d;">== </span><span style="color:#0086b3;">4
</span>
Kecessa , in Every goddamn time

At least in Mr Robot they talk about real stuff

merc ,

Mr. Robot was the best depiction of hacking I can think of. It was fairly realistic while being entertaining too. It shows that anybody who actually wanted to be realistic in a hacking movie could do it, they just choose not to.

pearsaltchocolatebar ,

That’s because actual hacking is actually pretty boring, from an external viewpoint at least.

Omega_Haxors , in Guys! Should I accept the offer? 😂

Sub for sub is a pretty standard social contract between upstarts. It looks beneath you because your livelihood isn’t going up against goliaths.

NocturnalMorning , in You can have anything you wan...

Does this include all future invented programming languages?

silasmariner ,

No, the flip side of this wish is your knowledge is frozen in time to when you make the wish and can never be updated. You gradually become more and more outdated as you fail to grasp even the simplest of changes to all languages in current usage.

funkajunk ,
@funkajunk@lemm.ee avatar

The ol’ monkey’s paw

NocturnalMorning ,

Well damn, that’s kind of evil.

chaogomu ,

So I forever work on legacy systems.

Not ideal, but there's quite a bit of job security in it.

Bonehead ,

The upside to this is that you can still make good money as a legacy programmer. Just look at COBOL job listings.

MaggiWuerze ,

At that point your fame as a Rockstar Dev (I hate myself for typing that) will allow you to transition to a cushy ceo position.

CanadaPlus ,

Oh no, does this include all hypothetical alternate interpretations of the same code? So, you just look at the screen and go “yep, it definitely could mean something”?

Deiv , in When you forget to set a boundary conditions in your logic

You’re special, #6,211,583

🤣

sbv , in Always

Alternatively, the first three panels could be answering 734 emails, 6383 slack messages, and avoiding two required trainings.

snowe , in What you are according to you fav language
@snowe@programming.dev avatar

I genuinely looked for my favorite language before reading the text 😂

Pencilnoob , in Crunch time

Fantastic meme, I’m dying over here

embed_me ,
@embed_me@programming.dev avatar

Dying in the corner, huh? Mind if I join ya?

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