this post was submitted on 31 Jul 2025
581 points (98.5% liked)

Programmer Humor

37700 readers
101 users here now

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

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] scott@lemmy.org 5 points 1 week ago (3 children)

What exactly do you think you can do with this?

[–] socsa@piefed.social 18 points 1 week ago

Chaotic evil linting rules

[–] argh_another_username@lemmy.ca 11 points 1 week ago (3 children)

Take someone’s source code, replace all semi colons with Greek question marks and see if they can compile. But as others said, any IDE will help.

[–] HairyHarry@lemmy.world 11 points 1 week ago (1 children)

Not all! Just one or two per file.

[–] vk6flab@lemmy.radio 4 points 1 week ago

Just the last one, right before the EOF.

Speaking of EOF, I wonder what a heredoc might do with this 😇

[–] vk6flab@lemmy.radio 2 points 1 week ago
[–] scott@lemmy.org 2 points 1 week ago (2 children)

You're just going to get syntax errors though

[–] Petter1@discuss.tchncs.de 6 points 1 week ago

Not if you choose to replace the correct ones at the correct place and it is a compiler which automatically ignores this wrong semicolon.

You could connect two lines, which may still "work" if not split using a semicolon and are then interpreted as one single line.

[–] vk6flab@lemmy.radio 4 points 1 week ago (1 children)

You are right .. but, you're not thinking big enough.

Think .. sticky tape on the bottom of a mouse.

[–] scott@lemmy.org 1 points 1 week ago

What the fuck is that supposed to do?

[–] tisktisk@piefed.social 5 points 1 week ago (1 children)

mess with whoever has the least modern ide? I'm sure there's something else too hold on

[–] HiddenLayer555@lemmy.ml 10 points 1 week ago (2 children)

Would probably be more effective to mess with Linux config files that use semicolons. Especially if it's run as a daemon because Systemctl doesn't always return helpful error messages for configuration errors.

[–] communism@lemmy.ml 1 points 1 week ago (1 children)

I think most daemons would log a helpful enough error message regarding incorrect syntax e.g. if it's a config file of variable=value; format then it wouldn't expect two equals signs on the same line.

[–] tisktisk@piefed.social 2 points 1 week ago

I too wish to see these not-so-helpful error messages (not denying just new)

[–] tisktisk@piefed.social 1 points 1 week ago

would you say openRC or rc-service returns better or more helpful error messages with these kinds of things?