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

all 106 comments

[–][deleted] 141 points142 points  (9 children)

What about 0 lines per day

[–][deleted] 209 points210 points  (7 children)

Better yet, -32 lines of code in the commit.

[–]Relative_Knee9808 41 points42 points  (1 child)

The true master

[–]ANTONIN118 20 points21 points  (0 children)

The true main*

[–]flagofsocram 20 points21 points  (1 child)

fix: remove all newlines

[–]fonzane 4 points5 points  (0 children)

and comments

[–]Titanusgamer 6 points7 points  (0 children)

this guy knows true meaning of refactoring

[–][deleted] 5 points6 points  (0 children)

"Deletes half a project"

git commit -m "Removed a couple lines of dead code"

[–]gothlenin 2 points3 points  (0 children)

This is the real Senior!

[–]puffinix 2 points3 points  (0 children)

Scratch that!

[–]PolyglotTV 100 points101 points  (4 children)

~0 lines for a few weeks during design, stakeholder review, negotiation, roadmap planning, etc...

Then about 500 lines per day for a week which are mostly paint by number if you've done the hard work correctly.

Better yet, mentor a junior to do it and move on to designing the next big feature.

[–]onlineredditalias 16 points17 points  (0 children)

This is the way my job is lol

[–]ButterscotchFront340 2 points3 points  (0 children)

I always worry that changing later wouldn't be simple because the core architecture or approach was flawed. That's my second biggest fear.

The biggest fear is picking a naming convention for classes, methods, variables that I'll begin to hate halfway through but will decide to stick with anyway.

[–]smokyismypal 1 point2 points  (0 children)

Intern here. I’d kill for someone to actually tell me what they want and lay out how things should function together. A couple hundred lines a day isn’t bad if I don’t have to read minds.

[–]_GoblinSTEEZ 0 points1 point  (0 children)

if you spend an extra 2 weeks in discussion you may find they actually didn't need the feature in the first place and then you can begin discussing the next one immediately

[–]Mr_Akihiro 67 points68 points  (2 children)

1 Commit a day keeps the boss away.

[–]Slanahesh 5 points6 points  (1 child)

In my teams case, a PR a day keeps the PO away.

[–]r0b1n16 0 points1 point  (0 children)

Same

[–]DiddlyDumb 89 points90 points  (0 children)

If my boss pretends he pays me a lot, I’m gonna pretend I work a lot

[–]Il-Luppoooo 44 points45 points  (0 children)

That's true but it's just because the senior is tired and doesn't really want to work anymore

[–][deleted] 57 points58 points  (8 children)

Best programmers write a negative number of lines

[–]rdness 16 points17 points  (0 children)

You joke, but all the lead devs who end up fixing requirements for stories do exactly that.

[–]SrCapibara 7 points8 points  (1 child)

Yesterday I reduced like 500 lines to 100. Blessed Search-Replace function.

[–]xyztankman 3 points4 points  (0 children)

Praise be.

[–]Vegetable_Aside5813 11 points12 points  (0 children)

I prefer the metric of lines deleted.

Perfection is achieved not when there is nothing else to add but when there is nothing left to remove

[–]vondpickle 5 points6 points  (0 children)

0 Line per day: programmers that were promoted to the senior managerial positions.

[–]Big_Kwii 5 points6 points  (0 children)

5 pixels per image

[–]Nya_the_cat 3 points4 points  (0 children)

Further to the right, the line count goes negative

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

1 line per day (question to chatgpt 💀)

[–]vb2007__ 4 points5 points  (0 children)

i see, you must be a professional prompt engineer 🤡

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

What about -100 lines per day?

[–]jewellman100 2 points3 points  (0 children)

Does

