paint-brush
How my greenfield projects fall into muddy messes…by@jungyue
220 reads

How my greenfield projects fall into muddy messes…

by Joseph JungApril 5th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

When I started off as a developer, I remember the lead architect lamenting the fact that he hadn’t been on a“greenfield” <a href="https://hackernoon.com/tagged/project" target="_blank">project</a> in a while - as he was scrolling through 30,000 lines of <a href="https://hackernoon.com/tagged/css" target="_blank">CSS</a> code in one file…

Company Mentioned

Mention Thumbnail
featured image - How my greenfield projects fall into muddy messes…
Joseph Jung HackerNoon profile picture

When I started off as a developer, I remember the lead architect lamenting the fact that he hadn’t been on a“greenfield” project in a while - as he was scrolling through 30,000 lines of CSS code in one file…

7 years later, I ask myself the question, “Have I learned how to keep a greenfield project ‘green’?”

In the software world, the term “greenfield” refers to a brand new project, a lush undisturbed land, clean and un-trampled. In this place, a coder can lay down new laws, foundation, and ideals. He hopes people will come and view its beauty, maintainability, and scalability for years to come. Unfortunately, in one or two years time, reality comes crashing in with a vengeance. The project is no longer a “green field”, but rather a muddy mess.

So what causes this? Here’s my opinion from my experience:

  1. Narrow deadlines provide easy excuses to compromise on code quality.
  2. Tests fall behind because they’re hard to write and there’s not enough time.
  3. Team leads are too embarrassed or not skilled enough for code reviews.
  4. Scope creep messes up the most well-laid abstractions.

How do you combat “muddy mess” syndrome? Ideally, you handle it BEFORE the technical debt accrues, but that hardly ever realistically happens. First of all, accept the fact that you WILL have to let go of some of your rules. Regardless, enumerate the most important ones (like testing) and hold fast to them. Communicate those principles. Don’t be afraid to say “that code is not very good”. Do these things, and next thing you know, you’ll be promoted to engineering lead, and you can slowly melt into middle management.

shameless plug: side project turned into snaptest.io - made because I needed to get tests made quickly and easily for many “muddy mess” projects.