this post was submitted on 02 Oct 2023
1514 points (98.3% liked)

Programmer Humor

32589 readers
1849 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] punkwalrus@lemmy.world 23 points 1 year ago (4 children)

I had a boss who hated comments because he wanted "clean code," and that comments means you aren't using the wiki. The build approval process actually stripped out all comments via a script.

Then we lost the wiki.

[–] vector_zero@lemmy.world 19 points 1 year ago

The build approval process actually stripped out all comments via a script.

Thanks, Satan.

[–] ladicius@lemmy.world 11 points 1 year ago

I'd watch the movie.

[–] palordrolap@kbin.social 3 points 1 year ago (1 children)

For my own amusement I'm going to pretend you were using something like Perl where determining what's a comment and what's code can be context sensitive.

i.e. stripping from # to the end of the line can be a very wrong thing to do in a language where the comment marker can actually be used in other niche ways.

Strip the wrong "comment" and your code won't compile. Or worse, do something unexpected.

[–] punkwalrus@lemmy.world 1 points 1 year ago

It was all python, ruby, bash, and ansible