Whether it was language specific, or just general coding advice, what kernel of tech wizardry embedded itself deepest in your cerebellum?
The one that has remained with me for decades is to think about successful programs as icebergs. The part above the waterline (10%) is development; the part underwater is maintenance.
Clearly define the problem you are trying to solve before trying to solve it. Break down into the smallest steps possible, and say them out loud to a co-worker. Rinse, repeat.
Think through the problem, and map out solution paths(could be written or mental) before writing code.
"You're a good programmer. Not a bad one, not a great one.". Since this 'feedback' my professional life is always looking to be a better professional.
I am currently still missing
and some more ;D come on guys .... we're not even done with the basics yet :D ...
I have read a twitter somewhere and was about python and could be applied to any programming language:
If you want to learn python, try building something with it.
code should run on your mind before it runs on the compiler.
"Fix the cause, not the symptom", you would think a head doctor said it to the house surgeon, but one of my earlier mentors told me that.
When you see a bug, it's not about going and fixing it with the first idea that comes to your mind. Always, try to determine the root cause and refactor the code/schema from scratch if need be. "Long term gains, than short term gains" was his idea.
My JavaScript mentor told me: “Everything's Legal”, and while I don't think all code is good code, as long as it works it could be a lot worse!
1) Think outside the box.
2) If you're stressed out, relax for awhile.
3) Don't be afraid to ask for help once in a while.
4) Don't bash people, only keyboards
There is one that's actually not from a tech guru, but from a cleaning lady who quoted her father, he was a carpenter: "When it's done and it's good no one will ask you how long it took!"
Actually quite wise words, not always true but in the end people will look at the results and rarely about the process. But if you fail or deliver something bad ... that's a different topic.
Besides that I read a lot of books and listen to a lot of talks over years so most of the things I could say will pop up anyway, because they are at the core of our trade and so they get spread by devs who actually wanna be good in what they are doing.
But I'm looking forward for some pearls.
I'm torn between these 2:
General coding advice which I have received from my mentor.
While starting the programming career, we should know how to write readable code by proper indentation.
If we go with any IDE to make it, definitely we will not get those habits.
Tao Wen
When my friend "gigix" challenged me on "you said a is good, b is good, but what is good". Reflection on your objective is the best advice ever received.