this post was submitted on 07 Dec 2023
828 points (96.2% liked)

Programmer Humor

19623 readers
2 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
828
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 112 points 11 months ago (5 children)

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

[–] [email protected] 78 points 11 months ago (1 children)

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

[–] [email protected] 25 points 11 months ago (1 children)

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

[–] [email protected] 8 points 11 months ago (1 children)

Same! I also learned about

import this
[–] [email protected] 6 points 11 months ago* (last edited 11 months ago)

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

[–] [email protected] 28 points 11 months ago (1 children)

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

[–] [email protected] 3 points 11 months ago

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

[–] [email protected] 22 points 11 months ago (1 children)

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

[–] [email protected] 2 points 11 months ago

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

[–] [email protected] 18 points 11 months ago (1 children)
[–] [email protected] 14 points 11 months ago

Which is a library written in C, of course.

[–] [email protected] 8 points 11 months ago (1 children)

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

[–] [email protected] 6 points 11 months ago

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