Skip to content

Comment on Ask HN: What is the best piece of advice someone has told you?

Comments

I think a lot of stuff in this thread is general proverbs rather than actual advice received from another person.

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.

I’ve at least been told a couple of unsolicited observations where I appreciate having been told and only so wish that someone had told me long enough ago that it could have made a real difference.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.