by throwaway81523 · 4y ago · 0 comments
This isn't advice that I've gotten either, but also just general wisdom: never give anyone advice about anything, unless they specifically ask for it. Web search for "unsolicited advice" finds a ton of info about why the practice is annoying. I take it to mean it is ok to try to lead by example instead, or say "for solving problem X, I usually try approach Y", but maybe that also edges too close to advice.
One specific piece of advice I got that I have found valuable is that to debug a misbehaving program, instead of trying to map the misbehaviour into a hypothesis of what is happening in the code, go immediately to running the code under a debugger and incrementally (e.g. single stepping etc.) run it until you see something go wrong, then backtrack and figure out how that wrong thing happened.