The Idealcast with Gene Kim by IT Revolution cover image

Simplifying The Inventory Management Systems at the World’s Largest Retailer Using Functional Programming Principles with Scott Havens

The Idealcast with Gene Kim by IT Revolution

00:00

Is There a Side Effect to a Function?

A function is said to have a side effect if it modifies some state variable outside of its local environment. The absence of side effects is a necessary, but not sufficient condition for referential transparency. This means an expression such as a function call, can always be replaced with its value. So this gets to the notion of a pure function. Given a set of inputs, pure function always returns the same thing. In fact, calling the get system time function is not pure because it is different every time you call it. And so when i say side effects, what i really mean are non pure functions. Which gets us to number. That took a lot of words to describe a pretty

Play episode from 01:13:09
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app