Home » Programming

7 Tips on How NOT to do BAD Programming

As a I promised in the evolution of technospot, from now on I will be including posts on programming also.I am not a big experienced programmer but I will surely make a difference on this.

Bad ProgrammingAs this is the first post of this category, I would like to draw attention of programmers who are crazy about programming (like me).Here are some tips out of my experience for not being a BAD PROGRAMMER.

  1. Dont Start coding as soon as you get to know what you have to make : When I started coding i was a cowboy ,I know C , I know sytanxes lets do it.And to be honest it used to take hours of trial and hits to get to know what I have to do.So “Have a roadmap like a sketch or flowchart, before you embark for programming.It will save time and frustration both”
  2. Dont Make your programme look like an essay: If you have written a code which has low readability, like you have to move the screen left and right to see the code, the alarm should be ringing.Make your code readable so even you can understand what you have written.
  3. Dont forget to add comments: Whenever you change or add something new, make some comments so you can undestand what you did, why you changed.Trust me it will help you when u get back to it again.
  4. Dont Name the variables and functions as “a “b”: Dont make you program constructs like variables and functions like “variable a” “function b”.It is highly recommended that you name them properly so its use ability is clear.
  5. Dont make longer programs, break them down: If you have written programs which is too long, alarm should be ringing.Breaking down the functionality will not only give you, re usability but easy reading.
  6. Dont have too many break points: If your control construct(selection, iteration and sequencing) have more than one entry and exit points, alarm should be ringing.
  7. Dont forget to catch exceptions and errors: If your programme is crashing too often, you have surely forgotten to catch the overflow exceptions and other things.Remember no matter how you good your programme is, if it crashes you are a looser.

So what mistakes you make ? Do you have more tips? Share your experience with me and other readers to let them know and become a better programmer.I hope you liked the post.

Tagged with: | Need more help ? Ask your Questions in our Community | Follow us on Twitter @TSNW or Facebook
Share on Twitter Share on Facebook Subscribe to Feed Print This Post
Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPreložiť do slovenčiny/SlovakTulkot uz latviešu/LatvianTradueix al català/Catalanहिन्दी अनुवाद करने के लिए/HindiÖversätta till Svensk/SwedishOversetter til Norsk/NorwegianПереведите к русскому/RussianVertaal aan het Nederlands/Dutchترجمة الى العربية/ArabicПереклад на українську/UkrainianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese

Author Details

Posted on 10th January 2007 by Ashish Mohta , A Professional Tech blogger, Editor and Writer who talks about solving day to day problems of people who use computer. He also writes on How to use the applications like Office, PC tips, Online tools,Browsers and more. All posts by Ashish Mohta | Connect with me @ Twitter | Linkedin | Facebook | Stumble

Leave your response!

Be nice. Keep it clean. Stay on topic. No spam.