Trust yourself but never trust your code


An intelligent fool can make simple thing complex

Most good developers have believe in their selves. This helps them committing and fulfilling harder goals. This self belief also gets extended to the code they write. This feeling make them believe that simpler parts of our code can never be wrong neither syntactically nor logically. In reality it frequently happens that few lines of code written to perform a very mundane task become the source of Bug.

Let’s take an example. You write a small script to fetch some data from the DB and show it in HTML table. Some how the data doesn’t show up correctly. You scratch your head as you are unable to find any bug in your db schema or in your PHP code. After a painful debugging session you find out that real problem was in your HTML tags. It took so long to find the bug because developer thought that the html part is simple and it can’t be wrong so the bug must be in some other part of the code.

Trusting your code blindly results in time-wasting. In fact the more you write and test code the more you understand that “less is more”. http://elegantcode.com/2010/06/06/the-best-code-you-will-ever-write/

Advertisements

I am a web developer working @ Gaditek

Tagged with:
Posted in Computer And Internet, Programming & Development
3 comments on “Trust yourself but never trust your code
  1. Zarah says:

    Hmm agreed. The same thing has happened to me 😀

  2. […] What Does It Mean to Be Agile? Scrum is not about project management Change is the job of the ScrumMaster Google free command line tool to access Web services It’s Effort, Not Complexity Should you move to Maven 2? Lower your bar in Test-Driven Development Google Wants You to be an HTML5 Ninja Trust yourself but never trust your code […]

  3. […] This self belief also gets extended to the code they write. This feeling make them believe that… [full post] dreamxtream DreamXtream's Blog computer and internetprogramming & developmentcode quality […]

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: