Write Clean TypeScript with the Rule of ONE for Methods and Functions.

Alberto Basalo
7 min readNov 22, 2022

Writing clean code means writing clean functions or methods. And to do so, I have chosen the ONE rule. It’s not one rule; it’s the Air Force One of the function rules — a rule to rule them all.

Functions Rule ONE

The code you write is meant to be read several times, so paying attention to how you write it is essential. Especially in places where you put the

Alberto Basalo

Advisor and instructor for developers. Keeping on top of modern technologies while applying proven patterns learned over the last 25 years. Angular, Node, Tests