Answer by A Quora admin:
All the answers I've read on this page have a common theme = PRACTICE.
There are several ways to "code faster and with fewer bugs".
- Work with (or ask) developers better than you and learn from them – fast!
- Take online courses to strengthen your foundations
- Pick up a language that is more succinct but expressive (Golang, anyone?)
- Practice by yourself continually
OK, so how would you actually go and practice by yourself? Here's one way:
- Find a problem that matters to you (read: important)
- Find out if that problem has already been solved (open source code/components/plugins you can use)
- Use the source, Luke (check out what others do in code organization, re-use); Read threads on Github and see what they disagree about
- Break the remaining parts of the problem into manageable chunks (here's where your degree in CS or Software Design class come in handy)
- Solve the problem
- Use an IDE that fits (syntax highlighting, linters, easy code formatting, ability to fold/unfold functions, …) – working with an IDE will cut out unnecessary errors and sometimes give you best practice hints (e.g. linters)
If all else fails and you're not improving much, pick a bigger problem to solve 🙂