WEBVTT

0:00:00.000 --> 0:00:20.880
<v A>Programming Throwdown Episode 91: Functional Programming Part Two. Take it away, Jason.

0:00:21.749 --> 0:01:01.422
<v B>Hey everyone! So we got a lot of feedback on our interview with Jonas Bonaer a few months back, and a lot of you really wanted to know more about functional programming and really dive deep. And I'm really excited that we have Adam Bell, Engineering Manager and podcaster. Um he's been an engineer for about 15 years. He's done a lot of functional programming in his career, and yeah, we're going to sit down and have a chat about functional programming, about Scala, about a lot of these different concepts and really kind of dive deep, starting from the basics and getting people kind of ramped up onto functional programming. So, so welcome to the show, Adam. Yeah, I'm glad.

0:01:02.063 --> 0:01:03.194
<v C>To be here. Cool, cool.

0:01:04.460 --> 0:01:07.311
<v B>Yeah, so what is functional programming? So,

0:01:08.155 --> 0:01:52.890
<v C>At its simplest level, it just means that you would construct programs only using pure functions. And a pure function would be something that like a function in the mathematical sense. So it takes in inputs and it produces outputs, and nothing else. So that means um, you know, no modifying of global state, no, you know, modifying data structures in place, no throwing exceptions, um, and maybe the more tricky requirement is uh like no reading of user input, no writing of things into the outside world. Um so that is kind of a high level of what pure functional programming is. Yeah.

0:01:53.262 --> 0:02:39.347
<v B>Yeah, that makes sense. I think one of the things that I always found really tricky was exactly what you said. I mean, at the end of the day, a program is going to interact with its environment. That could be reading from a file, um that could be writing to the network buffer or something like that. And I found that to be one of the hardest things to grasp when you join it with functional programming. So it's sort of like how do you, you know, a file is kind of inherently stateful? And it seems very natural to have this global file because you only have one of these files on your hard drive, right? And how do you get people from thinking in that way where they just have all of these globals for all of these environmental things that are literally global? How do you get them from that mindset to this functional mindset? Yeah. I mean, I

0:02:40.140 --> 0:04:01.461
<v C>Think it's a you can think of it as a design constraint that you place upon yourself. So I think a common pattern you might see is having a very functional core of your program and then kind of an imperative shell around it. So if you're if you have the file, as you are saying, and you need to do a lot of transformations on it, you know, you may have uh like functions that are ostensibly pure that take in, you know, lines of that file and do some sort of transformation. So they meet the definition, but somewhere at the outside you have some imperative layer that knows does the actual I/O. And I think that it's a really useful design constraint because what you end up with if you limit that imperative side-effect stateful code to the edges is is a system that's very testable. Like all the parts except that imperative stuff can be tested quite easily. They just have, you know, for this defined output do I get this for this defined input? Do I get this defined output? And so, so testing is easy. Reasoning can be a lot easier in that world where you're kind of um pushing towards functions. So, so I think that it's a challenge, but it's certainly one that has a lot of value in my opinion.

0:04:01.900 --> 0:06:00.000
<v B>Yeah, that's actually a really good way of looking at it. Um you know, I think when I started working in industry, you know, I through my if you can actually go and look at my PhD code, it's I'm not proud of it at all, but um you know it didn't really have any um tests or anything like that because you're just kind of writing it by yourself. And so one of the real challenges when I got into a more industry role was realizing that oh, we have to really write tests because we're really depending there's other people who are sort of depending on our code to behave in a certain way. We can't really use a lot of our own intuitions and spread those like through osmosis to the rest of the team. And sometimes you find that after you've written something, you go to test it and you realize it just—it's impossible. It can't be tested. The only thing you could do is just test main, right? Yeah. Uh and then you say oh well, I have to modularize this. I have to break this down. And while you're doing that, you say okay, I'm going to pull this function out and test it in isolation. But to do that, it needs to be context-free, right? If you go to test that file, that function and it calls a global and crashes, you say oh, okay. Now I need to take that global and pass it into the function so that I could pass in, you know, a dummy or something, dummy object. And what you're doing is basically you're learning functional programming. So I think yeah, a good way to get started if you've been going through some tutorials, you're learning how to program and you feel pretty proficient at procedural language—maybe C, C++, Java—I think testing your code even if you know you might be the only person who will ever use it. Testing it will be a really good exercise in software architecture, and along the way you'll be forced to discover functional programming in one way shape or form.

0:06:01.004 --> 0:06:06.572
<v C>Yeah, no, I totally agree, and I think that it's been thrown at me before like this statement.

0:06:08.125 --> 0:06:40.340
<v C>Hey, this if your code isn't easy to test then it's not good code. So I've you know people especially like people who are really keen on Test-Driven Development will say this, but the problem I have with this statement is like it doesn't really tell you what to do, right? It's just like it's just saying like hey, this code is bad. Um so I think that some of these functional principles can guide you in that direction to say like no, I mean, I mean, you can even have things that are well tested that just aren't good code because you have like crazy mocks and stub services and whatever it's all pound.

0:06:40.340 --> 0:06:42.719
<v B>Defines compiler macros. Yeah, exactly.

0:06:42.989 --> 0:06:54.177
<v C>So I mean to think about things as being pure functions as much as you can, I think really guides you in the right direction. Um yeah, yeah, that totally.

0:06:55.200 --> 0:07:01.500
<v B>Makes sense. So what are the functional programming languages that you use the most?

0:07:02.429 --> 0:07:35.132
<v C>So I spend my time in my day job writing Scala, which is kind of, I guess a multi-paradigm language. It supports like, you know, Java style object-oriented stuff as well as functional programming, and so that's where I spend most of my time. Huge fan of the language. And then, you know, I also am guilty of playing with a lot of other languages, so I spent time teaching myself Haskell, and that was certainly a great experience.

0:07:36.634 --> 0:08:10.452
<v B>Yes, we had a lot of Haskell at a place I used to work. And it's interesting; I actually really enjoyed it. But part of the challenge was we were building a software library for other people to use at the company, and so what that meant is anyone who wanted to use this library had to learn Haskell. We found that to be really difficult, and so we ended up having to rewrite the whole thing in Python, which is pretty sad because it looked—it looked pretty elegant in Haskell, but this is just the way of.

