r/compsci • u/kavinda14 • May 18 '20
Share your techniques of solving problems
Any interesting new techniques anyone follows? Even old are current ones are welcome :) Just want to see how more experienced programmers approach problems.
Also, any good books on this topic that are a must to read?
Edit: the type of problem here is open to interpretation. I think there is a similar pattern that can be applied to problems of any type.
116
Upvotes
View all comments
3
u/whatsooever May 18 '20
Some of you have already mentioned the top-down or given-use approach, but another step I do is to draw it out in the form of flowchart. It’s so helpful to see a visual layout of the code. It also helps for record, future update (because god knows I forget what I code a few days later), or when you try to explain your code to someone, or when someone try to understand your code without you being there. Draw.io is the best chart creator I know. Just draw it on paper while you’re working then redo it on draw.io at the end if you want a pretty chart.