this post was submitted on 31 Jan 2024
238 points (100.0% liked)

Comics

513 readers
1 users here now

A community for sharing comics related to programming

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

Hover Text:

I wrote 20 short programs in Python yesterday. It was wonderful. Perl, I'm leaving you.

Transcript

[A Cueball-like friend is talking to Cueball, who is floating in the sky.]
Friend: You're flying! How?
Cueball: Python!
Cueball: I learned it last night! Everything is so simple!
Cueball: Hello world is just print "Hello, World!"
Friend: I dunno... Dynamic typing? Whitespace?
Cueball: Come join us! Programming is fun again! It's a whole new world up here!
Friend: But how are you flying?
Cueball: I just typed 'import antigravity'
Friend: That's it?
Cueball: ...I also sampled everything in the medicine cabinet for comparison.
Cueball: But I think this is the python.

all 14 comments
sorted by: hot top controversial new old
[–] NocturnalMorning@lemmy.world 21 points 1 year ago* (last edited 1 year ago) (2 children)

Just wait until you accidently have something unindented that wasn't supposed to be. Those are fun bugs to troubleshoot

[–] Doorbook@lemmy.world 8 points 1 year ago (1 children)

Wouldn't IDE ensure these things are looked after?

[–] ysjet@lemmy.world 7 points 1 year ago (1 children)

Yes, but people feel threatened by good programming languages instead of just learning them.

[–] johannesvanderwhales@lemmy.world 3 points 1 year ago (1 children)

There aren't good languages and bad languages, there are better tools for a particular job and worse.

[–] YIj54yALOJxEsY20eU@lemm.ee 6 points 1 year ago

Javascript is widely regarded as a bad programming language even though for many use cases it is the best tool for the job.

[–] DoomBot5@lemmy.world 8 points 1 year ago

If you try out the import antigravity in this comic, you'll be linked back to the comic. XKCD is built into the language itself.

[–] mot@lemmy.world 5 points 1 year ago

Open a Python REPL and type:

import antigravity

;)