Simplicity lies at the highest level of abstraction

About

// TODO: Insert documentation on self here

Blog

16 Apr 2014 . concepts . Functional Programming Analogy Comments

Imagine a brand new robot which can follow basic instructions and learn new stuff.

Instructions

Find cloth / broom Pick it up Dust surfaces

Functions

Clean object means follow the above instructions for given object Clean door Clear window …

Recursion

Clean object means if object has smaller objects, clean each small object else clean object Clean room

Higher order functions

Begin task means perform the task for all objects Spraying water on object means to sprinkle water on object Drying object means to clean object Begin spraying Begin drying

Note: doesn’t include closures.

View more posts

Career

Contact

Send me an email if you would like to get in touch, have questions or feedback on my work, or just want to say hello.

nayan.shah .at. outlook [dot] com