You're going to read your code 100x more than you're going to write it. Optimize the code you write for reading. Your code will be in production either much longer or much shorter than you think it will. The 5 lines of code you spend three days perfecting will be replaced in a week, and that one-line 3am hack will be out there for ten years. A good walk around the block will help you solve a problem faster than stari…
> Find someone smarter than you and learn from them. The corollary is if you're the smartest person in your area, you're more likely to stop learning. Maybe. I think the other side is find someone smarter than you, but less experienced , and teach them. You learn much more from teaching than being taught. If you're at loss of finding smart adults, find some children ; they're probably all smarter than you, in the sen…
That said, teaching will not typically help you learn something new, though it will help refine the knowledge you already have.
For example, answering "Why is the sky blue" will give the chance to refine your own understanding of refraction and how that interacts with air, but it's unlikely to guide you into learning about quantum mechanics.