The Best Advice I Can Give To People Learning To Code
Don't copy/paste code examples.
I'm currently learning GoLang, a statically typed language derived from C, as a way to stretch myself as a developer.
One of the mistakes I see burn developers, both new and veteran, is that they copy/paste code examples, strings, basically anything copy/pastaable.
There are a few reasons I always write my code by hand and don't copy/paste:
- It doesn't actually teach me anything.
- In a lot of applications (browsers, for instance) there are extra formatting characters that even though you don't see, get copied and ultimately break your code.
- It requires me to read, write and understand every line.
- Sometimes there are variables you aren't accounting for or things you're supposed to type yourself, and not typing code manually leads to really wonky results that can be painstaking to backtrack through.
Learning to code, or be an engineer or problem solve (whatever you want to call it) is a long road. Long roads aren't travelled with shortcuts.