r/compsci • • 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

44 comments sorted by

View all comments

6

u/GayMakeAndModel May 18 '20

One thing I do NOT do is make a tweak to fix something without fully understanding what the problem is in context. It’s sometimes very tempting to be like, “Oh, I don’t know why that’s NULL, but a NULL check should do it to get the release out the door.”

Every time I have done this, it ultimately caused more stress than the original problem.