The reason, that you find coding so frustrating is that when you learn to program for the first time, you are in fact learning two things in parallel: i. what you actually have to type to do something (the syntax) and ii. what programming actually is, i.e. what does it mean to code and how do you translate problems into code (programmatic thinking).
Using the analogy of building a house, I see many being impatient and jumping straight to how-to-build-a-bathroom without realising, that you first need build a foundation, then the walls, etc.
Put in the initial energy of learning the subject from the bottom and you'll be plenty rewarded moving forward 