Readit News logoReadit News
hakkotsu commented on Show HN: Every problem and solution in Beyond Cracking the Coding Interview    · Posted by u/leeny
joshdavham · 3 months ago
I think the reason leetcode problems are still popular is because they test whether a candidate is willing to work hard (‘grind’) on problems that don’t even matter. A lot like what actually goes on at a FAANG company.
hakkotsu · 3 months ago
Hard disagree. At FAANG companies, working on problems that "don't matter" is exactly how you get a "Meets Some" or worse at your next perf review. These companies are obsessed with measurable impact - you need to show clear business value, user metrics, or revenue impact. Spend 6 months grinding on irrelevant work and you'll be on a PIP in a blink of an eye
hakkotsu commented on We Designed TigerBeetle's Docs from Scratch   tigerbeetle.com/blog/2025... · Posted by u/mooreds
hakkotsu · 5 months ago
Seeing Primeagen featured on homepage is concerning - a financial database requiring absolute reliability doesn't align with someone whose brand is built on chaos and controversy.
hakkotsu commented on Move on to ESM-Only   antfu.me/posts/move-on-to... · Posted by u/bpierre
gauben · 5 months ago
Hey! Not sure how modern your codebase is, but you can consider the following tsconfig settings:

- rewriteRelativeImportExtensions: this will allow you to write `import foo from './foo.ts'` and have tsc transform it to `import foo from './foo.js'`

- erasableSyntaxOnly: this will error on non "erasable" syntax, that is, TypeScript code that has a runtime output (e.g. enums)

With these two settings enabled, you'd be able to run TypeScript code directly with Node: `node src/index.ts`, and cut boot up time substantially

hakkotsu · 5 months ago
While `rewriteRelativeImportExtensions` works for frontend applications, it has a significant limitation: it doesn't fix declaration files (.d.ts), which is problematic when developing libraries or public packages.

I created a small tool to address ESM + TypeScript issues that the tsc doesn't handle: https://github.com/2BAD/tsfix

u/hakkotsu

KarmaCake day3September 14, 2024View Original