Three Coding Practices for beautiful programs.
As a freelancing programmer, I tend to write a lot of programs on different programming languages and across platforms. I have noticed that most of the development time goes into debugging and making some changes in the features. Since these issues are the most cumbersome, I tried to find a way to effectively avoid them.
After a quick Google search, I came across many programming practices and architectures that focus on writing beautiful code.
Proper Indentations and Comments :-Proper indentations (whitespace) and commenting can help us identify the flow of the program, as well as to easily understand what that particular set of code does. While writing a program, keep the start and end of the module/program in the exact same indent line and aptly comment as to what these lines of code do. So, whenever you’re asked to change a part of the feature or tackle a bug, you can directly jump to the module associated with the particular feature or to the lines where the program crashes.
Using Powerful Text-Editors :-There are many powerful ‘open-source' text editors like, Notepad++,etc. Which can help you identify the program flow, allowing you to create or edit scripts with ease on some of the widely used languages. These text editors comes bundled with syntaxes.
There are some text editors build for specific programming languages, which comes bundled with the language-specific syntaxes and libraries. So using these editors for development can reduce the overall development time.
MVC — Model, View, Controller :-


MVC divides any given application/program into three interconnected parts .viz:- Model, View, Controller.
The Model manages the data flow, logics and validations of the program. The View is basically the output generated from the given data. The Controller controls both Model and View, manipulating the output on the view by working on the model as inputted by the user.
MVC has become a lot more easier today, than it was earlier. Now, there are MVC frameworks for many programming languages. These frameworks provide us with a set of classes to define the controllers and mechanism for communication between the Model/View and the Controller. Like, Asp.NET MVC, PHP MVC framework, etc.
A MVC model can be implemented in any program, with/without frameworks.
Using these three tools made my repetitive work easier and coding faster.
Edits by:- Nathan W.