programmer_humor

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

uid0gid0, in The Holy Trinity of JavaScript

Violating the transitive property? Go home JavaScript, you’re drunk.

Thcdenton, in The Holy Trinity of JavaScript

Fuck this language with a pineapple

Thcdenton, in no.. just no
stebo02, in Need a rust version too.
@stebo02@sopuli.xyz avatar

no python? how are normie programmers like me supposed to relate to this?

iAvicenna,
@iAvicenna@lemmy.world avatar

import army

CanadaPlus,

Which is a library written in C, of course.

psud,

No perl either. Much like python you find a relevant library (in cpan), but unlike python there will be seven different implementations, and any four perl devs will come up with at least ten solutions, nine of which will successfully rescue the princess

evranch,

Everything will seem to be be going great, but to actually gain access to the castle you’ll have to compare your situation to successful rescues to find the undocumented drawbridge control

aniki,

The artist is still waiting for the python cells to render.

scratchresistor,

Rescuing is only I/O bounded; your argument is irrelevant.

troyunrau,
@troyunrau@lemmy.ca avatar

You have python. You import antigravity. The princess flies off into space. You monkey patch the princess so she has wings.

stebo02,
@stebo02@sopuli.xyz avatar

And this is how I learned about the antigravity module. Pretty cool!

aniki,

Same! I also learned about


<span style="font-weight:bold;color:#a71d5d;">import </span><span style="color:#323232;">this
</span>
HerbalGamer, (edited )
@HerbalGamer@sh.itjust.works avatar

import this

“In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.”

lol

CodeMonkey,

Python: You send someone else to rescue the princess on your behalf. That someone else is the C knight.

scratchresistor,

Only if you have to rescue many princesses in a short period of time

remotedev, in Need a rust version too.

Ruby: there is a built in method called free_the_princess()

CmdrKeen, (edited )
@CmdrKeen@lemmy.today avatar

<span style="color:#323232;">require 'castle'
</span><span style="color:#323232;">
</span><span style="color:#323232;">begin
</span><span style="color:#323232;">  Castle.attack
</span><span style="color:#323232;">rescue Princess
</span><span style="color:#323232;">  puts "Done"
</span><span style="color:#323232;">end
</span>
karmiclychee,

On Castle, no less.

scratchresistor, in Need a rust version too.

Python:


<span style="color:#323232;">from Rescues import Princess
</span><span style="color:#323232;">Princess.rescue()
</span>
CmdrKeen,
@CmdrKeen@lemmy.today avatar

<span style="color:#323232;">from Castle import Princess
</span>

Done

bob_lemon,

map(lambda princess: princess.rescue(), [castle.get_princess() for castle in castles])

scratchresistor,

Don’t forget to keep your return values…

rescued_princesses = [{“princess”: princess, “rescued”: princess.rescue()} for princess in [castle.get_princess() for castle in castles]]

mindbleach, in The Holy Trinity of JavaScript

“The trinity makes as much sense as Javascript” is a vulgar condemnation of Christian dogma.

cobra89, (edited ) in what's the difference?

Git = bittorrent

GitHub = the pirate bay

Code = content

Even that’s not the perfect analogy but it’s better than the OP.

vinhill,

Though OPs example is easier for the general population to understand.

CmdrKeen,
@CmdrKeen@lemmy.today avatar

Yes, but mostly because the general population likely isn’t super familiar with Bittorrent and PirateBay.

A better, yet similarly correct explanation would be to say GitHub is to Git what GMail is to email.

This also doesn’t confuse protocol and content, and it doesn’t require knowledge of piracy.

leftzero, in no.. just no

Of course not… where’s the damn <From> tag…?

namelivia, (edited ) in no.. just no

When you are assigned to write database queries at work and your academical background is that online react bootcamp

ilovesatan, in The Holy Trinity of JavaScript
@ilovesatan@lemmy.world avatar

Gonna show this to my Discrete math professor

tiny_electron, in The Holy Trinity of JavaScript

This never gets old lmao

JoYo, in no.. just no
@JoYo@lemmy.ml avatar

still more readable than sqlalchemy exceptions

RustyNova, in no.. just no

Ah yes. That’s what the kids call “sqlx” right?

NGL, if it has real time code completion and compile time SQL checks, this is fine.

TheFerrango, in no.. just no

Sharepoint queries are written in something very similar 🤢

I still have nightmares from the one time I had to use that.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmer_humor@programming.dev
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #