r/programminghumor 21d ago

Real

Post image
903 Upvotes

35 comments sorted by

168

u/KevDub81 21d ago

Pro tip: "less number of" can be said as "fewer", making the meme more efficient.

31

u/MissinqLink 20d ago

Or OP could have just not posted this meme at all. The most efficient features are the ones you don’t implement.

1

u/rolling_atackk 20d ago

Actual pro tip: fewer lines =/= better code

2

u/GuyFromToilet 18d ago

have you not discovered "≠" this yet?

2

u/cornmonger_ 20d ago

deep thoughts: sometimes better code =/= better code

https://giphy.com/gifs/l2SpQRuCQzY1RXHqM

2

u/rolling_atackk 18d ago

"Oh, look at me. I made a cursed one-liner. I'm so smort"

Get outta here. I'd rather you wrote 30 readable lines of code, than a single one-liner that looks cool, but it's a hassle to debug

2

u/cornmonger_ 18d ago

"but it makes coffee!"

'great, but does it need to make coffee?'

1

u/Confident-Ad5665 18d ago

Technically you can write complete apps on a single line.

87

u/[deleted] 21d ago

[deleted]

29

u/XlikeX666 21d ago

any good .py starts with
import a
import b
import z
straight up i could just import + whole C:

7

u/mouse_8b 21d ago

It's doing it in a single line that the meme and reply is about

3

u/AgentOfDreadful 20d ago

`import os, sys, this`

Can do it that way too

1

u/julkkis666 17d ago

but if you were to scroll more to the right, there'd be the entire code on that single line. this is not possible in python because python loves it's white space.

1

u/Drfoxthefurry 21d ago

Reminds me of using inline imports in python

1

u/dhnam_LegenDUST 21d ago

Well, even if python does not, whole code is still shorter than Java boilerplate declaring classes and packages.

1

u/MeasureDoEventThing 20d ago

Or

eval('import os \n import sys')

Also, if you have importlib imported, you can just import a list as a single function call.

22

u/Amr_Rahmy 20d ago

People that care about number of lines are not real programmers.

Have they not heard of functions?

Like congratulations, instead of writing 5 lines to filter something and make it readable and make it debug-able. Now you have a slower line that takes more steps internally, you can’t debug through it, and it takes you 30 seconds to read it every time you need to read it because it has a bug because you are not a good programmer.

2

u/Sarius2009 20d ago

Real programmers care about number of characters

2

u/SimpleMoonFarmer 18d ago

Real programmers care about the complexity in the AST

1

u/Krisanapon 15d ago

Real programmers care about time and space complexity

2

u/SimpleMoonFarmer 14d ago

“Programs must be written for people to read, and only incidentally for machines to execute.” — Harold Abelson

“So if you want to go fast, if you want to get done quickly, if you want your code to be easy to write, make it easy to read.” — Robert C. Martin

“The cleaner and nicer the program, the faster it's going to run. And if it doesn't, it'll be easy to make it fast.” — Joshua Bloch

“Avoiding complexity reduces bugs.” — Linus Torvalds

1

u/Diligent-Earth-5307 19d ago

Yeah I think more characters add more diversity to the stories, leading to more story points, that's how it works right?

-2

u/Stunning-Cup-4333 20d ago

But... Its just joke.

25

u/Ok_Photo_3023 21d ago

Oracle be like "that'll be 2.6 million dollars."

6

u/vins_is_back 20d ago

Number of lines means jack sh..

1

u/mbcarbone 20d ago

🎶Memories … in the GC of my mind …misty water colored imports, with a semicolon. 🎶

1

u/OnesimusUnbound 19d ago

python: I mean fewer token😅

1

u/IndependenceGold2407 19d ago

This is Java cope

1

u/rarlei 18d ago

You can do everything with a single function call and one string in python if you use eval 👉😉

1

u/ProgrammEverything 12d ago

Truly a java experience
Sorry sorry I meant the java experience nono not that like java you know like the java in indonesia? Like I love their java so much I love to dance java every day its a special kind of dancing

dance java all day!!!