News for hackers. Stuff that matters.

yoav-lavi

Re:Schrödinger's Discriminated Union on Monday April 19, 2021 @12:58PM (#26865034)
Mittens stays safe in this story, I promise
Interesting idea, I would suggest looking into TypeScript enum support as well as it is a different syntax than the JS object based variant (the const string definition can be shared)

https://www.typescriptlang.org/docs/handbook/enums.html

Edit: from the image it looks like you're using some non standard formatting for the JS output, using Prettier may be more standard - https://prettier.io

Re:Show HN: CRISPR, a project scaffolding CLI on Saturday February 13, 2021 @10:27AM (#26124103)
CRISPR is a CLI allowing to create a project from a template using only replacement tokens and a configuration file