Everyone lives by certain rules. Creating rules for yourself help in functioning better. Software developers live by certain set of rules that help them stay ahead of time. Software developers have deadline and time limits. It is fairly simple to come up with a set of rules that developers should live by. Here are 8 rules all programmers should live by. |
Technology is how you get the solution
Software developers often get carried away with what framework, programming language or toolkit to use. They get confused in JavaScript frameworks, Angular, IoC container, programming language and even operating systems. Developers need to be very careful to get crazy about particular technology. They need to understand that they are using technology to get the solution, technology is not the solution.
Clever is enemy of clear
A clear code is easy to understand and it is quite helpful in understanding. Sometimes developers focus on writing clever code that isn't clear. Programmers focus on writing the code that is clear and easy to understand. It is pretty hard to write the code that is clever as well as clear.
Write Code Only If You Have To
This is little contradictory situation. It is programmers job to write the code but, in some cases, your job may involve writing minimal code. It is quite possible that writing code may not solve all the problems that you are trying to solve. This doesn't mean that you should make your code as compact as possible. You should write the code that is actually necessary to implement the required functionality.
Comments Are Evil
Most rookie programmers recommend to put a comment in code. Even though this is one of the important parts of writing code, it can be avoided. You should focus on doing a better job of naming things. Comments should only be written when it is not possible to clearly communicate the intent of a variable or method by using a name. Comments don’t get updated with the context of rest of the code. Comments can be very dangerous if you steer the program in completely different direction.
Know What Your Code Is Supposed To Do
Many developers start writing the program without fully understanding it. It is absolutely useless to write the code without understanding it. Software developers need to practice test driven development while writing the code. In many cases, programmers don’t have to know what the code is going to do without writing it. It is important to make sure that you understand every tiny detail of what you are coding.
Test Sh-code Before You Ship
You cannot just toss your code over the wall and have QA round on it. It is recommended to take few minutes to run through all test scenarios yourself. You cannot catch every bug by just reading it but, some of the stupid and embarrassing mistakes can be corrected.
Learn Something New
Technology is evolving every day. If you didn’t learn anything new today means, you just made backward progress. Human brain tends to forget something everyday. You don’t require lot of time to learn something new every day. You can spend just 15 minutes or so in reading a book that might give you lot more knowledge that you imagine. The little advances teach new things everyday that help you shape better future.
ConversionConversion EmoticonEmoticon