Refactoring 30000 lines of JavaScript with types

30000 lines of client-side JavaScript. No tests. Two difficult TV deployment platforms with poor tooling. Strong dependencies on poorly documented external APIs. The task: add support for a third TV platform to the two supported platforms and switch to a …

Similar

Yes, vanilla JavaScript does scale

There’s a never-ending myth I see circulating on Twitter every few weeks: Vanilla JS doesn’t scale. This is complete nonsense. What does “scale” even mean? Is the implication is that vanilla JS literally cannot handle the load of large applications the ... (more…)

Read more »

JavaScript Closures

A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment). In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closu... (more…)

Read more »