0:08:13.152 --> 0:09:02.140
<v C>The world. Yeah, I think that like Scala maybe is because it is multi-paradigm. It can, you know, it can be used as sort of a better Java, and so that maybe makes it more palatable. And also, like if you were building a library, like in your specific case, there's nothing saying you couldn't use that from any other JVM language. So there's some benefits there. I mean, the trade-offs are like, you know, Haskell is a very hard line; this is a pure functional programming language. There's no or very few escape hatches, I guess, whereas, you know, if you're trying to apply an FP style in a language that doesn't enforce it, I think that requires, you know, like obviously if the language isn't enforcing it, then that's kind of up to the team to say this is a goal.

0:09:02.595 --> 0:09:49.964
<v B>Know. Yeah, exactly. I think if you're building a service, you can get away with it because you can write a protocol, and yeah, you know, but if you're building a library, then yeah, I mean the lesson I learned from that experience is—or really, I guess I wasn't the tech lead at the time—but the lesson the tech lead learned is to really know their audience. I think that part that's kind of a universal truism. So you said you're doing Scala, so yeah, as you said, I've seen Scala applied in many different ways. So it's used in Spark, which is this, you know, big data compute platform. There's the Play Framework, which is, you know, kind of a web service. Are you using any of those, or what are you—what's sort of the scaffolding you're using on top of Scala?

0:09:50.841 --> 0:09:56.005
<v C>we have uh we have one project that is a play project um but we i mean it's

0:09:57.620 --> 0:10:58.172
<v C>And the main library that we're using is called Http4s, and it kind of is very much in the paradigm of using Scala to be for functional programming. And like it provides a really nice metaphor on top of working with a web service. So, like if I'm writing code to respond to some route that returns like some user information that maybe gets aggregated from somewhere, in Http4s with this kind of functional model, I have a function that gets in a data structure that represents an HTTP request, and then my—the thing I return at the end of the day is a data structure representing an HTTP response. So it kind of fits this function model: data in, data out. That makes sense. What?

0:10:58.819 --> 0:11:02.880
<v B>About contextual things like cookies? Are they are they in the?

0:11:03.707 --> 0:11:13.849
<v C>Request object. Yeah, I mean, cookies do come in the Request object, and I don't think that—I don't think that violates the like you're still getting everything and you need basically.

0:11:13.984 --> 0:11:35.840
<v B>Yeah, that makes sense. So basically, so the request is sort of this multiplexer or this structure that has cookies as headers, probably has the then it also has the body with the actual—if it's a POST request that has the body, and then you can return some response that maybe has the status code and the body as well, or something like that.

0:11:35.840 --> 0:12:51.319
<v C>Yeah, and then you may further subdivide this, right? Because you probably want to take some sort of structured data out of that request and return some structured data and have ways to format it. But at the high level, it's a very simple metaphor. A long time ago I worked in ASP.NET, and they had this like page life cycle model, and I remember like you know I wanted to return that the status code was whatever 409 or something, and you write the code to return it, but in fact, like behind the scenes there's some page life cycle, and it's already returned a response code where you are at. Right? So you had to understand this like oh, it's not just that I'm writing the things that return the body; there's this life cycle that lives outside of my code. Oh geez. And so that's very confusing, and I think I mean most web frameworks don't work this way nowadays, but I think it shows how like this functional model where you kind of get in all your inputs and then get out all your outputs is much simpler than something where there's some sort of extraneous information, like in this case that the header is sent, you know, by overloading some other method in the framework or etc. Yeah, yeah.

0:12:51.674 --> 0:14:51.600
<v B>That totally makes sense. I think, you know, a lot of people might say, well, you could do functional programming in any language, and you know ostensibly that's true. I mean, you could—you could fit the paradigm. It might not look that pretty. So in the case of Java, all of your functions would have to be objects that contain one method, but it's doable. But the nice thing about a functional language is is that as you said, it kind of—it might not completely restrict you, but it makes it very easy to write functional programming and it makes it more difficult to write this sort of procedural programming where you are or just pure—yeah, pure like recipe-based programming where you have all just global variables. And so it's like you can do anything, almost anything in almost any language, but it's really, you know, the it's almost like being an artist, right? I mean, you could paint almost anything with any paintbrush if you had the dexterity, but certain paintbrushes will make it very easy for you to do certain strokes. And so like any art, you know, certain languages and certain frameworks will make it very easy to craft your design in a certain way, and the functional programming way is extremely powerful when as long as you aren't too dependent on—as I said, a lot of these environmental things. So a web service is a great example because effectively bits come in, bits go out, and the only thing you really have to interface with from a real-world standpoint is the network card, but that's going through so many layers of abstraction that functional programming is a no-brainer there. I think this a lot of this big data transformation logic is also a really good candidate for functional programming, which is why.

0:14:51.600 --> 0:15:00.632
<v B>You know SQL and Scala now with Spark, and a lot of these languages are functional because they really excel in these environments. Yeah.

0:15:01.594 --> 0:15:26.215
<v C>And like with Spark and data processing, I think one reason it's a really good fit is just like, oh, you know, if we talk about immutability—that you're kind of not changing the data in place but kind of transforming it into a new format—that's very easy to split up and distribute across machines and stuff. Yep, how?

0:15:27.278 --> 0:15:34.220
<v B>Do you deal with things like databases where, you know, a database is this inherently sort of mutable object?

0:15:35.007 --> 0:16:30.520
<v C>Yeah. I mean, so if you talk about like—you were talking about Haskell—and Haskell has like this concept of like IO, where they kind of wrap anything that has an effect in this IO type, and then instead of actually performing the action right, the action is not actually run until the end of kind of the like until you fall off the end of main. Right? It's kind of building—we're building up a program that doesn't get run until the very end of the world. And so that is a way—I don't know if that characterization makes sense, but that's kind of a way to encapsulate making changes to the outside world while still living in this kind of pure function world. And so what we do on our team is very similar. So we use like an effect type called Cats IO, I believe what it's.

0:16:33.158 --> 0:16:38.120
<v C>Called—so methods that perform an action upon the outside world, like instead of having something.

0:16:39.638 --> 0:17:11.970
<v C>That instead of having something that goes out from a web service—let me think of an example. So I call a web service and get back an integer, let's say, and then I need to use that in some further computation. So clearly there's some sort of interacting with the outside world there. So how we would handle that is we have this IO type. So instead of having this function that returns an integer, it returns like IO Integer. And this is somewhat similar to kind of like the async/await pattern that you see in a lot.

0:17:12.780 --> 0:17:14.147
<v B>Of languages. Yeah, yeah, Promise.

