Skip to main content

Bad software coding habits.

These are some coding practices that may not be good for any other developer's blood pressure. A lot of problems that arise in software development are as a result of small bad coding habits. In fact, the Pareto principle explains that 80% of outcomes in a given event are attributed to 20% of the possible causes. This is relevant to almost every field of human endeavor.

8 Bad Coding Practices

  • Having Typos Within Your Code

    Typing errors are common in coding but are usually maddening because misspelling a variable name or a function name can really mess up your code. To avoid this, use a good IDE or programmer-specific text editor, and choose variable or function names that are easy to spell.
  • Not Indenting or Formatting Your Code

    When codes are indented or formatted, they are easy to understand at a glance and therefore mistakes can be easily identified and this makes it easy to maintain. If your IDE is not able to automatically format your code, you can pass it through a code beautifier such as Uncrustify .
  • Not Commenting Your Code or Leaving This for Later

    When you fail to comment your code or choose to comment it later, it fails to be much meaningful as compared to commenting your code before writing it.
  • Preferring to Use Clever Code as Opposed to Clear Code

    It’s harder to make things simple than complex. It is very likely that 80% of the life of a piece code will be spent in maintenance. A successor’s job should therefore be made easy by making the code clear as opposed to clever.
  • Lack of Flexibility in Using Different Tools

    For a coder, ability to use different tools is a necessity as different types of jobs require different types of tools. It’s therefore important for a developer to master the most useful tools while maintaining the flexibility to learn and use new ones.
  • Over-engineering Simple Problems

    Don’t create complex solutions to easy problems that deserve simple solutions.
  • Refusing to Do Research on Coding Problems or Questions

    Google is such an important research tool for developers.
  • Not Mentoring Other Developers On Your Team

    As a senior developer, you must ensure that your team is learning, growing, and performing better in coding.

Comments

Popuar

Why Agile does not work in some projects

I know when you think of agile, what probably comes to your mind is the fact that it is the most widely employed and successful software development methodology today because of its iterative and flexible approach. Agile leveraged together with DevOps has revolutionized software development. However, this doesn’t imply that it is the right way to handle every situation or project. In some projects, Agile plus DevOps will not work at all because the incremental approach and flexibilities associated with this technologies are not feasible or compatible with those projects. Situations in Which Agile is Not Helpful Agile cannot be applied in physical projects such as the design and build of a new hospital. Agile welcomes requirement and design changes even in late development but this would be unworthy in the hospital project as changes would have major impacts on the project cost and schedule. In physical projects like the hospital design and build contract, the design remains a maj...

MVP in project management

What is MVP in project management? In Project management, MVP is an acronym derived from the term Minimum Viable Product. If you’ve never used or come across such an idea, don’t worry because by the time you’ve finished reading this article, you will have gained a clear insight of what the concept is about. To start with, the concept is usually used to improve planning in agile project management. Similar to agile software development model which emphasizes collaborative development and responsiveness to customer feedback, agile project management offers a way for managing the almost constant changes we experience in today’s organizations. And what is this MVP? As already mentioned, MVP is the Minimum Viable Product. In more clear terms, it’s the simplest prototype which could be put into use. The goal of MVP is to put the simplest version of the product into the hands of the users so as to be convinced that you’re on the right track and then to identify things of highest-priority...

Lean Methodology

Lean Methodology is a subset of Agile Methodology and it meaningfully applies to both startups and software development. It can therefore be used to develop both businesses and products. By being fans of the Agile methodology, we must be interested in learning more about lean startup and lean software development. The Lean Startup Concept The idea upon which the lean startup concept is anchored revolves around avoiding the creation of a product that doesn’t work or that which is not needed by people. It is therefore advisable to find a problem worth solving first before building a business model around it. Lean startup is a perfect fit for entrepreneurs and startups that are still seeking out a business model or product that generate genuine value. However, larger organizations can still use it if they can be flexible while responding quickly to new information and listening to customer needs. In the lean startup model, entrepreneurs will summarize untested hypotheses (basically...