News for hackers. Stuff that matters.
Re:4B If Statements by mickael-kerjean on Thursday December 28, 2023 @05:41AM (#38792082)
I did a nullll package [1] whose only purpose is to export a null and takes 400MB in memory but somehow it got flagged in HN [2]. With 41 stars on github and 100% test coverage [3], it was clearly production ready.

[1]: https://github.com/mickael-kerjean/nulll

[2]: https://news.ycombinator.com/item?id=17072675

[3]: https://github.com/mickael-kerjean/nulll/blob/master/test.js

Re:4B If Statements by lvncelot on Thursday December 28, 2023 @06:12AM (#38792260)
That try-catch block[1] is a thing of beauty.

[1] https://github.com/mickael-kerjean/nulll/blob/master/index.j...

Re:4B If Statements by tiagod on Thursday December 28, 2023 @06:36AM (#38792428)
Shame it was flagged. Would've been handy for a project I was working on. Had to work around not having a performant null