this post was submitted on 16 Apr 2026
1312 points (98.7% liked)

memes

20952 readers
3232 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Drekaridill@lemmy.wtf 27 points 3 days ago (3 children)

I was a TA in a class that expected knowledge of C. A lot of students who had only ever used Python asked if I could ring them up to speed. One student even asked if he could write it in Python and then I could "just translate it over"

[–] dwemthy@lemmy.world 21 points 3 days ago (2 children)

Just add semi colons and brackets, right?

[–] Valmond@lemmy.dbzer0.com 2 points 2 days ago

No that's PHP.

[–] SaharaMaleikuhm@feddit.org 9 points 3 days ago (1 children)

Just put a bunch of asterisks everywhere.

[–] Zink@programming.dev 3 points 3 days ago

That's the seasoning.

It's never spicy enough until you sprinkle enough around!

[–] Jankatarch@lemmy.world 1 points 1 day ago* (last edited 1 day ago)

Tbf I blame whoever did was planning the prerequisites. CS majors actively wish NOT to learn any more languages than they physically have to in my experience.

[–] Dumhuvud@programming.dev 10 points 3 days ago

It's rather trivial to translate Python to C:

$ cat << EOF > ./shitpost.c && gcc -O2 -o ./shitpost ./shitpost.c && ./shitpost
#include <stdlib.h>

int main(int argc, char** argv) {
    system("python3 -c \\"print(\\\\\\"Hello, World!\\\\\\")\\"");
    return 0;
}
EOF
Hello, World!

My C is a bit rusty though, sorry.