"Lines of code" is a meaningless unit of measure...
#1
Scholar 
... used to impress non-programmers. Citing more lines of code is intended to imply that a program is more complex.

Let's look at some of the most common reasons a piece of code may have more or fewer lines though.

A recommended coding style nowadays is to put each curly bracket on a line by itself. A simple function written in this style containing, say, an if block with a nested for loop could contain at least six lines that are nothing but curly brackets. Your 10-line function is now written in 16 lines, but all of the characters that matter are exactly the same.

Ironically, the people who religiously follow and dictate this style of overusing line breaks are often the same ones who cry if you use "too much" whitespace to improve legibility. They claim the extra whitespace makes the program run slower. Bullshit. The language parser ignores whitespace. It may take a few more microseconds for the parser to "eat" the extra space characters, but once the code is parsed, it produces exactly the same list of machine instructions.

They're also the same asswipes who indent everything with four or more spaces, so that you have to scroll horizontally for miles to read each line. And then scroll all the way back to the left to read the beginning of the next line. Two spaces is plenty for legible indentation.

A related term is "one-liner," which is intended to impress other programmers with the supposed brevity and efficiency of the code. In practice, an entire program can be a one-liner by simply omitting line breaks.

So you can see that neither of these terms really says anything about the complexity and/or efficiency of the code.
Reply
#2
Well I think a lot of it has to do with people looking at the code and having nooooo fucking clue what the fuck is going on there. It makes nooooo sense to them. So it just looks like "line and lines of code".
Reply
#3
Bug 
I have been promised more or less equal amounts of MO's doona. 

https://imgur.com/a/8wji4dX
Reply
#4
Yoda 
If price {bling} if not price {bling} if not connection to IP {bling} extern bool close all at price.
Stop suffering on purpose just suffer to your goal. Don't suffer on purpose if you can change it then get meaning from it and change it.
Reply
#5
Dafuq?

Fung why you tryin' to be all deep in an almost computer nerdy kinda way??

Like, WE KNOW you're built like a refrigerator, you wear cutoff jean shorts and socks with sandals and body slam your neighbors' garbage cans at 6am...

WE KNOW YOU HAVE A MULLET.

WE KNOW THESE THINGS ABOUT YOU.
Reply
#6
Yoda 
All im sayin is, I don't have a mullet, I can fix refrigerators, I wear work boots with socks that fall down so they aint up me ankles
Good day now.
Reply
#7
Yoda 
(04-17-2021, 02:45 PM)Mister Obvious Wrote: Dafuq?

Fung why you tryin' to be all deep in an almost computer nerdy kinda way??

Like, WE KNOW you're built like a refrigerator, you wear cutoff jean shorts and socks with sandals and body slam your neighbors' garbage cans at 6am...

WE KNOW YOU HAVE A MULLET.

WE KNOW THESE THINGS ABOUT YOU.

I don't have a mullet you seen me you know I don't.
First you gotta understand a person, then, you may not like what you understand and just forget it.
Reply


Please note that new posts in this forum must be approved by a moderator before becoming visible.
[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)



















Disclaimer | Terms Of Service | Privacy Policy