this post was submitted on 12 May 2024
142 points (94.4% liked)

Comic Strips

18548 readers
2179 users here now

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

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
 

top 13 comments
sorted by: hot top controversial new old
[–] FuglyDuck@lemmy.world 73 points 1 year 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 1 year ago (1 children)

The magic of the semi-colon

[–] FuglyDuck@lemmy.world 6 points 1 year ago

“Job security!”

[–] noerdman@discuss.tchncs.de 14 points 1 year 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 1 year ago* (last edited 1 year 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 1 year ago (1 children)

Given enough preprocessor magic you can write everything in C.

Especially shitty code.

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

What can't you write without preprocessor magic?

[–] magic_lobster_party@kbin.run 15 points 1 year ago (1 children)
[–] riodoro1@lemmy.world 5 points 1 year 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.

[–] AVincentInSpace@pawb.social 2 points 1 year 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.

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

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

[–] Opafi@feddit.de 1 points 1 year 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 1 year 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.