Comment

Comment by chasing

Just to say it, for measurements that take a unit I am hardcore that you should include the unit in the variable time:

`timeSeconds`

`distanceMeters`

`amountDollars`

Have unit tests and everything, but also write your code so that when someone reads it they know as precisely as possible what's going on without other documentation.

parent chasing 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton