Comment

Comment by jordansmithnz

Ha, stackoverflow is a great tool, but... the more answers I see on an area I’m experienced in, the more I realize how wrong they can be. Sure, the answer usually gets the job done, but everything else about it might not be right.

If I need to use stackoverflow, these days I make sure I do a few things:

- read a number of answers, comments included. Just because an answer is accepted doesn’t mean it’s the best one

- read API docs for anything I’m unfamiliar with, and make sure I understand how the solution works

- never copy paste; instead use the general idea or concept to rewrite a solution in a safe, future proof manner

- if an answer works but doesn’t feel like the right solution, be prepared to do my own research to find a better approach

Hopefully this results in a better engineered product, but one of the main benefits is learning and expanding knowledge of APIs/techniques.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton