Let's say you get stuck on an solution for a while. What do you do?
How do you get it solved?
What is the best way to not feel frustated?
Let's say you get stuck on an solution for a while. What do you do?
How do you get it solved?
What is the best way to not feel frustated?
Ask your co-workers for help
Really, talking to other people about your problem helps most of the time. Most of the time when you try explaining your problem you'll come up with the answer yourself because you are looking at it from a broader view. This is the main reason why I like working in a team. You'll be suprised how much knowledge there is within a team, even if you are the 'highest ranked' developer in the lot.
I would shelve it for a while. If you got time, work on something else for a day or two. The solution or other ways to find the solution might come to you at oddest times, like right after you wake up or in the shower.
You sometimes just have to let your brain do some background processing and cleaning up unnecessary data.
Also, according to Andy Hunt in "Pragmatic Thinking and Learning: Refactor Your Wetware", while you are using your 'logical brain' your creative brain is being put on the back burner. Many times you need creativity to solve problems. He suggests doing things that activate your creative brain, like drawing.
if you really stuck with some problem leave it for few days and do some other work. And after few days go back to that problem and try look from different point.
You might not be the first one who would have come across the problem or something similar to it. You wouldnt get the whole solution but I have found hints to be useful.
I try to do the above before interrupting my co-workers, it just shows that you didnt even try.
Start over, use a different solution. Try to think outside of the box, or apply at least a workaround, even though it might be ugly.
When all you've got is a hammer, then all your problems are nails :-)
The best way not to feel frustated is having experience. Experience taught me that all source code related problems can be solved, sometimes it just takes a little longer. You'll almost always solve the problem eventually or at least mend its symptoms to an acceptable degree.
I am a person who can't relax when having an unsolved problem. But sleeping one night over the problem usually helps. Often times, you've just overlooked some part you'll find on the next day, when you start over.
Go home, rest and lose attention to the problem. Return in a Day or two and start from the scratch, usually the solution is about to "jump" you at that point.
Do not try doint other stuff, you really need deffusion. Focusing something else isn't gonna provide it!