this post was submitted on 02 Oct 2023
1544 points (98.4% liked)
Programmer Humor
32730 readers
430 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.
It was all python, ruby, bash, and ansible