I Hate Bad Grammar
Hi. I wanted to do a different spin on things. I wanted to discuss software development grammar and how software developers with poor coding style annoys me with my daily work. Please don't judge my written grammar as I do have a language base learning disability. Focus more on the content I wrote rather than the grammar. I'm only going to write three paragraphs below. If this below content interest you, I will write more(New contented is added)
Poor structure is one of my greatest annoyance of computer programming. You will encounter careless programmer does not align the code. When this happens it takes extra time for the programmer to understand the written code. With well structure code, a programmer can quickly glance threw the code and figure out what section needs to be extended or fixed.
Believe it or not, just like in written language, you can also judge a person character how they program their code. For example, this one code I have reviewed I was able to tell this coder is not a computer programmer, due to the fact the style of what they wrote was inefficient. He could have accomplish the same task with less code which will make the software operate faster.
I get annoyed when developers writes short form for variable names. A variable is a differing a memory location to store data. In PHP programming language, a person could define $f to store values for fruit and $m to store values for meat. When a new person review the code, it would be hard off hand what $f and $m means without reviewing the code first. However, if they named the variable as $fruit and $meat, they the reviewer can get the idea these variable store values for fruit and meat.
Programmers that write repetition code can make reading the code very hard to follow and maintain. To prevent this in the programming world, you would create a function that allow you to reuse the same content by reference. Think of it as a table contents how the title reference sections. This is the same how functions works.
Syntax for computer programming is a list of rules that define the programming language. If you don't follow the rules, the program can be very buggy or not work at all.
Not closing HTML tags. Have you wonder why a website on different computers and web browsers does not appear the same? Some of it relates to not closing HTML tags. What most web browsers try to do is automatically close the HTML tag(s) that the programmer forgot to close. When the web browser gets stuck and don't know how to close the tag, the page will be outputted with undesirable results. The best way to prevent this is to close all HTML tags and not to depend on the web browser to close the tags for you.
I hope you found this story interesting and help you understand a little bit about computer programming.
Poor structure is one of my greatest annoyance of computer programming. You will encounter careless programmer does not align the code. When this happens it takes extra time for the programmer to understand the written code. With well structure code, a programmer can quickly glance threw the code and figure out what section needs to be extended or fixed.
Believe it or not, just like in written language, you can also judge a person character how they program their code. For example, this one code I have reviewed I was able to tell this coder is not a computer programmer, due to the fact the style of what they wrote was inefficient. He could have accomplish the same task with less code which will make the software operate faster.
I get annoyed when developers writes short form for variable names. A variable is a differing a memory location to store data. In PHP programming language, a person could define $f to store values for fruit and $m to store values for meat. When a new person review the code, it would be hard off hand what $f and $m means without reviewing the code first. However, if they named the variable as $fruit and $meat, they the reviewer can get the idea these variable store values for fruit and meat.
Programmers that write repetition code can make reading the code very hard to follow and maintain. To prevent this in the programming world, you would create a function that allow you to reuse the same content by reference. Think of it as a table contents how the title reference sections. This is the same how functions works.
Syntax for computer programming is a list of rules that define the programming language. If you don't follow the rules, the program can be very buggy or not work at all.
Not closing HTML tags. Have you wonder why a website on different computers and web browsers does not appear the same? Some of it relates to not closing HTML tags. What most web browsers try to do is automatically close the HTML tag(s) that the programmer forgot to close. When the web browser gets stuck and don't know how to close the tag, the page will be outputted with undesirable results. The best way to prevent this is to close all HTML tags and not to depend on the web browser to close the tags for you.
I hope you found this story interesting and help you understand a little bit about computer programming.
4
responses