Comment

Comment by adrianmsmith

> Log after, not before

My problem with that is what if the program crashes or produces an error. It's good to know what the program was attempting to do.

Imagine the output

    Successfully connected to DB.
    Successfully read config file. 
    Uncaught Exception: NullPointerException
vs.

    Will connect to DB...
    Will read config file...
    Will connect to API server...
    Uncaught Exception: NullPointerException

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton