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.

programmerhumor

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

mdhughes , in How do you say C#?
@mdhughes@lemmy.ml avatar

cocktothorpe

Tangentism , in QUIT VIM Because Modern IDES are magic

That guys voice is like nails on a chalkboard

Peruvia , (edited ) in How can i cable manage my body?
@Peruvia@lemmy.ml avatar

I don’t think I’ve ever seen such a beautiful cable management photo as the one on the right. Can’t belive I’m having romantic feelings about cable management.

demonsword ,
@demonsword@lemmy.world avatar

don’t feel bad, that picture really is satisfying to look at

r00ty Admin , in Can we finally put this one to rest?
r00ty avatar

Meanwhile, in the background the compiler optimizes them all to the same result anyway. :P

istdaslol , in QUIT VIM Because Modern IDES are magic

Because most of those IDEs breed a complex GUI and WM. I live in the terminal, I can’t afford using something different to emacs

boonhet ,

You can buy better hardware to support a GUI! It’s pretty cheap nowadays

abbadon420 ,

Why many word, few good

tuto193 , in Can we finally put this one to rest?

This is missing one at the very top that’s just:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">return a < b
</span>
Quill7513 , in Can we finally put this one to rest?
<pre style="background-color:#ffffff;">
<span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">(a </span><span style="font-weight:bold;color:#a71d5d;">< </span><span style="color:#323232;">b) {
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#0086b3;">true</span><span style="color:#323232;">;
</span><span style="color:#323232;">} </span><span style="font-weight:bold;color:#a71d5d;">else if </span><span style="color:#323232;">(b </span><span style="font-weight:bold;color:#a71d5d;">< </span><span style="color:#323232;">a) {
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#0086b3;">false</span><span style="color:#323232;">;
</span><span style="color:#323232;">} </span><span style="font-weight:bold;color:#a71d5d;">else </span><span style="color:#323232;">{
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">"A == B, bro"
</span><span style="color:#323232;">}
</span>
Lachy ,

That doesn’t work if either one is NaN

nodiet ,

That is literally how we implemented an algorithm to check for equivalence in a privacy preserving way. Only that you can't check the results of the evaluation so you have to do 1-(a<b)-(b<a)

darcy ,
@darcy@sh.itjust.works avatar

typed languages seeing this

Huschke , in Can we finally put this one to rest?

Why is there no space in front of the ?. At first I didn’t even realize that this was supposed to be the ternary operator.

lowleveldata , in Can we finally put this one to rest?

Why is this its own function in the first place

MrJukes ,
@MrJukes@lemmy.one avatar

We don’t know what the rest of the function looks like or what the inputs are.

lowleveldata ,

How complex can it be when the results are named a and b?

Saigonauticon , in I like to pair my code with a dry red

Haha then there’s the other extreme: “It works, but I can’t explain how in a reasonable span of time”.

ndsvw , in How do you say C#?
@ndsvw@feddit.de avatar

deleted_by_author

  • Loading...
  • Sinthoras39 OP ,
    @Sinthoras39@discuss.tchncs.de avatar

    No C+2 would be C ++ ++ because C++ is C+1

    neoney , in JavaScript Drinking Game
    @neoney@lemmy.neoney.dev avatar
    Mongostein , in How can i cable manage my body?

    As a stagehand/TVA I also find this quite amusing.

    wabafee , in How can i cable manage my body?

    If I were god I would put out all the nerves and blood vessels outside no more stroke if your dead.

    Hack3900 , in This is how NAS works, right?

    Quite clearly yes, the sticker says so !

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