ALTERNATE UNIVERSE DEV

Around IT In 256 Seconds

#49: Functional programming: academic research or new hope for the industry?

Functional programming means programming using functions. See, I need much less than 256 seconds for that! Unfortunately, this definition is as useful as saying that object-oriented programming means programming with objects. So let’s dive deeper. First of all, I mean pure functions as defined by mathematicians. In math, a function always returns the same output for a given input. A length of a string is a function. A form validator is typically a function as well. For the same form inputs it always returns the same result: valid or invalid. On the other hand, returning the current date for a given location is not a function. Or reading a file.

Read more: https://nurkiewicz.com/49

Get the new episode straight to your mailbox: https://nurkiewicz.com/newsletter

Episode source