Skip to main content

How To Improve Your Skills As A Programmer

Programming is one of the most versatile skills on the market in this age. From being able to create company websites to knowing how to easily fix a redirecting error, these skills can be invaluable to an employer and yourself in many ways. However, staying the way you are will never let you be the best Programmer you can be, read on to learn how to improve your skills as a programmer.

1.Analyze the problem clearly.
Read all about the case which you are going to analyze what should your action for this case. 

2.Think twice about how to solve that problem
Think twice for best action that you can perform in this case.

3.Gather complete requirements. 
Take the time to write down what goals the end product needs to achieve, and who your user base will be. Clarity of thought at this stage will save a lot of time down the line.

4.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
- Although gathering and planning requirements can be tedious and much less fun than diving straight into coding, it is even more tedious to spend hours debugging. Take the time to design the flow and structure of your program correctly up front, and you may even spot more efficient ways of accomplishing your goals before you write the first line of code!

5.Comment your code liberally. 
If you think that your code might need explanation, comment it. Each function should be preceded by 1-2 lines describing the arguments and what it returns. Comments should tell you why more often than what. Remember to update the comments when you update your code!

6.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. One popular convention is Hungarian notation, where the variable name is prefixed with its type. For example, for integer variables you might use intRowCounter; strings might use strUserName. It doesn't matter what your naming convention is, but be sure that it is consistent and that your variable names are descriptive. (See Warnings below).

7.Organize your code. 
Use visual structures to indicate code structure. For example, indent a code block that sits within a conditional (if,else,...) or a loop (for,while,...) Also try putting spaces between a variable name and an operator such as addition, subtraction, multiplication, division, and even the equal sign (myVariable = 2 + 2). As well as making the code more visually elegant, it makes it much easier to see the program flow at a glance.

8.Test everything. 
Start by testing each module on it's own, using inputs and values that you would typically expect. Then try inputs that are possible but less common. This will flush out any hidden bugs. There is an art to testing, and you will gradually build up your skills with practice. Write your tests to include the following cases:
  • Extremes: Zero and beyond the expected maximum for positive numeric values, empty string for text values, and null for every parameter.
  • Meaningless values. Even if you don't believe your end user would input gibberish, test your software against it anyway.
  • Incorrect values. Use zero for a value that will be used in division, or a negative number when positive is expected or when a square root will be calculated. Something that is not a number when the input type is a string, and it will be parsed for numeric value.

9.Practice, practice, practice. 
Programming is not a stagnant discipline. There's always something new to learn, and - perhaps more importantly - always something old to relearn.

10.Be prepared for change. 
In a realistic working environment, requirements change. However, the clearer you are at the start about the requirements, and the clearer your implementation plan is at the outset, the less likely it is that changes will be the result of poor planning or misunderstandings.
You can take an active role in improving the clarity of the process by presenting your requirements documentation or your implementation plan well before beginning to code. This will help to ensure that what you are planning to create is actually what's been asked for.
Structure the project as a series of milestones with a demo for each block, and manage the process one milestone at a time. The fewer things you need to think about at any given moment, the more likely it is that you will think clearly.

11.Start simple and work towards complexity. 
When programming something complex, it helps to get the simpler building blocks in place and working properly first. For example, let's say you want to create an evolving shape on screen that follows the mouse direction, and changes shape depending on mouse speed.
  • Start by displaying a square and getting it to follow the mouse; i.e., solve movement tracking alone, first.
  • Next, make the size of the square relate to mouse speed; i.e., solve speed-to-shape tracking on its own.
  • Finally, create the actual shapes you want to work with and put the three components together.
  • This approach naturally lends itself to modular code writing, where each component is in its own self-contained block. This is very useful for code reuse (e.g. you want to just use the mouse tracking in a new project), and makes for much easier debugging and maintenance.

Comments

Popular posts from this blog

50 Things Everyone Should Know How To Do

Self-reliance is a vital key to living a healthy, productive life.  To be self-reliant one must master a basic set of skills, more or less making them a jack of all trades.  Contrary to what you may have learned in school, a jack of all trades is far more equipped to deal with life than a specialized master of only one. 1.    Build a Fire   – Fire produces heat and light, two basic necessities for living.  At some point in your life this knowledge may be vital. How to Build a Fire Wilderness Survival Firecraft Build a Fire Without Matches or a Lighter (video) 2.    Operate a Computer   – Fundamental computer knowledge is essential these days.  Please, help those in need. How To Help Someone Use a Computer The BBC’s Guide to Using a Computer Mac Basics Windows Basics 3.  Use Google Effectively   – Google knows everything.  If you’re having trouble finding something with Google, it’s you that ...

14 ways to earn money in this Lockdown situation around the World.

Many of my dear friend asked me to tell me the way to earn money during this lockdown while we all are setting at home. I appreciate your affert that you are utilised your time, be at  home earn money and stay safe. 1 .Get  paid to write online If you’ve always wanted to be a writer, what better time to start than during lockdown? While a lot of online writing jobs don’t pay, there are still quite a few websites where you can make money by creating high quality, relevant content. You can get started by looking at: Listverse : a listicle website that will pay $100 per accepted article. Longreads:  a long-form content site that pays competitive rates. The website doesn’t specify the amount paid but other websites and blogs have stated rates of $500-$1,500. Back2college : a site aimed at older students will pay $55+ per accepted article. All Pet Voices : a pet website that pays $75 per accepted article. iWorkWell : a website ...

Life is wonderful if you know how to live - Mr.GOD

Me- I can’t find free time. Life has become hectic. God : Activity gets you busy.But productivity gets you free. Me : Why has life become complicated now? God : Stop analyzing life.Just live it. Me : Why are we constantly unhappy? God : Worrying has become your habit. That’s why you are not happy. Me: Why do good people always suffer? God : Diamond cannot be polished without friction. Gold cannot be purified without fire. Good people go through trials, but don’t suffer.With that experience their life becomes better, not bitter. Me : You mean to say such experience is useful? God : Yes. In every term, Experience is a hard teacher. She gives the test first and the lessons afterwards. Me : Bcoz of so many problems, we don’t know where we are heading… God : If you look outside you will not know where you are heading. Look inside.Eyes provide sight. Heart provides the way. Me : Why does failure hurt more than moving in the right direction? God : Success is a measur...