When I work in dynamic languages, I feel more stressed


When I work in dynamic languages, I feel more stressed.

Why?

Because I have to remember the data types and object shapes used by every function.

This extra cognitive load makes it harder to focus on the business problem, and discourages me from refactoring.
With static types, I declare the type once. And, I declare the function's signature once.

Then, I don't have to remember it anymore.

The compiler reminds me, via autocomplete, right when I need it. 👍

View original on X