0:17:14.417 --> 0:17:46.540
<v C>I guess. Yeah. So the key thing is that it doesn't actually run until you tell it to run. So what we end up returning is like a Promise that hasn't been started yet. And so you kind of compose these—let's say we need to call out to a bunch of web services, like you know, call get an input from this one and feed that into this one, so on and so forth. So we return these IO wrappers and we compose them together to say like, okay, when this one's done running, feed that value into here. And it's very easy to compose.

0:17:48.117 --> 0:18:03.422
<v C>And then at the end of the world, like at the end of our request chain, we say, okay, now run this. And so that lets us kind of encapsulate the dealing with the outside world into this kind of into this type that we wrap the results in. Yeah, that.

0:18:03.794 --> 0:19:09.437
<v B>Makes sense actually. It's a really one thing you mentioned that's a really good point is functional programming because each function is isolated. It lends itself really nicely to parallelism. So for example, you might write a simple script—maybe you write a simple Python script that does some text transformation, and you have this huge block of text—maybe it's comma-separated value that you pulled out of this Excel spreadsheet you've been working on that has thousands of rows, and you can do some transformation on all of the on each line. If you just do Python, you could do it. It might not take that much that many lines of code. You just do a for loop for each line, do your replacement, right? But it's going to go through each line one at a time, right? But there's no reason it has to. Do that. It could have you could have one process loading these lines from disk and then another process writing them to disk, and both of them can be going as fast as possible.

0:19:11.125 --> 0:20:09.884
<v B>With Python, that's going to require setting up a thread pool. It'll probably have to be a multi-processing thread pool. You have to you know create all of these—you know spawn off all of these tasks. You have to have a feature; you have to you have to do a lot of work yourself, a lot of the heavy lifting. With a functional language, they've designed it so that they do a lot of that work for you. So for many of these languages—and now this is starting to make its way into a lot more than just functional programming languages—but yeah, this whole Future Promise async/await pattern that really came out of functional programming. And for example, you can write something that solves, you know, a game search like solves a checkers game or something like that in Lisp, and it'll automatically use all of your cores. You don't have to be fuddling around with thread pools and all of that.

0:20:10.727 --> 0:21:02.061
<v C>Yourself? Totally. It's interesting what you're saying about how this stuff is kind of feeding out into the other languages because if you think about like at some point like Python having like map and filter and stuff was considered like that's functional programming just because that was an idea kind of feeding out, and generics like you know like having a list of T instead of ArrayList. Like this is an idea that was called parametric polymorphism that originally came from Haskell and then was brought to Java. And you know, like lambdas obviously are quite popular now, so I feel like there is a conveyor belt of taking these ideas and feeding them back to other languages because there is a lot of value in them. Yeah.

0:21:02.483 --> 0:22:45.117
<v B>I mean especially, I mean a web server is a great example where you might have one person who—they're maybe they're on their phone and they send you requests saying, 'Hey, get me the weather.' And your service tries to return the weather, but that person goes under a tunnel and now they have no reception. And so you're just pinging this person saying, 'Hey, I have your weather. I have your weather. Come get your weather.' And if everyone else—maybe you have a hundred thousand users on the site—if they're all blocked because of that, your website just won't it's not going to be functional, right? Yeah, unintended. But you know, but that's where again a functional language is really shining because that actually could be really tricky to get right. You know, even if you have eight threads now, you can support eight people. If eight people lose reception, your website goes down. And if your website has thousands and thousands of people, that's not unreasonable. Functional languages are really, really good at having—they have these executors that sort of manage a lot of this. So if there's a function that's waiting on some hardware device or some I/O, that's okay. The language, you know, the engine underneath the language knows to just put that one on hold, pick up a different one. And that—that's the kind of thing can be really, really difficult to get right. So as we talk about a lot of these concepts making their way into other languages, keep in mind that there's a lot of advanced techniques in the functional languages that still make them really, really good for, you know, much better at doing, you know, these kind of

0:22:45.859 --> 0:24:22.064
<v C>tasks. Yeah, totally. There was an example I remember from when I was learning this that kind of made a lot of sense to me where somebody had like this: okay, here's like a service that processes coffee—like you're buying coffee. So it takes in like a credit card and then you know it returns like some something representing a cup of coffee. And then you know, in the body of this, it goes out and charges your credit card. It seems like a reasonable solution, right? And then so but obviously it doesn't kind of meet this functional aspect we were talking about. So if you could transform it so you take in the credit card and you return both a coffee cup and then something that kind of encapsulates this effect. So let's say it's just like a data structure that says, 'You know, charge this card so much money.' And then somewhere, you know, obviously you have to actually have to apply this charge. But the interesting thing is if you start thinking about adapting this—now what happens if, like, we say you make one solution, I make the other? And then you know requests come in like we want to buy a whole bunch of coffees, like we're going to buy five coffees in the system where we're going out and like charging the card for every coffee that comes in. I mean, that's not what people expect when they buy a coffee. Where the system that kind of returns these charge objects—you could imagine just a process that kind of merges them before it actually you know sends off the request and is able to

0:24:23.633 --> 0:24:38.348
<v C>like batch the effects, right? So this idea of making the effects, making the side effects you're going to do in the world like an explicit thing in the domain of your software. I mean, I think that's one of the kind of ideas if that makes any

0:24:38.382 --> 0:26:12.440
<v B>sense. Yeah, totally. I mean, I think this will also—you'll be revealed when people try to test things. So if you have let's say you have some service that configures your router and you try to test it. So you know, if you have a unit test which literally is going to go and configure your router and you're going to run it hundreds of times and people will be running it with bugs, well, you're gonna have a really bad router, right? Yeah, that's a scary network to be on. So what you really want is is to mock that out. And by not allowing let's say globals, for example, or by discouraging globals, you kind of force people to say, 'Okay, this global router object that points to some driver that I got from Cisco, I can't—I can't rely on it always being there, or I can't rely on globals at all.' Let's say. So you know, maybe the first step is let's pass that in. And well, as soon as I pass it in, now I could pass in something else as long as it has the same signature. And that's kind of how people can—you know, that's sort of how like I guess well-tested or professional software works. Yeah, what about in terms of typing? So you know a lot of the early functional languages weren't typed. I mean, I'm thinking Lisp. I don't think Scheme is typed. They're all weakly typed. Now Scala is—is strongly typed. They have the type inference engine. Do you feel like there's what sort of side of the coin are you on?

0:26:12.899 --> 0:26:55.896
<v C>I'm definitely on the side of types. And when I think about the value that I get out of this proposition I was saying earlier, like a function takes some inputs and gets some outputs. A lot of the value I get is that the types kind of constrain what those inputs and outputs are. So I think types are super powerful, and like I think that functional programming in Scala, in Haskell, in you know more researchy languages pushing the type system to be able to better encode the constraints of what you're doing is is like a huge win in terms of software maintenance. So yeah, sorry, go ahead. Oh, I just—

