Tuesday, March 3, 2009

KISBNS

Keep It Simple, But Not Stupid!

The idioms KISS (Keep It Simple, Stupid!) and KISSALAP (Keep It Simple, Stupid, As Long As Possible) are great methods to get your code up fast and keep it stable. Surely writing code for something you'll probably never use can only make thing unnecessary complicated and therefore unstable and unmaintainable.

BUT:
I often see pieces of code where people tried to keep those principles, but forgot to refactor in time until it's too late. What I mean is, people tend to start copying pieces of code, thinking 'making this piece of code more generic while I would only use it twice is not simple enough.' Maybe that's true. But then they copy it a third time, or code it again because they forgot it allready existed somewhere.
In these cases making a generic method, class or whatever the first time would have been a better idea.

So as soon as a piece of code is obvious to reoccur several times, extract it immediately before it's too late!

8 comments:

  1. Fortunately there are lots of sites that provide reviews so you should have no trouble finding all of the information that you need to make the right decision. http://www.ggetintopc.com

    ReplyDelete
  2. As discussed the latest version of Windows is Windows seven, alcoda software the name coming from the fact it is the 7th release of the home windows OS range.

    ReplyDelete
  3. Likewise talked about those most recent form about Windows will be Windows seven, alcoda programming those name advancing starting with those truth it will be the 7th arrival of the home windows os reach.

    ReplyDelete
  4. amazing article.... great job by the admin....

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Having a great idea and the motivation to strike-out on your own is a good first step in pursing the feasibility of a business. However, it takes more than motivation and a great idea to get things started. This article will reveal some https://adesk.cheapsoftwaredownload.net/autodesk_prds.html the simplest considerations that most would-be business-owners overlook.

    ReplyDelete
  7. The world is full of businesses but do you know how important they are? You know there are very big ones like Apple, BP and Amazon and very small ones like your local shop or window-cleaner. Grandad explains how all these businesses contribute to our daily life as importantly as the air we breathe and the food we eat. Without businesses he believes we would still be living in caves or mud huts, we would spend all our time searching for food and water. There would be no schools, no doctors, no police, no government,no cars, no television, nearly nothing, This is one of a series of articles aimed by Grandad at grandchildren everywhere. Grandad has learned many things over his lifetime in business. These articles can give you a flying start in life. zbrush 2020 download

    ReplyDelete