It is always the same thing… practice and talent…
I guess everybody knows the idiom practice make perfect, so I wouldn’t elaborate about it here… And also about the talent, the advantage become too obvious when you are part of the team doing the programming course work, and one guy in the team managed to get it done within hours although the we were given a week or so to complete it.
But UE4 C++ is quite ‘different’ because they play quite a lot with C macro. You also have to know the way around and Unreal API is quite cyptic - template etc, probably this is just me. If you have accumulated a lot of C++ experiences in the past (not in UE4), you may have to unlearn quite a few before you become conversant with Unreal C++ and start making some progress in it.