this post was submitted on 12 May 2024
141 points (94.3% liked)

Comic Strips

12254 readers
1396 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 1 year ago
MODERATORS
 

top 13 comments
sorted by: hot top controversial new old
[–] FuglyDuck@lemmy.world 73 points 5 months ago (2 children)

My dad could do more with one line of c, than most coders could do in their entire career.

mostly because his formatting sucked balls and he kind of just left everything on the first line.

[–] wander1236@sh.itjust.works 24 points 5 months ago (1 children)

The magic of the semi-colon

[–] FuglyDuck@lemmy.world 6 points 5 months ago

“Job security!”

[–] noerdman@discuss.tchncs.de 14 points 5 months ago (1 children)

It saves space! Hard drives are expensive. Each whitespace is like... a whole byte! On Windows, a new line is two bytes!!

[–] bionicjoey@lemmy.ca 4 points 5 months ago* (last edited 5 months ago)

This reminds me of the guy who submitted a PR to the GitHub mirror of the kernel "minifying" the code for greater efficiency.

Edit: https://github.com/torvalds/linux/pull/437

[–] riodoro1@lemmy.world 24 points 5 months ago (1 children)

Given enough preprocessor magic you can write everything in C.

Especially shitty code.

[–] RecluseRamble@lemmy.dbzer0.com 6 points 5 months ago (1 children)

What can't you write without preprocessor magic?

[–] magic_lobster_party@kbin.run 15 points 5 months ago (1 children)
[–] riodoro1@lemmy.world 5 points 5 months ago

Was gonna say exactly that. Writing macros is like writing one liners in python. It’s cool that they work but keep that shit on stack overflow.

[–] DumbAceDragon@sh.itjust.works 2 points 5 months ago (1 children)

Replace C with javascript and it'd be more accurate imo.

[–] Opafi@feddit.de 1 points 5 months ago (1 children)

But you can't do everything in js? Ever tried writing an operating system in an interpreted language?

[–] DumbAceDragon@sh.itjust.works 1 points 5 months ago

I'm talking more about a language that's just everywhere it doesn't need to be. But I guess that's also my hatred for JS speaking.

[–] AVincentInSpace@pawb.social 2 points 5 months ago

god dammit. her laptop isn't even labelled. there is no text on it anywhere. nothing except the black chassis and the grey rectangle at a 45 degree angle.

WHY DO I KNOW IT'S A THINKPAD?

it's like the minimalist meme trend that was going around a while back but for brand recognition. I am not okay with the knowledge that I've beensoo easily programmed.