Been writing code for about 10 years now. My single biggest takeaway is that you must constantly be reading other people's code. Most developers can write code, but it's very hard to read someone else's code or your own code in 6 months time. The more you read code, the more you understand why some practice is good/bad. Then, whenever you produce code, your brain will automatically prevent you from following the bad practices.