Tips for solving coding problems π¨πΎβπ»
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 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?
β 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
β 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
β 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
β 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
β 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.
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.