Blog | Programming Guidelines Last Updated : 27 Jan, 2023 Comments Improve Suggest changes Like Article Like Report Computer programming is a process of writing an executable computer program for accomplishing a specific computer task. Although writing the programs is an art, however, there should be some minimum guidelines that should be followed while writing programs. Name: Define the variable names as per programming language rules. Use proper names for variables i.e, they must indicate their rule in the program. In other words, they should be closely related to the entity they represent and modules name should reflect their activity.GOTO: Minimize the use of GOTO statements. GOTO should be used sparingly and in a disciplined manner. Only when the alternative of using GOTOs is more complex; then only think of using GOTO statement.Program Layout: Document the program properly. Avoid meaningless comments. in order to make the program easy to read, use spaces, blank lines, indentation properly. If available, use automated tools like pretty-printers to improve the layout of the program.Information Hiding: Try to achieve minimum coupling between the modules using the concept of information hiding. This means that the module must behave as blank boxes to each other. It also means that a procedure is defined in terms of its purpose but not how it achieves that purpose.Cohesive Procedures: The programmer must aim for highly cohesive modules i.e, each procedure of function in the program must perform only a single task. If a procedure handles to many tasks then its logic can be hard to comprehend and bugs can easily occur.Minimise Coupling: Parameter passing good programming practice, but with too many parameters the code becomes difficult to manage. Procedures with many parameters are highly coupled; they have lots of links to other procedures, where every possible try to minimize these links. However, global variables should nor=t be used instead.I/O behaviour: All I/O should use a proper format: All real number output should be format in decimal form unless scientific notation is appropriate.All input from the keyboard should be preceded by a prompt telling the user what format is accepted.Label all input values.Robustness: Robustness is the ability of a program to recover itself from any error during the runtime. It describes the reliability of the program under extreme conditions. Comment More infoAdvertise with us Next Article Blog | Programming Guidelines A anonymous007 Follow Improve Article Tags : Misc GBlog school-programming Programming Basics Practice Tags : Misc Similar Reads Articles on Programming Languages Articles on Programming LanguagesCC++JAVAPython Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above 1 min read How to Start Coding: A Beginner's Guide to Learning Programming In today's digital age, learning programming has become increasingly important. As technology continues to advance, the demand for skilled programmers across various industries is on the rise. Whether you want to pursue a career in tech, develop problem-solving skills, or simply unleash your creativ 15+ min read Tips for Designing a Plan to Learn Programming and Development The majority of us make this mistake early on, where we try to learn everything there about Software Development. One day we are watching a tutorial on âIntro to Javaâ, and the next day, we try to build JARVIS (A.I) with Python. We all have been there, however, it seems like we are doing very well b 4 min read Programming For Beginners: 10 Best HTML Coding Practices You Must Know HTML is one of the easiest things to learn in programming. Most of the newbies and even kids step into programming picking up HTML. They learn they build some web pages but a lot of developers even experienced ones make some silly mistakes while writing the code for the front end. Making these silly 8 min read 14 Important Coding Rules to Learn from Great Developers If you have never coded ever then you might be thinking that software development is all about writing a bunch of lines of code in some languages and then releasing it to the production level whenever it is ready. Well, this is true but partially. Ask a developer what they actually do in their day-t 9 min read Like