Adding to your advice: RTFM. I have been a professional developer for more than 20 years and the number of people i have worked with, who bothered to read the manual, can be counted on one hand. So many bugs can be avoided if people bothered to read the manual for whatever software/SDK they are using.
Having worked in this industry for going on 25 years, I long ago learned that there are way too many incompetent programmers in the world working critical jobs. It’s best not to think about it.