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.

nothacking , in 0.30000000000000004

The expression 0.1 + (0.2 + 0.3) and (0.1 + 0.2) + 0.3 evaluate to different results.

itsraining , (edited ) in Pure Evil

Technically I don’t think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.

Does all this make it any less funnier? No. It’s still brilliant.

luciferofastora ,

In Unicode, it is separately encoded as U+037E ; GREEK QUESTION MARK, but the similarity is so great that the code point is normalised to U+003B ; SEMICOLON, making the marks identical in practice.

Source: en.wikipedia.org/wiki/Question_mark

I’m still curious whether it would be accepted by the code interpreters / compilers of various languages. I’m not bold enough to assume they all normalise properly.

itsraining ,

Wow, thank you, didn’t know of that.

nxfsi ,

Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic “o” or the Greek question mark.

yum13241 ,

1,000% percent.

conditional_soup , in call the doctor, the CS doctor

<span style="color:#323232;">def count_fingers(hand: list): 
</span><span style="color:#323232;">    count = len(hand)
</span><span style="color:#323232;">    if count != 5:
</span><span style="color:#323232;">        if count &lt; 5:
</span><span style="color:#323232;">            raise Exception("Check if fingers missing, or just smart ass")
</span><span style="color:#323232;">        else:
</span><span style="color:#323232;">            raise Exception("Oh... oh no.")
</span><span style="color:#323232;">    return count
</span>
HurgletOfficial ,

You can do


<span style="color:#323232;">if (count := len(hand)) != 5:
</span><span style="color:#323232;">    # do something with "count"
</span>

Btw, looks much nicer

conditional_soup ,

I’ll use ternary operators when you force them into my cold, dead hands

HurgletOfficial ,

It’s not the ternary operator, it is the walrus operator introduced in Python 3.8 if I’m correct

conditional_soup ,

You are correct. I came back to say that I’ll use the walrus operator when it’s pushed into my cold, dead hands, but… I might actually use it, now that I’ve refreshed myself on it.

Boxman , in Pure Evil

Me who programs in rust with a specific compiler message to tell me what happened

Hawk ,

Cargo fix

zv0n , in Easy peasy

Why would you need autoscaling for the bastion server?

daniyyel ,

Autoscaling isn’t only used the grow the number of servers under load, but also to guarantee availability of a fixed number. If the max is set to 1, the bastion host is protected against hardware failure, zone outages, or just you screwing up. Accidentally killed your bastion host? No problem, within a few minutes autoscaling will have provisioned a new one and you’re good to go again.

Kyoyeou , in My poor RAM...

Recently downloaded the KFC app. Strangely the app needs to ask me if I accept cookies, hmmmmmmmmmm

xusontha OP ,

I thought KFC sold chicken 🤔

fu ,

@xusontha @Kyoyeou their cake is pretty good too, I'd try some cookies.

nothendev , in Markdown everywhere

*org-mode

ilovegodette , in Imagine

KILL SELF

SUDO !!

JoYo , in After 6 hours
@JoYo@lemmy.ml avatar

sometimes it is the unit tests.

hblaub , in My poor RAM...

Please don’t eat my RAM. I need it for mining MemoryCoin ™.

explodicle ,

(Not FUD, legit curious)

Is there any way to make RAM production significantly greener than it is today?

magic_lobster_party , in Imagine

Terminal with stories

stafeel ,

So Tab completions become Tab recommendations which happen to be paid promotions.

Hexagon , in Imagine

Stop! Don’t give them ideas!

CookieJarObserver , in Imagine
@CookieJarObserver@sh.itjust.works avatar

I would build my own hardware if necessary.

alphacyberranger ,
@alphacyberranger@lemmy.world avatar

FOSH

o11c , in Every Single Freaking Time

I don’t remember the last time I used ctrl-C. It’s always select or "+y.

bellsDoSing ,

I additionally mapped that latter one to F2, because being able to repeatedly copy from VIM and paste into another application without having to move your hand between mouse and keyboard is nice.

Of course, that’s VIM. If you meant “vim mode” in shell, then that’s a different story.

fl42v ,

And I just set clipboard unnamedplus

TheWoozy , in Needs consent

This is why mandatory access control is so important.

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