0:26:55.896 --> 0:27:03.186
<v B>definitely agree. Yeah, I mean, I've been burned so many times by weakly typed languages that yeah, I'm kind of done with.

0:27:03.692 --> 0:27:41.720
<v C>that. Yeah, and like if you look at like Scala or let's say Kotlin or even Rust or Swift, like one thing you're seeing is kind of using a Result type or an Option type or something rather than like a null pointer. And like that so that is another idea that's kind of moving out into the ether of other languages from functional programming, and just that thing is so valuable, right? Just to say like, 'Hey, you're not going to get a null pointer here; you have to explicitly handle like if this is possible that this value is not defined.' That's an explicit thing you need to handle.

0:27:41.720 --> 0:29:31.635
<v B>Yeah, I think yeah, I agree with you. It's so useful. There was an issue the other day I saw at work where there's basically a function that was meant to return some information and it didn't support null. And so we ended up getting a crash at some point saying that someone tried to pass a null. And it turned out that there were some circumstances where that object that we were returning, it couldn't be retrieved. So I mean, think about like a double delete scenario where two people are trying to look up an item and delete it at exactly the same time. And the second process that arrives goes to get the item to delete it—it's not there, right? But because we explicitly banned nulls from in this particular function, we got an error whereas you know in other languages, I mean, at worst you return the null. You don't think it's going to be null and then you start using it, and then you're lucky if the program crashes like much further down the line. I mean, that's the best case scenario. It could even get worse than that; you just get corruption and things like that. Yeah, so I think a lot of that stuff, and as you said earlier, it is making its way now with C++17. There's the Optional—Optional is not part of the language, so you could do Optional foo equals bar, and then by default bar is null. But yeah, there isn't support for—there isn't support yet for—I wonder if there's a way to Patrick might know this if there's a way in C++ to just blow up? I guess you could have an Optional where if you tried to actually—I guess Optional will do that. If you try to access it, it will kind of blow up. But so yeah.

0:29:31.635 --> 0:29:43.296
<v A>In the new C++, one if you access an Optional where the value is missing, it throws an exception by default. But there are ways you're supposed to check it before you do that or say give me this value or this default. Yeah. So,

0:29:44.477 --> 0:29:52.898
<v C>this is yeah a common pattern like you'll see the same thing in Scala or Haskell or Swift, I assume. And I think that—go ahead. Oh, I was just—

0:29:54.240 --> 0:29:59.560
<v B>gonna say do you feel actually you finish your thought because I have a kind of a tangent so so I—

0:29:59.560 --> 0:30:16.489
<v C>think like it. So this is a great idea and it ties in with kind of algebraic data types which some languages are starting to get and generally you know FP languages have always had, but you can push these type ideas even further, right?

0:30:18.008 --> 0:30:33.060
<v C>Like the phrase that I think comes from like O Cameland is like 'make illegal states unrepresentable.' Unrepresentable. Yeah, let's say it that way. Okay? And so to use the type system so that you know you can't—like that—you could

0:30:36.360 --> 0:30:44.130
<v C>enforce invariance in your code using the type system. And having richer types allows you to do this more easily. Can

0:30:44.569 --> 0:30:52.720
<v B>You give an example? Is it sort of like saying you can't do three plus dog or something like that? Is that—is that where you're going with this?

0:30:52.754 --> 0:30:55.589
<v C>That's a super simple one. But so if you

0:30:57.495 --> 0:30:59.672
<v C>have some types? If you have

0:31:01.242 --> 0:31:41.978
<v C>you have a some type which is like a type that can be one of several values, right? So in Scala, I would have—let's say I have like a sealed trait called Animals, and then I have a Dog, Cat, and Parakeet or something, right? And then somewhere else I have some code that does some pattern matching and pulls those apart and handles each case. And then if I add a new value called Goat or something, the compiler will tell me, 'Hey, you have not handled this case. This type has four possible values, and you are not handling that case.' Another

0:31:41.978 --> 0:31:47.243
<v B>Yeah, you're talking about the case classes? Is that the right word? The case classes. Yeah.

0:31:48.154 --> 0:32:15.053
<v C>Scala. Yeah. And so I think this concept of like—so that that's like totality checking. And and some languages take it much further. But so when you're writing that actually, I think that I'm trying to think of another example. Maybe I'll maybe I'll think of one, but yeah, using the type system to kind of make it more apparent when you are doing something wrong, I guess is kind of the concept.

0:32:15.627 --> 0:32:22.613
<v A>Hey Jason, not to interrupt you, but before you go off on that tangent, do you want to take a minute to tell people about O'Reilly OSCON? Oh, that's right.

0:32:23.001 --> 0:33:00.939
<v B>Yeah, OSCON is coming up. There's gonna be a bunch of, you know, superstars there that you can listen to. They're gonna talk about actually a lot more than open source software. It is going to be there. There's going to be Blockchain, there's going to be AI, there's going to be Cloud Computing, Distributed Computing—a bunch of different talks from people all over the world. You can go to oscon.com/pt for Programming Throwdown. If you go there, you can get a special deal which is really cool. Definitely check it out. There's going to be a lot of really interesting people. Do you know who else is signed up to speak?

0:33:00.939 --> 0:33:40.710
<v A>So I actually would advise people to just go look at the website because there's a ton of people. But I know that there's Holden Crew from Google, Rupa Dashir from Code Chicks, Julian Simon from AWS, Allison McCully from Unblock Future. I mean, the list is really big. Like I was starting to—I'm gonna read. Oh wait, I'm not gonna read all these people. There are a ton of talks. So actually, I've never been to a conference where I know we were talking about this last episode and you know you were talking about it, about what it is, kind of like—to go to a conference and I feel like going and talking to my boss about trying to be able to attend one because I think it'd be really cool to be surrounded by people talking about the kinds of things I'm super interested in.

0:33:41.183 --> 0:35:01.508
<v B>Yeah. I mean, also one really interesting thing that this conference is doing that's pretty unique is they have sort of speed networking. They have book signings. They give you a really good opportunity to meet other people. I've been to conferences in the past where it's just very very technical and it was designed for you to go—is this is designed for one-way communication, right? For you to go and listen to some talks. But this is really designed for you to interact and meet other professionals, which is really cool. So definitely check it out. You can get 25 off your pass if you use the code PT25. I believe if you use the link oscon.com/pt, you'll also get the discount, but put the code in just in case. And yeah, hope to see you there. Yeah, so with all of these languages you know adopting a lot of these principles from functional programming, where do you see the whole ecosystem going? Like do you see some of these languages sort of collapsing together, or do you see there's maybe going to be, you know, sort of an explosion of new ideas? You know, I always kind of wonder if there be some type of contraction because a lot of the features will just—you know, things will just become homogeneous over time. Yeah, I don't.

0:35:02.824 --> 0:35:54.968
<v C>I don't see it becoming more homogeneous; like I only see it becoming more heterogeneous. I guess, like the number of people developing software continues to grow, and I don't know if this has to do with functional programming at all, but like as you were saying before, if you're writing a service that other people are calling in some sort of grander architecture, like you know, you could write it in whatever language you want as long as you agree on the protocol. So we're, you know, in some ways we're in a Cambrian explosion of languages. And I mean, I don't see that going away. Certainly, the table stakes are higher for a new programming language, right? Like you can't just write a compiler. You know, people expect package managers and they expect like code linters.

0:35:56.875 --> 0:36:01.347
<v B>Yeah, is there—I guess Scala has SBT right for the package management?

0:36:01.937 --> 0:36:03.152
<v C>Uh, yes. Yeah, yeah.

0:36:03.524 --> 0:36:14.300
<v B>There's a—you know, there's still not a good—Patrick, you can correct me if I'm wrong here, but I don't think there's a good package manager for C++. I know there's Hunter, but it's not even that popular.

0:36:14.847 --> 0:36:20.680
<v A>There are a few, but they don't—I've never found one that had enough critical mass of packages to be.

0:36:21.225 --> 0:36:37.695
<v B>Useful. Yep, exactly. Yeah, there's Conan. There's actually one from Microsoft. It's—I think it's like VC, I don't remember, but yeah, you're right, none of them can really get everyone on board. I mean, it seems like—I can understand. I mean, it sounds incredibly difficult.

0:36:38.674 --> 0:37:11.985
<v C>Think like maybe you guys disagree or something, but like so C++ just existed before the idea that languages should have a package manager. Like was an important idea, right? And I think that there's these stops along the road, right? Like I think Go kind of put down its feet on having a way to format your code easily, and that like languages, you know, after Go are all going to have that. It's such a good idea, but—you know, languages before that people are too busy fighting, and their PR is about whether you should format it this way or that way. Yeah, that's.

0:37:14.297 --> 0:38:20.640
<v B>Right. Yep, yeah. I wonder—I really wonder what's going to happen. I do think that okay, so to your point with Docker, with you know service-oriented architecture, um that really gives people flexibility to write any language they want. But I feel like the system is inherently winner take all as well. You know, and again, I think there's going to be always going to be a lot of languages. I just wonder whether the distribution concentration will just favor a few languages. Like I think you know Python. We do mostly Python at where I work now. You know, we use the typing module and all of that. But yeah, I mean, there's definitely better languages, but I feel like there's this sort of winner take all effect. Although to—to sort of play those advocate against that, TensorFlow recently added support for Swift, and so that I think is a game changer for a lot of people doing machine learning and people in AI.

0:38:21.797 --> 0:39:16.185
<v C>Yeah, um I had on my podcast Brian Cantrell, and he did this great presentation, and we talked about it—about software values. I think it was called. So he was a big proponent of like the Node.js ecosystem and had kind of a falling out with them, and he kind of thought about this a lot and decided that like what matters with programming languages is sort of like where they put their values, and that it leads to like a different system. So like Node.js kind of put a lot of importance on just being accessible, like people being able to pick it up. And I think when he wanted some more, you know, thought that there should be some more complex features that would build more robust software, then they were like, 'Well, that would be great, but that would take away from accessibility,' right? And I work on Scala, which has a reputation for being very complex. And I think Rust also has, and Haskell, yeah. So like.

0:39:18.734 --> 0:39:48.315
<v C>I feel like that's the decision space like as a language, right? Do you want to be like—do you favor this being an easy language for people to take up? Do you favor that this is a language that's more reliable or more secure? I mean, performance is probably another aspect, but there's all these values, right? And I think languages kind of pick and choose where they fall. Like C++ obviously has some very specific, you know, performance and memory usage constraints on it that will be more important than anything.

0:39:48.805 --> 0:40:13.840
<v B>Else. Yeah, that makes sense. Is there—so is there a in the functional programming landscape? Is there sort of a Pareto front there? Like are there reasons to use Haskell versus Scala that involve, you know, I guess performance or is there some specialty that Haskell is like pretty really good at?

0:40:14.759 --> 0:41:00.959
<v C>Yeah. So one thing that is interesting about Haskell is that it is lazy. It has a lazy evaluation model, and I don't know—I don't know any other languages that have that. So besides all its functional aspects, it has this lazy aspect which can be challenging but has benefits in certain cases. Scala, I think, is great when you want to use the JVM because like you're not going to run into like, hey, like I literally had this problem with Haskell before where I needed to interact with this like SOAP web service, and they're like, 'Yeah, don't do that.' Like that was their—where if you're in Java, like if you're on the JVM, that's never going to be a problem.

0:41:00.960 --> 0:41:07.880
<v B>Yeah, there's just so much, so many billions of lines of code that have been written. Yeah, I don't know if

0:41:08.320 --> 0:41:09.197
<v C>that answers your question.

0:41:09.417 --> 0:43:07.559
<v B>Though, yeah, that makes sense. Yeah, I think the lazy evaluation just to kind of give people more depth on that because it actually—it's supported in um it's not part of Python by any means, but if you're using TensorFlow or PyTorch or any of these GPU tensor processing libraries, they're doing lazy evaluation. And what that means is, you know, imagine you have a program that reads a number from the command line, adds four, doubles it, and then it returns it, right? So it prints it to the screen, let's say. So when you do the add four and the double, that doesn't really change—I mean, it changes some memory on your computer, but you don't really notice anything until you do something with that number like print it. So what a program could do is it could just keep kind of like a ledger of what what what you said it should do. So you said, oh, you want to—I forgot what I said. I think add four. You want to add four? Okay, I'll make a note of that. You want to double this number? Okay, I'll make a note of that. And then when you go to print it to the screen, then it goes back through its ledger and it says, okay, what operations do I need to do? And so, you know, this is a very simple example, but imagine if you did that operation to two numbers and only printed one of them. Well, then it doesn't have to do that operation on the other number which is just going to get thrown away. It only has to do half of the work. That's a—that's a big reason to use ledgers is the pruning, but by far the biggest reason is that there's a lot—there's a lot of latency, especially if you're doing anything on the GPU. Like you have to take information that's on your motherboard, then you have to send it over to this PCI card, right? And that takes time, right? So you can send a ton of information, but it just takes time to get there.

