this post was submitted on 04 Jul 2023
64 points (98.5% liked)

Programmer Humor

22220 readers
1552 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 2 years ago
MODERATORS
64
What we really mean (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
 

IMHO, it's a horrible hack that is just broken. It's obscure and we need to rewrite it because it has a bad structure. ^X^Cquit^[ESC][ESC]^C

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 2 years ago (2 children)

The best way I know to quit vi is by turning off your computer

[–] [email protected] 1 points 2 years ago

Why would you quit vim?

[–] [email protected] 1 points 2 years ago

you can also accomplish that by turning off city's electrical grid

[–] [email protected] 2 points 2 years ago

I'm absolutely guilty of self-documenting code, but mostly because I'm sick of everyone else's lying comments.

[–] [email protected] 2 points 2 years ago

I'm one of those people who think that Perl is a write-only language
-Linus torvalds

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

"I can read this Perl scrip"t should translate to "I'm lying".

[–] [email protected] 1 points 2 years ago (2 children)

ESC + :q!

ESC to enter normal mode (if you're in a different mode like insert) : (colon) to enter commands q to quit ! (or a) to use the quit command withiut keeping any changes

[–] [email protected] 2 points 2 years ago

He's speaking the language of the gods..

[–] [email protected] 1 points 2 years ago

ESC + (shift) ZZ is faster and also saves your changes!

[–] [email protected] 1 points 2 years ago

Hey, now. It is possible to write readable Perl code—it's just less interesting that way. 😜

[–] fizgigtiznalkie 1 points 2 years ago

I've been seeing a lot of Perl jokes lately and as far as legacy code I haven't had to edit anything written in that in 25 or so years. For those that haven't used it, getting form variables and rudimentary things like that were like equivalent to regular expressions, everything had some obscure expression you had to look up or copy paste.

[–] [email protected] 1 points 2 years ago

"The reason I use Perl is because I wanna write scripts that no one can read and no one can understand so that I can keep my job"

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

IMHO it's a complex, temporary work around with a few issues.

Also vim > emacs