Tips for solving coding problems πŸ‘¨πŸΎβ€πŸ’» · 1 minute read ·     
When you’ve been going over code and debugging for hours; and all you got was older.. πŸ‘¨πŸΎβ€πŸ’»πŸ‘΄πŸΎπŸ˜©
Here are some of my tips for solving coding problems:

Break it down βž—

β€” break down the problem/project into smaller, more manageable pieces
β€” solve one problem at a time instead of being overwhelmed
β€” consider the architecture; should this problem be solved by separate components or micro-services?

Solve the problem manually πŸ’ͺ🏾

β€” If possible, complete the work manually and document in detail what needs to be done
β€” Be sure to completely understand logically what the software needs to do
β€” Determine the code/implementation needed to automate the manual solution

Explain it to someone else πŸ‘¨πŸΎβ€πŸ’»

β€” Often simply explaining a coding problem to others helps us solve it
β€” The process of describing a problem can open a deep/unexplored level of thought on it
β€” The other person could very well provide the solution

Draw it out / write pseudocode ✍🏾

β€” Visualize the problem with pseudocode or a diagram
β€” Often drawing out the problem can spark epiphanies
β€” Pseudocode helps you organize the high-level approach in your mind before going to code

Don’t reinvent the wheel ♻️

β€” Many coding problems have been solved before
β€” Be sure to make sure that you are solving a new problem and not reinventing things
β€” Explore internal and third-party services/libraries to help you solve the problem

Just walk away πŸšΆπŸΎβ€β™‚οΈ

β€” Walk away from the computer for a while to take a mental break
β€” Taking a step away can sometimes give you the answer
β€” Sleep on it

⁉️ What are your tips? Leave a comment with them.

Want to share this?