Ask HN: What did the really successful programmers do differently?
How to be an Excellent Programmer for Many Years(Excellent==Successful. Money & fame are more difficult to control.)1. Choose a small subset of available technology, learn it intimately, and embrace it. Then evolve that subset.2. Understand the pros and cons of various data structures, both in memory and on disk.3. Understand the pros and cons of various algorithms.4. Understand your domain. Get away from your computer and do what your users do.5. Be ready, willing, & able to deep dive multiple levels at any time. You must know what's going on under the hood. There is a strong correlation between "number of levels of deepness understood" and "programming prowess".6. Use your imagination. Always be asking, "Is there a better way?" Think outside the quadralateral. The best solution may be one that's never been taken.7. Good programmer: I optimize code. Better programmer: I structure data. Best programmer: What's the difference?8. Structure your data properly. Any shortcomings there will cause endless techincal debt in your code.9. Name things properly. Use "Verb-Adjective-Noun" for routines and functions. Variables should be long enough, short enough, and meaningful. If another programmer cannot understand your code, you haven't made it clear enough. In most cases, coding for the next programmer is more important than coding for the environment.10. Decouple analysis from programming. They are not the same thing, require different personal resources, and should be done at different times and places. If you do both at the same time, you do neither well. (I like to conduct analysis without technology at the end of the day and start the next morning programming.)11. Never use early exits. Never deploy the same code twice. Never name a variable a subset of another variable. You may not understand these rules and you may even want to debate them. But once you start doing them, it will force you to properly structure your code. These things are all crutches whose use causes junior programmers to remain junior.12. Learn how to benchmark. Amazing what else you'll learn.13. Learn the difference between a detail (doesn't really make that much difference) and an issue (can end the world). Focus only on issues.14. Engage your user/customer/managers. Help them identify their "what". Their "how" is not nearly as important.15. Write a framework, whether you ever plan to use it or not. You'll learn things you'll never learn any other way.16. Teach others what you know, either in person or in writing. You'll accidently end up teaching yourself, too.17. Always tell your customer/user "yes", even if you're not sure. 90% of the time, you'll find a way to do it. 10% of the time, you'll go back and apologize. Small price to pay for major personal growth.18. Find someone else's code that does amazing things but is unintelligible. Refactor it. Then throw it away and promise yourself to never make the same mistakes they made. (You'll find plenty.)19. Data always > theory or opinions. Learn the data by building stuff.20. At some point, run your own business (service or product). You will learn things about programming that you'll never learn as an employee.21. If you don't love your job, find another one.