at the end of poodr ch5, metz makes an impassioned argument against static typing. personally, I think structural typing a la typescript solves a lot of the problems with nominally typed languages and CAN meaningfully protect from type errors

there’s a particular point where she says typing won’t save you from nil and huehuehue I beg to differ

that said, what I love about dynamic languages is being able to just try shit in a repl or notebook without having to compile shit. typescript for instance makes it hard to launch a repl and require() shit, esp if your project goes ham on build tooling a la nestjs

@jfhbrook I'm not remotely a fan of TS, but isn't this exactly what `ts-node` is for?

· · Web · 1 · 0 · 0

@joepie91 that’s type stubs for nodejs, no? I just mean you basically need to run tsc before requiring

@jfhbrook No, AFAIK it's a wrapper that automatically internally transpiles code and lets you use it like the regular `node` command, either as a REPL or as a runtime

@joepie91 oh, in that case it will probably work in most cases, though in mine I need to sort through a ton of asset pipeline magic 😅

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.