Home > technical > 2000 Lines A Day

2000 Lines A Day


I was at a meeting once where a peer boasted: “It’s hard to schedule and convene code reviews when you’re writing 2000 lines of code a day“. Before I could open my big fat mouth, a fellow colleague beat me to the punch: “Maybe you shouldn’t be writing 2000 lines of code per day“.

Unless they run a pure software company (e.g. Google, Microsoft, Facebook), executive management is most likely a fan of cranking out more and more lines of code per day. Because of this, and the fact that cranking out more lines of code than the next guy gives them a warm and fuzzy feeling, I suspect that many developers have a similar mindset as my boastful peer.

Unsurprisingly, the results of cranking out as much code per day as one can, can yield legacy code before it actually becomes legacy code:

  • Huge classes and multi-page member functions with deeply nested “if” constructs inter-twined within multiple “for” loops.
  • A seemingly random mix of public and private member objects.
  • No comments.
  • Inconsistent member and function naming.
  • No unit tests.
  • Loads of hard-coded magic numbers and strings.
  • Tens of import statements.

Both I and you know this because because we’ve had to dive into freshly created cesspools with those “qualities” to add new functionality – even though “the code is only a tool” that isn’t a formal deliverable. In fact, we’ve most likely created some pre-legacy, legacy code cesspools ourselves.

Needs Improvement

Categories: technical Tags:
  1. No comments yet.
  1. March 4, 2015 at 1:15 pm
  2. March 4, 2015 at 1:18 pm
  3. March 4, 2015 at 1:18 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: