this post was submitted on 24 Oct 2025
98 points (96.2% liked)

Programmer Humor

27048 readers
745 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
 

OK, first of all, I am not a programmer. (yes, I heard the "thank god") Perhaps I could make the top example simpler.

But anyway, I kind of like goto too much. I find it more intuitive to just jump around and re-use parts rather than think about how to do loops without too much nesting.

In high school, we only did Python. I really wanted to do goto in Python as well, but all I found was this April fools' goto module.

Now in college we're starting with C, and I am starting with Bad Habits^TM^.

Anyway, tagging every line was BASICally just for the joke, but it is useful to just jump to any random line.

you are viewing a single comment's thread
view the rest of the comments
[–] myotheraccount@lemmy.world 1 points 1 day ago (1 children)

What's with the line numbers counting down?

[–] jwt@programming.dev 4 points 1 day ago (1 children)

I think they're relative line numbers (a setting in vim). So they count down to where the cursor is currently at. (and would count upward form there)

[–] user224@lemmy.sdf.org 2 points 1 day ago (1 children)
[–] myotheraccount@lemmy.world 1 points 22 hours ago (1 children)

Nice, what do you need them for though? Relative movements?

[–] user224@lemmy.sdf.org 2 points 20 hours ago

I haven't yet mastered Vim, but say I want to delete a block of text, then I immediately see the relative line number up to which I want to delete lines + 1 (because current line is basically zero).

Say I have:

 3 a
 2 b
 1 c
4  d
 1 e
 2 f
 3 g

And I want do delete d,e and f, I do 3dd. With more lines, I don't have to count.