Here are a couple of tips that I have learned in programming.
-Analyzing the problem at hand first before jumping in to coding will save you some time. Know what your program will need to do, and how it will do it. This will help you compose a working algorithm.
-Writing a pseudocode lets you code easier and gives you a step by step guideline.
-When working on a program that's big and complicated, break it down to parts and test out if your ideas work. It may seem to take longer, but it will help start to get a grasp of the bigger picture.
-All good programmers make comments. You know, those that start with a //, or enclosed inside /* and */. Use them to explain parts of your program. This will make you understand what particular pieces of code do. It will also let other people who look into your program an idea on what you were doing.
-Write clean as much as possible. Avoid sloppy shortcuts, and name variables, objects and others appropriately. When fixing a bug or changing something, look for things that could be cleaned up.
Simple reminders that always make big sense in the end. Thank you ;) And do not forget proper indention for clean coding ;)
ReplyDeleteYeah correct..before doing anything,coding,designing,you must start thinking.look forward,make a picture of what you want your system to be. Imagination is the limit.
ReplyDeleteCoding without analysis is like a trip without destination, instead it will turn out to frustration
ReplyDelete