Chapter 1Signal Intention with Variable Assignment

Before we begin, I have a question for you. How many variables did you declare in your code yesterday? It doesn’t matter what language you were writing. Was it ten? A hundred? How about over the last week? Last month? Probably a lot.

Now think about how many variables you read yesterday. Maybe you read your own code, or maybe you were skimming someone else’s. Did you see a hundred variables? a thousand? Chances are, you don’t have a clue.

Now if I asked you how many curried functions you saw yesterday, I bet you’d know the answer. I can tell you that I saw exactly one curried function yesterday. I know that because even though there’s been lots of ink spilled about curried functions ...

Get Simplifying JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.