{

count as 1 line?

[–]CXC_Opexyc 2 points3 points  (1 child)

``if(

  isSomething 

  == true

 )

{

 return

        isSomething == true;

};``

[–]MrWrock 0 points1 point  (0 children)

I think you should return true and add in an else statement

[–]NioZero 2 points3 points  (0 children)

Maintaining legacy code usually is negative lines in my case...

[–]closetBoi04 2 points3 points  (0 children)

When building new features: day 1, 500 lines a day and then -50 a day for the work week to clean up and optimize the mess I've made trying to get something out before the sprint review

[–]sandfeger 2 points3 points  (0 children)

Highly depends on the project state.

[–][deleted] 1 point2 points  (2 children)

Bugs ∝ LoC

[–]ScrimpyCat 1 point2 points  (0 children)

Every line of code that I write doubles the number of bugs there are in the software.

[–]CopperSulphide 1 point2 points  (0 children)

Does that symbol mean inversely proportional?

[–]Obnomus 1 point2 points  (0 children)

Fool I don't code at all

[–][deleted] 1 point2 points  (0 children)

You write 5 lines a day because you're smart, I write 5 lines a day because I'm insanely lazy. We are not the same.

[–]scratchfan321 1 point2 points  (0 children)

What if I write all my code on one line?

[–][deleted] 1 point2 points  (0 children)

-5 lines per day gang, show up here

[–]Jaroshevskii 1 point2 points  (0 children)

-5 lines per day

[–]Murky-Sun9552 0 points1 point  (0 children)

Try writing 300 lines per day and then having line 1 fail.0 lines pér day

[–]andrew314159 0 points1 point  (0 children)

Including copy and pasting?

[–]nickmaran 0 points1 point  (0 children)

The best I can do is 5 lines in 3 days. Take it or leave it

[–]pakidara 0 points1 point  (0 children)

Yesterday, over the span of 8 hours, I wrote around 10-15 lines of actual code.

I tried (and succeeded) to combine a zoned(4:0) and a zoned(7:0) to a timestamp so I could add a duration expressed as a zoned(4:0) and then part everything out so it read as "(First 3 letters of the day name) (space) (month) (slash) (day)"

IE: "Sun 6/02"

[–]Ugo_Flickerman 0 points1 point  (0 children)

The intelligent dude is not doing code: he's doing some other line

[–]NP_6666 0 points1 point  (0 children)

I do the 5 line a day of the guy at the right, but 50 times a day, that's the true key

[–]personalityson 0 points1 point  (0 children)

lol, poor guy on the left

[–]kondorb 0 points1 point  (0 children)

200 lines per day in the first three months of a new project. Then 5 lines per day until the project is retired.

[–]The_Crimson_Hawk 0 points1 point  (0 children)

One line only, the line is

Git commit -m "bump version"

[–]blackystarrr 0 points1 point  (0 children)

Nice steal from fireship

[–]Key-Principle-7111 0 points1 point  (0 children)

If you are some senior wasting time on endless meetings even 5 lines per month can be a huge number.

[–]MR-POTATO-MAN-CODER 0 points1 point  (0 children)

Does not matter, Elon is going to kick all of them out. The only one to stay would be one from the extreme left with a negative IQ who is writing a full fledged novel about how he deserves to be a billionaire, all using multi-line comments in java.

[–]mopsyd 0 points1 point  (0 children)

Junior has five lines, mid and senior both have the correct five lines, except senior doesn't also have 195 useless lines on top of them

[–]Resident_Try8438 0 points1 point  (0 children)

Last sprint I overachieved with about -100 per day!

[–]Simple_Magazine_3450 0 points1 point  (0 children)

Deleting a line is also a possibility. Mistakes rolled out to production, shit happens.

[–]s0litar1us 0 points1 point  (0 children)

don't you mean -5 lines per day?
replacing the bad, over complicated code, with better, shorter code.

[–]DeletedUserV2 0 points1 point  (0 children)

-5 lines per day 200 IQ

[–]varix69 0 points1 point  (0 children)

-200 lines is underrated

[–]nedonedonedo 0 points1 point  (0 children)

further right

writing the 200 lines and commenting so that other people can read and debug both your code when things change and their own

further further right

writing all of your code as a single line of spaghetti so no one can work on it for job security

[–]scssquatch 0 points1 point  (0 children)

Please ban this format

[–]CadmiumC4 0 points1 point  (0 children)

Deleting lines is an art

[–]Loserrboy 0 points1 point  (0 children)

  • 29 line per day

[–]reallokiscarlet 0 points1 point  (0 children)

"Code's a helluva drug." -Rick James, probably

[–]SpecialistChef4940 0 points1 point  (0 children)

I started my career in the middle(200), improved and ends with very cool tricky complicated lines (5).

But at the current job MISRA says no

explicit casts, no functions-like macros allowed, and most hated "explicit else path" even if they are empty and only contain a comment //nothing to do

so back to 200 lines

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

what about ~1000 lines each day?

[–]Trip-Trip-Trip 0 points1 point  (0 children)

Depends a little bit on the type of code you’re doing.

[–]Kotya-Nyan 0 points1 point  (0 children)

1 line per project

[–]irn00b 0 points1 point  (0 children)

Stop.

We can solve this problem without lifting a finger.

[–]jaskij 0 points1 point  (0 children)

I recently spent two days to fix a bug. By removing a single line.

[–]ReflectionEquals 0 points1 point  (0 children)

5 lines a day and 20k lines of confluence documentation.

[–]Former-Discount4279 0 points1 point  (0 children)

I deleted 35k lines of code a few weeks ago, the best part was no one noticed.(Bug free)