0:43:07.710 --> 0:43:28.281
<v B>So by batching up all of these commands, you can send, you know, a hundred commands instead of one command. And even though there might be a hundred times as many things to do again, it's a latency issue, not a—not a bandwidth issue. So you get a huge speed up by doing that. And Haskell has that—has that basically baked into the

0:43:28.602 --> 0:44:05.102
<v C>language. Yeah, and like so Scala has laziness as well, and like a call by name is what they call it, but it's not the default. So it is a very powerful paradigm, as you're saying, having it as the default. Like I think that's confusing for people who aren't familiar with it. That is—you expect a program to work by starting with the first line and then executing through the bottom, whereas you're describing in a lazy world it's kind of like it goes all the way to the bottom building up its computation and then kind of runs it by backtracking through what it needs to do.

0:44:05.592 --> 0:45:02.342
<v B>Yep. Yep. And so a lot of these languages or platforms will have sort of an immediate mode where, for example, let's say you're developing and you need to know the value—maybe you have a variable that you're just stepping through with the debugger, but you're not actually even using it. You still need to know kind of at every line of the code what that value is. You know, maybe just you have all this computation and at the end you get not a number, right? That's really hard to debug. So with immediate mode, you can kind of step through and say, oh, this is the exact line where things kind of went south. So it's totally possible, and so in a way you kind of get the best of both worlds. You get this immediate mode when you need it, which is a little slower. Think of it as sort of—futures, which we didn't talk about yet but we get to—that are resolved right away. And then you also have this lazy mode, which is much faster. Yeah.

0:45:03.304 --> 0:45:21.411
<v C>And the—like I think from like a theoretical CS perspective, like the lazy evaluation mode will always be at worst take as much time as the eager mode because it's, you know, it can but it can be faster because steps could be deemed unnecessary. But

0:45:23.790 --> 0:46:02.198
<v C>it can have a tremendous memory overhead. Like if you're in Haskell and you want to—you know, maybe they would say just don't do this, but let's say that you were like summing a whole bunch of numbers, but because of the way you did it, it is following kind of the default lazy style, and you're passing around that result number. But the result number in fact it's not a memory location of an Int; it's actually a giant computation of like add one plus two plus three plus four. So the calculations will end up being the same, but until that's evaluated, you know, they have these kind of space leaks where you end up holding on to a whole bunch of memory without really meaning to.

0:46:02.637 --> 0:47:07.268
<v B>Yeah, that's a—that's a really, really good point. Just in general, these higher-order languages will have sort of traps. So I think of it more like you can think of it as like using a machete or using, you know, like a chainsaw, right? Like the chainsaw can do a lot more. It can be really quick, but also you kind of have to develop some—some more skill to use it. And and I think that's—that's a good way to sort of learn is to dive in there. You write this program and you realize, oh, why is this taking, you know, an hour to run? And then there's, you know, there's a bunch of really good tooling for all of these languages to step through and say, oh, I see why it's happening because I'm building this huge computation graph of—of all of this mathematics I'm applying when really I should at some point. I just realize all of that computation—I think they call that checkpointing—to checkpoint the computation so that it, you know, collapses that whole call graph and then you can start again.

0:47:08.534 --> 0:47:18.017
<v C>Yeah, and what I'm describing is probably like a very much a beginner mistake to not realize that you're they're chaining around this computation. Yeah, but yeah.

0:47:19.857 --> 0:47:20.970
<v B>What about um oh?

0:47:22.135 --> 0:47:48.000
<v C>So by the way, you asked me like, hey, when should you choose which functional programming language? So I'm gonna say, you know, always choose Scala because that's my favorite. But but I think in practicality, like, you know, a language like Haskell or something is a great place to learn about all these FP concepts, but if you need to do real-world stuff, like I said, if you need to talk to some SOAP thing or something, you know the JVM is a good place to be.

0:47:48.000 --> 0:49:20.860
<v B>Yeah, that makes sense. And if you're at a company or you're doing some software task now in a different language—one thing everyone can take away from this podcast is to know how to do functional programming in that language. And so just to enumerate a lot of this: I mean, if you're in C++, you can use Folly Future. Actually, Patrick, you might know of other alternatives to that. The only one I've ever used is a Folly Future, but there's probably a hundred other ones that basically give you this async/await type paradigm. You know, if you're in Scala or Haskell or something like that, that's very natural. If you're in Java, there's got to be some good libraries, but you're going to be creating a lot of objects, so get ready for—for, you know, yeah, a ton of objects. Other languages? Oh yeah, I mean if you're doing anything like Node.js or even if you're doing React or JavaScript in the browser, definitely look at, you know, the await/async libraries and Node. I think there's RxJS in the browser. Before we enumerate all of them, look up like it would either be, you know, reactive programming, functional programming. There's a way to do it in every language, and depending on the task you're trying to do, it could be really powerful. So definitely, you know, dive into that. And it's something really good to understand.

0:49:20.860 --> 0:49:39.080
<v C>And types, right? If if you're doing React stuff, I don't know, maybe TypeScript or yeah Flow, or, you know, and another keyword I'd call it is like algebraic data types, which more languages are getting support for, but is a nice way to kind of build data structures.

0:49:39.080 --> 0:51:36.319
<v B>yeah that's one thing that drives me absolutely crazy about tensorflow and pytorch is they just have the tensor data type so if i have a tensor that's sometimes i've done this where um i have a tensor that's um let me make sure i get this right yeah yeah okay so i have a tensor let's say five by one so it's it's a vector right and then i multiply by another tensor that's five by one so what that's going to do is it's going to multiply those two vectors and that's going to be i do a dot product so um under the hood it's going to uh you know multiply you know component wise add that all up and i'll get a single number out so maybe i do this vector times vector or this you know they're calling it tensor times tensor and my output is three right but if i get the dimensions wrong like let's say i one of those two vectors is transposed so now i have a five by one matrix multiplied by one by five matrix well what sensorflow is going to do is it's going to do the outer product so my result isn't going to be three or ten or a hundred it's going to be a five by five matrix and nothing warns you about that so so you could just easily um you know get blown up because sometimes you know we have these huge vectors and we multiply them together maybe it's a million items and we expect them to output a number but what ends up happening is outputs this million by million matrix and you can't even fit that matrix so your graphics card blows up right and it's just that just that's just absolutely drives me crazy they are uh there is something coming out in tensorflow called named tensors uh it's not out yet but um you know i think to your point i mean it's it's moving in the direction of sort of algebraic types so i mean i think the holy grail there is where you have

