this post was submitted on 17 Jul 2023
714 points (98.1% liked)

Programmer Humor

32383 readers
786 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
[–] [email protected] 3 points 1 year ago (2 children)

Hello, I'm here from all, could someone please explain the joke to me?

[–] [email protected] 9 points 1 year ago (1 children)

You can't edit code easily if it's on a piece of paper. It is also stupidity.

[–] [email protected] 3 points 1 year ago (4 children)

Oh. Part of my job is making complicated procedures and sometimes it helps to print them out and go over with a pen. Didn't realize that doesn't work for code. Now I know!

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago)

It wouldn't be such a bad idea if there weren't IDEs that would help you review your code more easily.

Think of a text document you would scan for typos. Sure it would help you to print it out and read it on paper. But finding them with words auto correction is much faster.

This kind of auto correction is also present in IDEs (integrated development environment / the program you use to do the actually coding). You can also jump from one part of your code to another part for a quick lookup or analyze it with its help.

So printing it out not only doesn't let you editing it it also slows down reviewing / debugging / refactoring it.

[–] [email protected] 5 points 1 year ago

and apart from what the others said, if you'd decide to print the code for some reason, printing colored text on black background would be pretty wasteful way to do it

[–] [email protected] 3 points 1 year ago

Likewise - it's only happened a few times in my life, but there have been moments in a 2k-line long SQL stored proc I inherited that I needed to print the thing off and user markers to try group code up and figure out what was happening (it was a monstrosity with no formatting or comments lol)

But yeah day to day, even year to year nobody is printing off their code to look at it - let alone only 20 lines of it lol

[–] [email protected] 1 points 1 year ago

It does work for code.. just not like this.

[–] [email protected] 6 points 1 year ago

It's not just that they've printed the code. I've printed code.

It's that they've printed a screenshot of the editor.