7 ms·
Totally agree with this list. I would also add: 6) Read lots of code. The more of other people's code that you read the faster you'll learn good practices.
by Johnie 10y ago
Totally agree with this list. I would also add:
6) Read lots of code. The more of other people's code that you read the faster you'll learn good practices.
7) Work with other people that are better/more experienced than you.
8) Code reviews are your friend. When I was at Google, the best way to learn and teach good coding practices and libraries were through the code reviews that we had. Get in the practice of reviewing other people's code and having others review your code.
9) Test, test, test! It may sound counter intuitive, but if you want to increase coding velocity, write tests. Tests upfront will save so much time in debugging later on.
- aryamaan 10y ago>6) Read lots of code. The more of other people's code that you read the faster you'll learn good practices. How do you get to read "good code" outside of the job? Care to point me to some such java resources.
- dragonwriter 10y ago> > 6) Read lots of code. The more of other people's code that you read the faster you'll learn good practices. > How do you get to read "good code" outside of the job? You don't have to read just good code to learn good practices (negative examples are important, too), and there's lots of published code readily available (e.g., open source repositories.) Though, I'd say you need to work with lots of code to learn good practices; merely reading code may give you misleading ideas of good vs. bad practices.
- Johnie 10y agoI usually look at GitHub, Reddit, or just links from HackerNews.