Skip to main content

Coding Standards

 

Maintaining a Coding Standard is very important in order to make your coding readable and working. May be you write a code that executes without error, that even may not be understandable to others or may not be scalable. Here are some standards that you must follow while writing code.

1. Naming Convention: Follow proper naming convention while naming any variable, function or page.

  • Do not use Special Character or space in any name
  • Always start class name with Capital Letter.
  • Always start Local Variable name / Page / Function name in small letter
  • Try to avoid using number in naming, But logically you can use numbers.

2. Maintain proper indentation in coding: Indentation is very important in coding. It helps to understand the block. In some programming languages like Python you will get error if you do not maintain proper indentation. So always maintain indentation as follows:

3. Documentation: Documentation is very important when you are writing a code. For every module or block of code you should write the purpose of the block at the beginning within a comment section.

4. Use Simple codes: Never use complex coding which will be difficult to understand. Always try to find out the simplest method to solve a problem.

5. Create Module: Try to make small modules for each functionalities. That will help to make the code scalable. So a single module can be used for multiple purpose and hence minimizing the number of lines of code resulting to a compact application.

Comments

Popular posts from this blog

Computer and its accessories [Basics]

  On this lesson is made for all those who wants to get familiar with different accessories of computer. We will discuss about all computer accessories and their use. So here is the list of devices / accessories that can be connected to a computer to perform a task. Monitor: Its is the main output device that gives visual output to users.  Keyboard: This is the main input device. User can input text using keyboard. A standard keyboard consists of 110 keys. Mouse: Mouse is another input device. It helps for clicking or scrolling objects. A stabdard mouse contains 3 buttons: left click, right click and the scroll button. Cabinet: It consitst of of all the internal hardware components of a computer that includes mother board, CPU (Central Processing unit), RAM (Random Access Memory), ROM (Read Only Memory), Hard Disk, CD drive and many more. Hard Disk: This is the main storage unit of a computer. It can store all kind of data including documents, videos, audios, games, images etc. CD / D

Welcome to my Blog

My Introduction: I am a Software Engineer by profession having experience in IT Industries Since 2014. I have already worked with various IT Companies. Regarding my educational qualification, I have completed Master in Computer Application (MCA) in 2014. My Hobbies: I like to spend most of the time with Coding and exploring new programming languages and all. Other than this I like to eat and listen music. Purpose of this blog: I will keep posting various topics on Computer Programming that will help engineers to grow their knowledge in different fields.

SEO & Its Importance

You have heard about SEO and its importance for a website over a hundred times. It is an essential digital marketing tool. Still, if you have the little knowledge of SEO you cannot make the full use of the complex and multifaceted creature. Before telling you about the SEO and things involved in it, I should introduce you with its full form i.e. Search Engine Optimization. It is a valuable tool for brand awareness purposes on the internet. Furthermore, it holds its importance in the digital era because it attracts more traffic and opportunities to your website. While choosing a person for your website SEO purpose, the person must be trustworthy.  Let us move ahead and explore the elements included in SEO are:     Content: You should not forget that content is a vital part of SEO. It is the only vehicle for your website to connect with the audience. If you want to increase your visibility on the internet then try to write accurate content and do regular u