Eat Sleep Code Podcast
Better code with functional programming

Better code with functional programming

Eat Sleep Code Podcast

28:06

About this episode

On this episode of Eat Sleep Code, guest Dave Fancher talk about Functional Programming. We discuss how functional programming has made its way back into modern development, clean coding, and more.

http://developer.telerik.com/content-types/podcast/better-code-with-functional-programming/

Ed Charbeneau** :** Hello and welcome to Eat Sleep Code, the official Telerik podcast. I'm your host, Ed Charbeneau, and with me today is Dave Fancher.

Dave Fancher** :** Hello!

EC: And today Dave and I will be talking about functional programming in .NET. Dave is author of, The book of F#, from No Starch Press and a Microsoft MVP for .NET and also the owner of Achiiv Solutions. Dave is a Pluralsight author, and he's done a course called, "Building F# Type Providers" and he's working on a new course about functional programming with C#. So Dave what is functional programming?

DF: So ask ten different programmers what functional programming is, and you'll likely get ten different answers. But in general, they tend to boil down to three main characteristics. The first one is that functional programming is about controlling side effects, side effects are anything that changes the external state of the system. It could be as benign as writing to a log file, or it could be more nefarious like changing some shared data across the system. Under functional programming, we wanna control that as much as possible, also under functional programming, we tend to focus on expressions rather than statements, so C# tends to be statement-based. There are some expressions in there, but for the most part it's statement based, your if statements, your using statements, and so on, versus a functional language tends to be focused on expressions, rather than executing something for its effect we wanna execute something for its result. And then finally, functional programming is really centered on the idea of mathematical functions. And so functional languages want to treat functions as data. So you can pass around functions just as you would an integer or a string and that gives way to higher order functions, which is where most of the power of functional programming comes from.

EC: So you're controlling the mutability of the data in the application.

Find the full transcript on Telerik Developer Network http://developer.telerik.com/content-types/podcast/better-code-with-functional-programming/

More from Eat Sleep Code Podcast

On this episode of Eat Sleep Code, Guy Royse from Redis Labs talks about how Redis is used for more than just caching data. Guy discusses his passions for Big Foot, UFO encounters and D&D.

1h 15m

On this episode of Eat Sleep Code Jonathan Danylko [J.D.] talks about why he values unit testing and how it leads to assurances while refactoring code. J.D. discusses what it takes to maintain his .NE…

1h 2m

On this episode of Eat Sleep Code, John Bristowe talks about deploying software and managing the process with Octopus Deploy. John discusses his career in development, soft skills, and his hobby proje…

1h 0m

On this episode of Eat Sleep Code, Laya Porter a Developer Advocate form VMware® Tanzu® talks about her project Women of .NET. Twitch streaming, gaming and travel are discussed.

1h 15m

On this episode of Eat Sleep Code, Ed Charbeneau and John Bristowe talk about the Tech Conferences initial response to the pandemic. Recorded 3.2.2020 https://www.theurlist.com/esc-news-3-2-2020

1h 6m