tl;dr: If we think of software engineering as writing code, then refactoring and removing code must be an art. This is particularly meaningful when shipping JavaScript code that’s based on a client-side rendering framework.

Here’s how to count the number of lines of code (LOC) in a repository.

Get-ChildItem -Include "*.js","*.ts","*.jsx","*.tsx" -Exclude "node_modules" -Recurse | Get-Content | Measure-Object -Line