All the professional coder are involve in the learning new technology and new programming language as programming world is evolving and as a coder we are facing some of the common issues like how to learn new things quickly, how to improve the coding skill etc. etc.Well learning new programming or technology is a different thing than improving coding skills. Coding skill doesn't bound with a programming language. Coding skills means the way a programmer writes his code and how he can improve the comments, code format, business logic implementation, adopting the new features of the programming like java 8 and 9 introduced some new features which are one of its kind.
Now I am going to share some of the tips to improve the coding style. First I want to make it in two categories.
1. When you are working on your workstation/official project.
Gather complete requirements : Try to gather the complete requirements from your lead, project manger or client. Discuss the things with them as much as you can no matter how much time it will take because you must ensure that you are on a correct path or not.
Prepare a flow of the program : Try to prepare a flow of the implementation before starting anything. Write a thorough implementation plan (or model).
- For something small and self-contained, this might be just a basic flowchart or a simple equation.
- For larger projects, it helps to break the job into modules, and to consider the following:
- What task each module must perform
- How data gets passed between modules
- How the data will be used within each module
See the examples over the internet: Try to find out the best solution, learn from the examples, make some alternate solution then compare the solutions and pick which works faster and have high chances of code re-usability.
Think twice thrice about how to solve that problem: Before start writing the code think at least 2 3 times and test the serviceability, re-usability of the functionality.
Try to write a clean code as much clean as you can. Take the identifier name meaningful.Use consistent naming conventions for variables. It will help you keep track of each type of variable, and also what that variable's purpose is. This means more typing than simply x = a + b * c, but it will make your code much easier to debug and maintain. Try to put inline comments as well to write the purpose of the variable or code block.
Start simple and work towards complexity. When programming something complex, it helps to get the simpler building blocks in place and working properly first.
2. What you can do when you are away from workstation
- Practicing data structure, Algorithms, and Design related problems
- Reading Good Blogs
- Reading Code on the blogs and forums.
- Doing Code review
- Try to participating Stack Overflow and other similar forums, Commenting on blog posts.
- Learn from others and share the same with others.
- Discuss the problems with fellow programmer, lead, friend zone.
Comments
Post a Comment