+ 9
How do You deal with the anxiety of programming ?
When something gets wrong, when you don't know or understand something, when you can't find the information, when you have a limited time
10 Respostas
+ 22
I scream in pain.
Just kidding, music calms me down đ. And I always try to stay calm. It helps to find a way out of a bad situation.
+ 8
Comment out what went wrong and see if the code right before goes right.
Other than that, slowly debug and figure out if values are entered wrong, certain functions do not exist, syntax is incorrect etc.
I usually comment out what I tried to implement and make sure what I had before works. Then one by one uncomment code and see up to where it breaks, or just recode the entire implementation.
Or take a break and come back later because that can be frustrating.
+ 8
I Take a break...listen to some of my favorite songs.. Talk to my best friend as she can help me in coding or else can take me out of coding thoughts... After about an hour come back to the code and then I get the solution...
Also another idea is to code at night before sleeping so if you get stuck somewhere just sleep... In the morning you might have the solution ready đ
+ 7
For professionals this is the right moment to hire consultants.
Especially on management level with fullfilled peters principle it is standard.
Ok if that way is not possible:
-write down the problem
-activate community: discord stackoverflow etc.
-think of the worsest thing that might happen if you fail. ~normally u survive and dont have to go to prison.
-think about telling your prof/teacher/boss that there is a prob u cant solve, that u asked for help and possibly will not be on time. If he will be hysteric or unpatient... plan something very nice after that.
Have an active break of 30 minutes.
if you will be fired for that...
sooner or later it would happen anyways.
read all tipps concerning debugging of your post. they are really good.
+ 6
As with the first answer, I also rely on calming classical music to help keep cool through debugging and frustrating problem solving. I also rely on the console a lot for debugging, and generally try to print a ton of information there to go through to see what and where things are going wrong.
One method of problem solving that could help to reduce axiety levels is to work in small steps. It seems like what you would want to do every time, yet I often find myself writing excessively long codes before I have debugged or even tested one small part. This leads to lots of problems and a hard time finding where things are going wrong.
+ 6
I do it this way:
Whenever you encounter an error, just go step by steo through the code, and in your mind explain everything that happens to a person that does not know anything about programming. It always works
+ 5
Remigiusz Schoida Ah, explaining it to someone, THAT'S THE KEY!
I thought my encryption code failed to encrypt more than 10 objects due to the string being too long and me needing a loading system.
Took a break and sent a 5000 word essay explaining how it works to someone on discord, realised I used an incorrect calculation somewhere that caused a loss of data. Now, I added 6000+ objects so far and it hasn't failed yet, though it does take around 20 seconds to save and load now, since the data is over 100k DSL.
+ 3
Take a break. Do what you love. A nd then look for solution arround. You may not find the answer quickly or work may get delayed but you will be able to get your solution by your own.
+ 1
Andre Daniel Send that essay to me too lol i would like to see it. uglyninja8@gmail.com
- 7
hi