this post was submitted on 10 Jun 2024
274 points (94.8% liked)

Programmer Humor

19463 readers
36 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
274
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

Comment from my group project teammate. You don't need to comment every line lol

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 4 months ago (10 children)

I am not a programmer, I just barely wrote one bash script in the past. But I'd say more comments are better than too few.

When I later wanted to edit it, I got completely lost. I wrote it with absolutely no comments.

[–] riodoro1 22 points 4 months ago (4 children)

Bash is a shit „language” and everytime i need to write the simplest thing in it I forget which variable expansion I should use and how many spaces are the right amount of spaces. It’s impossible to write nice to read bash, but even in C you can write code that comments itself.

[–] marcos 10 points 4 months ago (2 children)

It's perfectly possible to write nice to read bash, and to also make is safe to run and well-behaved on errors.

But all the three people that can do those (I'm not on the group) seem to be busy right now.

[–] Manifish_Destiny 2 points 4 months ago (1 children)

Yeah you lost me at well behaved.

[–] Manifish_Destiny 2 points 4 months ago

Still better than powershell though

load more comments (1 replies)
load more comments (6 replies)