HNHacker News
TopNewBestAskShowJobs

scottlecrab

7 karma · joined September 15, 2018

submissionscomments
scottlecrab··on Ask HN: Haven't worked for a while, best guide/advice to start a hobby project?
Pick anything on here that interests you and get to it: https://dev.azure.com/s-lambert/_git/Lets%20Get%20Wild!.
scottlecrab··on Longevity Linked to Proteins That Calm Overexcited Neurons
The Japan difference for life expectancy could just be because Japanese men work themselves to death more often than not. Women do as well, but there's also lots of pressure to get them out of the workforce.
scottlecrab··on TypeScript 3.7
https://www.typescriptlang.org/play/index.html#code/MYewdgzg...

Using `as const` will report both the 2nd and 3rd lines as type errors. You've been able to do this in TypeScript for a while even before they introduced the `as const` syntax.

scottlecrab··on How we do Vue: one year later (2017)
React can be used from a CDN as well, including using it with JSX. Although using JSX from CDN scripts is a bad idea in production because it's slower.
scottlecrab··on You Don't Need Moment.js
It's a dev dependency because they use it in unit tests but it's also a peer dependency, meaning that if you want to use the library you need to include moment.