from Hacker News

Ask HN: What's a programming technique you felt you should've learned sooner?

by era86 on 12/17/13, 6:42 PM with 3 comments

I've JUST learned about SOLID OOP a couple of months ago. I always had "feelings" about code that broke these principles, but never had a way to explain it. Now, I have something concrete to use when I discuss somewhat unclean code with others.
  • by japhyr on 12/17/13, 6:57 PM

    I should have learned to write tests a long time ago.

    I'm not necessarily a fan of full-on TDD, but I would have been better off on some previous projects if I had written tests that provided at least partial coverage.

  • by bliti on 12/17/13, 9:01 PM

    Talking a short walk when stuck on a problem.
  • by hanspeide on 12/17/13, 11:24 PM

    The power of debuggers.