1. take care of your neck
2. write more smaller functions that do one thing instead of shoving all logic into a single massive method
I learned how to program in highschool, and we weren't taught at all how to organize code in a readable and maintainable way. "more smaller functions" would have been a helpful advice.