+ 55
What would you do when you get stuck programming?
Sometimes there are errors that I cannot find when programming, so I take a break and get a snack from the fridge. When I come back I take another look and I fix the problem. What about you?
131 Answers
+ 57
For severe errors, I get some sleep and wake up the next day.
+ 57
I play Call of Duty... with a lot of chips and coffee! ✌^_^
+ 55
I will use a code debugger. 😸
+ 46
i'll break my code and use scaffolding principal by testing each code block and their relation with other code block to isolate the error.
+ 34
1▪ Go back again for solution may be if find the simple errors.
2▪Leave it for a while because the solution can be game to my mind while washing dishes😂
3▪Internet .. search will in the internet.
4▪ Friends
5▪ Latter i put Q in sololearn😅
+ 28
Try find solutions once again
If couldn't, leave the project and start new project
lol : )
That is the reason why my project rarely finished 100% : )
+ 24
1. Break down the problem into small and solve small problems and integrate that.
2. will look for similar problem using Google
3. ask here on Sololearn or stack overflow
4. ask to a friend or collegeue who is smarter.
+ 24
Improve from your daily learning, and always learn from your errors while you scale your code learning process
+ 22
I take a warm bath or a walk and a ☕, it helps me relax and concentrate more, then I come up with several ideas on how to approach a problem 😊
+ 20
Personally, I:
1. Try to localize the problem using debugging or other methods
2. Write a test app(unit-test)
3. Search on the Internet for possible solutions
4. Go for a walk, to the swimming pool, a gym, wash dishes
5. Watch a movie
6. Talk to someone about the code if I am not working alone
7. Post a question on stackoverflow or codeproject
8. Go to sleep and give my brain a task to solve. There is a big chance that when I wake up in the morning I will have a solution.
+ 20
What if you're in a situation where there is no snack, no fridge?
I solve problems at once, I don't waste time or prolong problems because it borders me.
And Google is my friend.
+ 19
Play Ninja Arashi.
+ 18
exactly that. or go for a run. I keep thinking about the problem whilst away from the pc though just helps not looking at the errors sitting there taunting me
+ 17
just take a nice shower and........sleep
+ 15
I would try to split it into some parts so I can try each one to see where is the error.
Also always if you have an error message try to look if you don't understeand the meaning, the messages are intended to help you finding the mistake.
And some times you just need to take a break and try later...
+ 15
"I play Call of Duty... with a lot of chips and coffee!"
Hahahahhah i have to agree on this one XD
+ 14
I prefer sololearn.
Take challenges, question answers
+ 12
usually sleep on it. if i still cant figure it out, i google it
+ 12
1) Find The Problem.
2) Save/List The Problem To Be Fixed.
3) Work out how long you have to solve it.
4) Read articles/relevant information online + apply knowledge.
5) Ask for help if possible.