The mindfulness meditation stuff can help with getting upset overall.
There’s also some generic stuff that applies to coding too. Like I think some generic issues people have when learning things are:
Not having a reasonable expectation regarding the amount of work that can be expected (and feeling dumb when they have to do a lot of work).
Not knowing how to break a problem down into small components.
Underestimating the extent to which a large problem can be approached in small chunks, by e.g. working on small portions of it, writing analyses of what you do know, working on related skills, and so on.
But anyways this is all stuff that’s solvable.
FWIW i still get upset sometimes. Though not for very long, at least about this stuff. I mentioned an example here that was very recent: