DEV Community

Cover image for 6 Useful habits for finding a workable solution to a programming problem
SenaitEkubai
SenaitEkubai

Posted on

6 Useful habits for finding a workable solution to a programming problem

1 - Before writing any code for your programming problem, plan your code in a piece of writing away from your laptop. This will help you have a clear strategy.You can also refer to it at any stage in your problem solving.

2 - Understand what tools you will need and what tools you have for solving your problem.

3 - Break down your project into smaller projects. Working with one smaller project at a time will help you have a full control over your problem. It will also help you manage your time better.

4 - Use simple programming languages. Use only the languages you need.

5 - Do not overdo things by writing complex code. Go as simple as you can. As a programmer, it is more than likely that someone else is going to look at your code. If you write a complex solution, the next person might not be able to understand your code.

6 - When you finish working on one part of your project before moving to the next part of your project, check the readability and maintainability of you code.

Top comments (0)