Hardcore Functional Programming in JavaScript Hardcore Functional Programming in JavaScript

Omit Needless Names

Brian Lonsdorf
SFJS Co-Organizer
The first part of creating silence in your code is omitting needless names. This process can help separate inputs from the environment. Joe provides an exercise to help demonstrate this. He shows how testing a "daysThisMonth" function is much more difficult that testing a "daysInMonth" function.
Get Unlimited Access Now