Comment

Comment by brown-dragon

One trick I've learned is to write out, (in a structured comment), what I am going to do an how I'm going to do it _before_ actually writing the code.

It seems redundant but it actually forces me to do a quick think-through of what's happening. Plus distractions get a lot easier to handle: I just need to read what I've written down to reload the context.

Paradoxically, I've found that this method of typing out _more stuff_ actually helps me finish much faster.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton