GM
Yesterday I rewrote 80% of this code in Go in just a few hours, deployed and functional, ready to finish today.
VS. months of TypeScript/JS shenanigans using and testing string.replace() in tsc and jest, then deno and esbuild … 😭 tests pass locally but once transpired into JS and deployed it’s non-functional, even with the literal same input, even though the JS looks good …. 🤷♂️
Suspect runtimes, definite path ahead to finish isolating this but … my concern here is the investment in time required to diagnose and investigate what should be simple issues to replicate and solve.
Do I need separate tests for the TS and also the resulting JS? 😆
I deliberately stuck with this, as it’s a long-running concern and I wanted to really explore this - WTH am I missing?!? Iterated all through the toolchain, different transpilers and runtimes, the latest IaC and shiny modern frameworks, Promises, tests .. all looked great until it hit prod 💥 🤬
deno is a start, but the entire ecosystem is just too risky to invest in IMHO
(╯°□°)╯︵ ┻━┻ 🤣
nostr:nevent1qqs29zthdf3fvqf4yt0jg8jcy8ndz2l48s8vgccyuxx49xufr4suv5qpzemhxw309ucnjv3wxymrst338qhrww3hxumnw77qaru