0:51:36.879 --> 0:51:46.279
<v B>Unit types. You can define like you could say seconds S equals 10 microseconds, and it would do the conversion automatically. Just stuff like that.

0:51:46.684 --> 0:52:02.074
<v C>Yeah, so like a different holy grail is like if you've actually would encode the size of your matrix into the type. So I've seen this, I've seen this done in a couple languages.

0:52:03.779 --> 0:52:52.733
<v C>So an example in the Idris programming language is actually like he has this function to transpose a matrix, and the way he defines a matrix is it's like Matrix, and it has two like type parameters that is like the N by M size, right? So he has a function that takes in a matrix that is size N by M—maybe those are hard to say over audio, I by J, let's say—and then it returns it like J by I. By encoding that kind of dimension into the type, you can actually understand that that is a transpose function like without even understanding the body of it, right? You can see just by that that these two variables move. That it's actually kind of rotating the matrix. Yeah, yeah.

0:52:53.759 --> 0:53:16.004
<v B>And if you do—you know, if you multiply these vectors and you set that equal to a floating number point number, then the type system could know, okay, there's only certain multiplication matrix multiplication operations that can yield just one number, right? And so it would catch that at compile time.

0:53:16.320 --> 0:53:25.920
<v C>Yeah, and your example of—yeah, exactly returning like instead of a float some giant matrix. If the type system had that information, yeah, it would be a compile-time error. You would never even send it off.

0:53:25.920 --> 0:54:26.153
<v B>To run? Yep, yeah, yeah. I'm also a huge fan of TypeScript. The one thing—it was really hard to set up, but to be fair, I was trying to go for the holy grail. I did get it eventually. But what I got was—what I wanted was basically the server and TypeScript running Express, the client was running React also in TypeScript, and both of them support hot reloading. So what that means is you can edit a source file, hit save, and your server changes underneath, on the client side every time you hit save it refreshes the browser, and it's up to date. I posted two or three months ago, I posted from Hacker Moon an article on how to do it. It was definitely a lot of work, but it was totally worth it. I think if you're going to build a website that is that is the way to go, and as you said, you get the type safety, which is—which is actually really important. It saved me.

0:54:26.879 --> 0:54:48.951
<v C>Multiple times. Yeah, everybody who—everybody who I've heard talk about moving a large JS code base to TypeScript has talked about like, 'Oh, there was a couple bugs that we didn't know about that it just called out.' And like obviously they're not very prominent bugs because they would have already got to them, but but like, you know, if you were developing in TypeScript, they never would have even been.

0:54:49.660 --> 0:55:06.080
<v B>There. Yep, yep, that's right. And it just helps new people too who are looking at the code base. It's very hard to dive into the middle of a code base and know what's going on, but the type system is really sort of your dictionary that you can kind of carry with you as you're kind of diving through all of the code.

0:55:07.120 --> 0:55:38.597
<v C>Yeah, I love that. Like, you know, maintainability when you have a lot of types. Like, you know, we use types quite extensively in our Scala code bases, probably in ways that would be unusual to people, but like when you can go in and say, 'I want to move this here,' and you kind of can move it and then see what breaks and then slowly, you know, work those changes through as opposed to like, you know, some Ruby or Python code base where you better have good code coverage and some great reviews. Like the differences are astounding. So one thing before

0:55:40.251 --> 0:56:11.858
<v B>We jump—I want to jump in and talk about your podcast, are things that you're trying to, things that you're working on. But real quick, how do you keep people from your team from creating like crazy Scala operators? Because I've seen in our codebase some unbelievable operators. I honestly thought they were those and emoji, you know, those five-letter long, you know, like emojis, or they're flipping the table or something. Yeah, how do you keep people from abusing the language?

0:56:12.482 --> 0:57:02.960
<v C>I guess those are two different questions. We haven't had the operator—the operator problem. Maybe that has to do with personal tastes of people on the team. I think that there was like a while where that happened, like in this in the community of Scala that it was common to write custom operators for a lot of things. And I think that maybe that's not the case anymore, but I also think it's a case where like if you get used to an operator, then you love it. Like you find it easier to understand than a word. But if you're not used to it, it's very confusing. I feel like it's a little bit like Vim. Like I use Vim key bindings in IntelliJ, and now that I know the bindings and everything, like it's amazing. But you know before I knew it, it was like super confusing, and I was like, 'Why would anyone use this?'

0:57:02.960 --> 0:57:24.640
<v B>Yeah, right. I went through the same thing. You know, being a machine learning person, I know Emacs because that's what they taught us in AI class. But yeah, I remember the first time the professor forced us all to use Emacs. 'What are you doing to us?' It's like Ctrl+S to search. What's going on? But then over time, you realize not taking your hands off the keyboard is pretty nice.' Yeah. So,

0:57:25.045 --> 0:57:43.759
<v C>I think that operators—like it's great that you can do operator overloading. You should only really do it if it's something that's going to be like that, like you're just gonna—you're not gonna have to look up what it is. Like if it's going to be muscle memory for your team. Like, 'Oh yeah, of course this means combine two lists together and then increment everything by one.' I don't know, that's right.

0:57:44.789 --> 0:58:24.225
<v B>Yeah, yeah. And then one thing that trips people up is the underscore for arguments that don't matter. Because like if you see—so just to give people some context—if you have a function and let me show I get this right, function takes sort of let's say two arguments, but the first argument you're not using. You can put an underscore just to say, 'Hey, I know there's supposed to be something here, but it's irrelevant,' instead of putting the word dummy or something like that. But then what can happen is you can end up with like open paren underscore plus underscore close paren, and people look at that and think that that's one whole operator.

0:58:25.289 --> 0:59:38.712
<v C>Right. Yeah, which ties into your other question, right? Like how do you—like Scala is a very flexible language, and then so how do you restrict, you know, what people do? Because you can do more than that with underscore because you can refer to it, right? So you could have a function that is like bracket underscore comma underscore bracket, and then like arrow, and then underscore dot one and underscore dot two. Like that's right. I mean, so I think that that is a harder question, right? Like how do you—I mean, I think the same is probably true of C++ to an even greater extent. Like the language is so large, you have to kind of as a team reach kind of some sort of consensus. But in Scala, like we use linters and code formatters and kind of enforce things in the build, and that's great. Like something like instead of arguing about code formatting like in PRs, we have a config that kind of dictates what our code formatting will look like, and if you want to argue about it, you could just make a change to that and then argue in that PR where it reformats everything to the new standard, which is just great at removing the diversion of arguing about code formatting. Yeah.

