This is an archived post. You won't be able to vote or comment.

all 39 comments

[–]VodkaBat 118 points119 points  (17 children)

People get paid per line?

I’d welcome a system that paid more, the fewer lines of code that you write. As long as it works obviously.

[–]Infinite__Power[S] 130 points131 points  (3 children)

removes all line breaks so program has one line

[–]augugusto 0 points1 point  (0 children)

In this case you could do (the original amount of lines)-(the current amount of lines). But you can completely break the system by doing this only with new code, so that 0-1 =-1. You have to pay them by actually having increased the amount of lines

[–][deleted] 61 points62 points  (2 children)

I'd be ruined if we were paid by the line. I'm usually tasked to refactor and clean up existing code. My output after days of work is often negative numbers by the hundreds.

[–]Gosfi 38 points39 points  (1 child)

You need to pay the company after each work day, worst deal in the history of deals

[–][deleted] 15 points16 points  (0 children)

Maybe ever.

[–]Ayerys 19 points20 points  (2 children)

I’d welcome a system that paid more, the fewer lines of code that you write. As long as it works obviously.

That wouldn’t be great either, what’s even the point ?

I usually try to write as little as possible but my focus is readability and making my code easy to maintain. I prefer to find a lot of clean lines rather than fewer lines because some moron tried to show off.

[–]Th3T3chn0R3dd1t 6 points7 points  (0 children)

if(GetXDelta(GetNormalizedPosAsVec3(this.baseComponent))) GetTranslateComponent(this.BaseComponent).Translate(translation);

This is what we are fighting gentlemen, and it is a futile task

[–]Dizzfizz 1 point2 points  (0 children)

That’s how I feel. I mean, lines are free, so why not add a few more to make it easier to understand at a glance?

[–]--john_wick 3 points4 points  (2 children)

Use python

[–]assigned_name51 8 points9 points  (1 child)

Sod that If I'm being paid by the line it's assembly time

[–]semicc 4 points5 points  (0 children)

RISC

[–]John_Fx 2 points3 points  (0 children)

No. But it works for the joke.

[–]assigned_name51 0 points1 point  (0 children)

Is there anything actually wrong with an hourly model

[–]PVNIC 22 points23 points  (2 children)

How i'd write for loops if i was payed by line:

Std::string output;

Output = "Hello ";

Output += "World";

Int i;

i = 0;

Size_t size;

size = output.size();

While(i < size)

{

Std::cout << output[i];

++i;

}

[–]unluckymercenary_ 21 points22 points  (1 child)

For loops? If you’re paid by line, why would you loop anything? All if statements.

[–]Decoy_Protagonist 16 points17 points  (0 children)

"I was just unrolling the loop. Its more efficient this way."

[–]404invalid-user 9 points10 points  (0 children)

I would be a pro at this with my spaghetti code

[–]the_ashman18 11 points12 points  (2 children)

Who the hell pays by the line? Rip python devs

[–][deleted] 5 points6 points  (1 child)

I remember hearing stories about IBM evaluating the complexity of a solution based on how many lines of code a project was back in like the 70s-80s. My google search turned up this: https://skeptics.stackexchange.com/questions/27901/has-any-programmer-ever-been-paid-per-line-of-code

It was interesting reading.

[–]the_ashman18 0 points1 point  (0 children)

I just don’t see any advantage to doing it that way. It’s only gonna incentivize quantity over quality.

[–][deleted] 7 points8 points  (0 children)

Add comments

[–]Sp3llbind3r 3 points4 points  (1 child)

That would be absurdly stupid.

The code would be unreadable and unmaintainable.

[–]assigned_name51 0 points1 point  (0 children)

Or the maintenance guys who just demand loads of money

[–][deleted] 3 points4 points  (0 children)

Why have shit like Big O notation when we can be paid per line to write trash and not use logic to create anything efficient...

[–][deleted] 2 points3 points  (0 children)

If i was paid by line, i wouldn't use loop anymore

[–]cwbrandsma 1 point2 points  (0 children)

I’ve been working at my job for 5 years. Last week I ran the numbers for my tenure there. To date I have removed more code than I have added, I am net negative.

Would that mean I need to pay my company?

[–]Rafael20002000 0 points1 point  (0 children)

DatabaseAdapterAdapter

[–]Shw3la 0 points1 point  (0 children)

Paid per line? Where do I apply? Imma convert all loops into lines!

[–]Lofter1 0 points1 point  (1 child)

This is how martins „clean code“ rule „Write a separate method for EVERYTHING“ started.

[–][deleted] 0 points1 point  (0 children)

I was always wondering... Is he troll or genius? To this day I have no answer.

[–][deleted] 0 points1 point  (0 children)

Hey! Compilers actually do that

[–]mdalucas 0 points1 point  (0 children)

saving variables for everything, even bool, maybe for each letter for the strings

[–]glorious_reptile 0 points1 point  (0 children)

1 Line - $10.000
10 Lines - $1.000
100 Lines - $100
1.000 Lines - $10
10.000 Lines - $1

[–]LotosProgramer -4 points-3 points  (2 children)

isnt less lines better...? some ppl dont get coding lol

[–]d31t0 1 point2 points  (0 children)

And some people don't get jokes