Avoiding Dirty Codes

Avoiding Dirty Codes

Avoiding Dirty CodesThere are certain practices and methods to follow at every domain. One must not actually adhere to these methodologies. You can always create your own methods. The fact is that many people have failed in this. In this article we will pay attention on not actually how to write a code but focus on how to make this code testable.

Problems with Dirty Codes

While creating new software one should think not only how to finish within the certain time frames but also about its future maintenance. The problem of dirty code is not related to your design skills. The code must be understandable not only to you in order to make you replaceable inside your team.

What exactly is a dirty code?

Below you will find the first signs that your code is messy:

  • The members of your team are indispensable;
  • To engage a new employee in coding takes more than one day;
  • The team spends a significant amount of time on software testing;
  • Changing of a written code requires presence of original developer;
  • Senior members of the team have difficulties while training newcomers;
  • Certain pieces of code cannot be understood without rewriting.

All these symptoms are the result of some neglects and mistakes. Here are some examples of such concessions:

  • objects are difficult to initialize;
  • too many dependencies in the code;
  • hiding dependencies;
  • too many arguments are used for a single method;
  • overthinking;
  • repetition of the same, etc.

To make a code testable is not hard if you pay enough attention to details. Though many of us always strive to be indispensable, it is actually not so good, because it increases your tasks, responsibility and makes you work more. So writing clean code definitely increases your value as a developer.

About helenbeck


  1. June 4, 2013 @ 7:24 am chaussure ralph lauren

    Thanks for another wonderful post. Where else could anybody get that type of information in such an ideal way of writing? I have a presentation next week, and I’m on the look for such information.

  2. June 15, 2013 @ 5:16 pm max bw

    I do agree with all the ideas you have presented in your post. Thanks for the post.

Would you like to share your thoughts?

Images are for demo purposes only and are properties of their respective owners.
Old Paper by ThunderThemes.net © 2018