0:59:38.897 --> 1:00:44.558
<v B>I mean, I remember the days of you know people arguing over spaces and things like that. I mean, it was unbelievable. And now, I mean even C++—every language has some type of way to automatically format, and it takes so many of these arguments off the table. It's like if you don't like the formatting, you could even reformat the whole codebase and then just format it back when you go to submit your PR. I mean, if you're that—but yeah, I agree with you. I think some of the more semantic things are just handled in the peer review. So we have this—we have this sort of meme we call Clown Town, and something that comes from The Simpsons, but I don't watch The Simpsons, so someone will have to correct me on that. But yeah, there's basically this—this emoji we have of Crusty the Clown, and so yeah, when something's getting kind of clowny, we put Crusty on it. So if someone has a pound define that creates a class, and C++ you know they get crusty, and that's that's the way we sort of enforce it. We have.

1:00:45.570 --> 1:00:49.148
<v C>A bike shed emoji for when people start fighting about dumb things.

1:00:49.654 --> 1:00:52.574
<v B>Wait, what is a bike shed? I don't even know.

1:00:53.012 --> 1:01:19.810
<v C>I think it goes back to this old story that says like you know that they were building a nuclear reactor and they had a committee to oversee all the plans. And then the committee spent all their time arguing about the color of the bike shed because like the idea was that the people on the committee didn't know anything about nuclear reactors, but they understood bike sheds, so they're like, 'That's what they focused on and argued about.' It's kind of like you're—you're missing the, you're focusing on the wrong thing here.

1:01:20.080 --> 1:01:52.210
<v B>Yeah, yeah, that's amazing. I noticed that. Well, you know there's it takes a certain personality to invent an entire framework or library or even programming language, and so you have to be sufficiently dissatisfied with the status quo, right? And so when you get a lot of programming language inventors or platform inventors together, you end up with a lot of contrarian opinions. And yeah, I think I need to borrow that bike shed emoji. Yeah, it's.

1:01:53.189 --> 1:01:58.690
<v C>True. You can have too many divas or I don't know what the right word is. Yeah.

1:01:59.736 --> 1:02:10.907
<v B>So tell us about your podcast. So it's co-recursive? Um do you... is it purely recursive programming or is it just... is it more general? What's a what's the sort?

1:02:11.549 --> 1:02:46.514
<v C>Of topic. So um it is not purely about recursion. Um so the show is an interview format, and so it is a software development podcast. And um if I'm curious about a subject—say you know similar to this episode, or if I want to know about TensorFlow or some new programming language—I find an expert in that area and bring them on and kind of have them explain that area to me. And I ask questions, and I'm hopefully not afraid to say like, 'I don't understand, could you explain that again?' Um and

1:02:48.117 --> 1:03:19.279
<v C>So the that—that is the format. It's kind of a deep dive on to a technical area, an interview at a time. There's been a lot of shows on areas of functional programming, shows on building your own programming language, shows on Rust, incident response, kind of a wide swath of topics. But um cool that I just picked the name because a co-recursive function is something that kind of produces a stream of values, so it's kind of like a pun in that I'm producing a stream of episodes.

1:03:20.787 --> 1:03:24.195
<v C>All right, but really, it's just a name that's distinctive. So

1:03:24.533 --> 1:03:26.946
<v B>What inspired you to get into podcasting?

1:03:27.621 --> 1:04:01.692
<v C>So I was listening to a lot of tech podcasts, and I thought that there were certain topics that I would love to have covered that I didn't really see being covered. And originally, I reached out to this podcast Se Daily to see if he would cover some of these topics, and he said, 'Well, why don't you try like just doing guest hosting for the show?' And I did that once or twice, and then I just found that it's a lot of fun. Like I like to be able to talk to people about software, and so yeah, can't stop. Now cool, that's awesome.

1:04:02.215 --> 1:04:08.661
<v B>I'll have to make you a trade, and I think I can come on your show if you want to talk about any machine learning stuff.

1:04:09.083 --> 1:04:09.876
<v C>That would be.

1:04:10.264 --> 1:04:17.920
<v B>Awesome. Cool. And can people catch you on like what sort of social media are you most prevalent on?

1:04:17.920 --> 1:04:32.522
<v C>So definitely, you know check out the podcast at corecursive.com. If you google Adam Gordon Bell, you'll find me. I'm on Twitter at @AdamGordonBell and also at Corecursive. And yeah.

1:04:32.560 --> 1:04:40.757
<v B>Cool. So if people want to reach out to you, do you support DMs on Twitter or should they email you through the website? How can people get a hold of you?

1:04:41.179 --> 1:04:55.793
<v C>Yeah, you can DM me through Twitter. You can email me adam@corecursive.com, and yeah, check out the podcast. I think it's super interesting if you like this episode, and you need more podcasts, I think it's probably a good fit.

1:04:56.147 --> 1:05:35.399
<v B>Cool. Yeah, I mean we get a lot of people saying, 'Hey, why don't you do more episodes?' Um, but you know, I think that there's a lot of really good producers out there creating a lot of great content, and Patrick and I also have a lot of kids, so I think we'll stick to one episode a month. And yeah, if you're interested in knowing more about really a lot of these topics that you know that we're all interested in, but especially your recursion, functional programming things like that—you know, Adam does this literally every day. He's very passionate about it, and you should check out his podcast and hit him up on

1:05:37.525 --> 1:06:00.306
<v B>Twitter. All right. So thanks a lot for coming on the show, Adam. I really appreciate it. This is an awesome episode. I think we really dove deep on functional programming. If people still have questions, don't hesitate to email us. You can also ping Adam; you can email both of us. But I think we will hopefully cleared up a lot of the mystery around functional programming because it is something that's really difficult to dive into.

1:06:00.306 --> 1:06:02.720
<v C>Yeah, this was a lot of fun. Thank you so much.

1:06:11.849 --> 1:06:42.320
<v B>the intro music is axo by binar pilot programming throwdown is distributed under a creative commons attribution share alike 2.0 license you're free to share copy distribute transmit the work to remix adapt the work but you must provide attribution uh to uh patrick and i and share alike and kind

1:06:42.320 --> 1:06:42.400
<v A>You.

