Become a Better Developer by Solving Micro Problems

Mohammad Azam
3 min readJan 11, 2021
Give a shoutout to Ryan Quintal on social or copy the text below to attribute.

In my last post, I talked about how isolating the code allows you to focus on the main problem and ignore the complexity associated with the rest of the application. In this post, I will talk about how a large problem can easily be solved by dividing it into much smaller (micro) problems.

Implementing Micro Tasks

Let’s say you are building an application which allows the user to authenticate using username and password. You are responsible for the complete piece, which includes the database, server as well as the user interface. If you look at the problem as a single unit, you may get overwhelmed due to the scale of the task. I have even witnessed some of my students completely freeze and not even able to take a single step forward, because they become paralyzed due to the mammoth size of the task.

The path forward is to break problems into smaller, micro problems. There is no hard and fast rule of how small a micro problem should be, but it should be definitely smaller than the original task. Here are few examples of micro tasks for building the login user interface:

  1. Place required web elements on the page
  2. Validate TextFields for username and password
  3. Display validation messages
  4. Add CSS styling as instructed in the design guidelines
  5. Make web page responsive

All these tasks should be written somewhere, either digitally or physically on a piece of paper. Once you have completed the task, you can mark it off as completed. The process of checking off tasks, accomplishes two things. First it moves you closer towards your goal and second it gives you confidence to move forward.

Let’s take another example, where you have to build the backend endpoint for the login action. The action would be responsible for extracting username and password from the request, checking credentials against the database and then notifying the caller of the result. Here are few micro steps you can take to authenticate the user.

  1. Implement login action and extract and print username and password
  2. Fetch the user object from the database using username
Mohammad Azam

iOS Developer, speaker and educator. Top Udemy and LinkedIn instructor. Lead instructor at DigitalCrafts.

Recommended from Medium