Thoughts on Functional Programming Podcast by Eric Normand

Thoughts on Functional Programming Podcast by Eric Normand

lispcast.com
An off-the-cuff stream of Functional Programming ideas, skills, patterns, and news from Functional Programming expert Eric Normand..


What is an abstraction barrier?
Sep 19 • 20 min
Structure and Interpretation of Computer Programs talked about abstraction barriers as a way to hide the intricacies of data structures made out of cons cells. Is this concept still useful in a world of literal hashmaps with string keys? I say, yes, but…
In the onion architecture, how do you make business decisions that rely on information from actions?
Sep 16 • 19 min
I’ve gotten several questions about how to do X or Y in the Onion Architecture. It seems like giving the architecture a name has miscommunicated how simple it is. It’s just function calls that at some point are all calculations. In this episode, I try to…
Can you use types with Data Orientation?
Sep 12 • 13 min
Are types compatible with data orientation? The short answer is ‘yes’. Types trade freedom of movement for clarity.
What is the benefit of data orientation?
Sep 9 • 8 min
Data orientation allows freedom of movement between layers of meaning. Each interpretation adds a layer of meaning. If the data were hidden, we would not be able to freely interpret it how we want. In this episode, we explore an example of what it means…
What is Data Orientation?
Sep 5 • 13 min
We often talk about data orientation in functional programming circles. It basically means programming with data, without hiding your data. Our software is information systems, so why not treat the data in the raw? In this episode, we dive into what is…
What is a total function?
Sep 2 • 31 min
Total functions are functions that give you a valid return value for every combination of valid arguments. They never throw errors and they don’t require checks of the return value. Total functions help you write more robust code and simpler code, free…
What is a continuation?
Aug 29 • 17 min
Continuations are a cool feature you often find in functional languages. In this episode, we look at what they are, why you’re probably already using them, and the cool things you can do with them.
What kind of software is functional programming not suited for?
Aug 26 • 19 min
Functional programming cannot be suited for everything, right? Well, let’s not be so sure. Functional programming, like imperative programming and object-oriented programming, is a paradigm. It is a fundamental way to approach software. There are many…
Grokking Simplicity Launch
Aug 21 • 10 min
My new book, Grokking Simplicity, all about functional programming, is now available in early access. The first three chapters are ready to read. Go to https://lispcast.com/gs, add the book to the cart, and use discount code MLNORMAND for 50% off.
Monads in the real world
Aug 21 • 17 min
Monads are real, y’all. They are all around us. In this metaphor-free episode, I’ll share two real-world monads you interact with all the time. No burritos or space suits, I promise! Plus, we’ll see why monads are useful in Haskell.
What is the difference between parallelism and concurrency?
Aug 18 • 6 min
My favorite definitions of parallelism and concurrency come from Brian Goetz. They are not the traditional ones, which focus mostly on # of cores. In modern computing, we are sharing so many resources, parallelism and concurrency need to account for that.…
How do you develop algebraic thinking?
Aug 15 • 25 min
A few people have asked me how to develop Level 3 thinking. I’m not sure. But I’ve got some directions to try. In this episode, I go over 3 and a half ways to develop algebraic thinking.
What is an algebra?
Aug 12 • 17 min
Level 3 of functional thinking is all about algebraic thinking. But what do I mean by algebra? In this episode, I try to distill down the characteristics of an algebra and explore why algebras are worth developing.
What is a calculation?
Aug 5 • 17 min
Level 1 of functional thinking is to distinguish between actions, calculations, and data. But what is a calculation? In this episode, we go over what it is, how to recognize them, and how to implement them. By the end, you should understand why they are…
What is so great about object oriented programming?
Aug 1 • 20 min
Because I promote functional programming, people often take what I say to mean that I don’t like OO. However, I think there’s a lot of cool stuff in OO. In this episode, I go over three or four things I think OO does really well.
Why should you throw away all of your code?
Jul 31 • 7 min
You should throw away your code and try again, because it will make you a better programmer to try the same problem multiple times. Each time you can try a new style or approach to solving it. That’s how you get better.
What is Data Modeling?
Jul 29 • 10 min
Data Modeling is a common technique in functional prgramming. It means capturing the essence of the concepts of your domain, their attributes, and their relationships in data.
What is an action? (better edit)
Jul 25 • 19 min
Functional programmers divide up their code into three categories: actions, calculations, and data. Actions are everything that can have an effect on the world, or anything that can be affected. In this episode, we go deep into what it means to be an…
What is tail recursion?
Jul 21 • 15 min
Tail recursion is a kind of recursion that won’t blow the stack, so it’s just about as efficient as a while loop. Unfortunately, not all platforms support tail call removal, which is necessary for making tail recursion efficient. We talk about what it is…
What is memoization?
Jul 18 • 11 min
Memoization is a higher order function that caches another function. It can turn some slow functions into fast ones. It saves the result of a function call after the first time to the cache, so if you call the function again with the same arguments, it…
How does making something first class give you power?
Jul 15 • 9 min
Often, functionality starts off as code. It’s if statements and imperative ideas. But, over time, you notice patterns. Those patterns can be reified as data. And that gives us tremendous power. How so? We explore it in this episode.
Is there a silver bullet for software? (part 2)
Jul 10 • 12 min
We continue this exploration with the notion that maybe practices such as Agile, Design Thinking, etc., give us a means for eliminating essential complexity that we thought was necessary. Do we really need to implement everything? Maybe not.
Is there a silver bullet for software development? (part 1)
Jul 7 • 18 min
In The Mythical Man-Month, Fred Brooks argues that there is no improvement that can give us an order of magnitude increase in productivity. His main point is that most of what’s left to improve is essential complexity. But is that true? Can we throw in…
Why getters and setters are terrible
Jul 3 • 13 min
Getters and setters kick the domain modeling can down the road. They leave the real design work to some other part of the code. They don’t do enough to protect the semantic integrity of the object. They’re terrible.
Why taming complex software?
Jun 30 • 20 min
My book is called Taming Complex Software. What’s that all about? In this episode, I go into why complexity is a major problem and how functional programming can help.
3 Examples of algebraic thinking
Jun 27 • 25 min
In a recent episode, I said algebraic thinking was the third level of functional thinking. In this episode, I give some concrete examples.
What is a higher-order function?
Jun 23 • 15 min
Higher-order functions are used a lot in functional programming. They are functions that take other functions as arguments or return functions as return values, or both. You’ll probably be familiar with map, filter, and reduce, which are higher-order…
The 3 levels of functional thinking
Jun 19 • 14 min
I’ve noticed that people go through a certain journey when learning functional programming. I’ve classified it into three levels: 1) Distinction between Actions, Calculations, and Data; and learning to use them effectively 2) Higher-order thinking; and…
What is functional thinking?
Jun 16 • 11 min
My book is coming out soon in early access. It’s called ‘Taming Complex Software: A Friendly Guide to Functional Thinking’. But what is ‘functional thinking’? In this episode, I explain the term and why I’m no longer redefining ‘functional programming’.
We make information systems
Jun 12 • 11 min
I often have to remind myself that we make information systems when we are programming for a business. My natural tendency, due to years of education, is to begin by creating a simulation. But this is not what we need to do. Instead of simulating a…
How to distinguish between commutativity and associativity
Jun 9 • 18 min
You confuse them a lot, and it’s not your fault. They are similar in that they are both about order. Associativity is about the order of operations, and commutativity is about the order of arguments. We go through some examples to help clear up the…
Why side-effecting is not all bad
Jun 5 • 10 min
We run our software for its effects, so effects are necessary. We can’t write 100% pure code. But I contend that some effecting code is better than others. In other words, there is a spectrum from bad effecting code to good effecting code. Even if you…
What is an inverse, and why is it useful?
Jun 3 • 7 min
Inverses are everywhere. They let us undo an action. For instance, I can open a door and close it. Why do we want to do this? Because there are things I can do with the door open, and other things I can do with it closed. We need this same flexibility in…
What makes a repl?
May 29 • 13 min
There’s a lot of discussion on Twitter about whether Node has a repl or Python has a repl. Do they have repls? How can we tell? Well, my opinion is that what’s important is how it’s used, not a set of features.
How is Haskell faster than C?
May 26 • 14 min
Haskell is very competitive with C, and on some benchmarks, it is faster. How is that possible? With all that Haskell does on top of the raw C code, how can it possibly be faster? In this episode, I talk about two advantages of Haskell that can make it…
What is a functor?
May 22 • 15 min
Functors are an operation that has a structure preserving property. But what is that? Are these things practical? Does it have anything to do with the real world? Of course! To be useful, it must derive from real-world things we see all around us. This…
Why am I podcasting about functional programming?
May 20 • 11 min
I received a negative YouTube comment. Normally, I ignore those, but this one insulted you, my audience. So I address it. Why am I podcasting about functional programming? What teaching techniques do I employ to help people learn?
Is your layer of indirection actually useful?
May 15 • 16 min
There’s a cliche: any problem can be solved with another layer of indirection. That’s true, but does your brilliant idea for a new layer of indirection actually solve a problem? In this episode, we explore this question and develop a rule of thumb for…
What a monoid is and why monoids kick monads’ butt
May 12 • 28 min
Everyone talks about monads but monoids are where it’s at. Monoids are simple and make distributed computation a breeze. In this episode, we learn the two properties that make an operation a monoid, and how to use it do distributed computation.
How do you implement lazy evaluation?
May 8 • 12 min
Lazy evaluation is easily implemented in any language that can create first-class computations. That means functions or objects. In this episode, I explain how to implement a Delay, which is a reusable lazy component that is common in functional…
What is lazy evaluation?
May 5 • 13 min
Lazy evaluation is a common technique in functional programming for separating two concerns: how you generate a value from whether/when you actually generate it. We look at the two different kinds of laziness and the benefits it gives you.
How is recursion like a for loop?
May 1 • 10 min
People think recursion is hard but it’s no harder than a for loop. In fact, it’s got the same parts, they’re just not laid out in the same way. In this episode, we look at how you can spot those three parts in any recursive function.
Why do programmers put up with so much pain?
Apr 28 • 13 min
If you’re using a less popular language, it may seem like there is a ton of pain there. But there’s pain everywhere. Every stack has its own problems. The key is you need to pick the pain you want to live with.
Can you always find a layer of meaning in which your problem is easier?
Apr 24 • 11 min
I’ve always found switching languages to be educational. I learn a lot. It always makes me wonder what I might learn from a non-existing language that I would bring back to my favorite languages.
What is point-free style?
Apr 21 • 22 min
Point-free style is a way of defining functions with a very simple constraint: you cannot name arguments or intermediate values. How can you possibly do that? Well, with higher-order functions, of course. For instance, with function composition, you can…
What is referential transparency?
Apr 17 • 17 min
Referential transparency is a term you’ll hear a lot in functional programming. It means that an expression can be replaced by its result. That is, 5+4 can be replaced by 9, without changing the behavior of the program. You can extend the definition also…
Why you shouldn’t hide your data
Apr 14 • 34 min
In OOP, we wrap our data in an interface, which is called implementation-hiding or data-hiding. In functional programming, we don’t do that. We use our data in the nude. We pass the data around and allow the context to interpret the data as it seens fit.…
What are higher-order functions?
Apr 10 • 20 min
Higher-order functions are functions that take a function as an argument and/or return a function. We use them a lot in functional programming. They are a way to define reusable functionality, as we do with map, filter, and reduce.
What is function composition?
Apr 7 • 18 min
Function composition is taking the return value of one function and passing it as an argument to another function. It’s common enough that functional programmers have turned it into its own operation. In this episode, we go deep into why it’s important…
What does it mean for a function to have a zero?
Apr 3 • 12 min
Some functions have a special value that will stop computation. For instance, multiplication will stop if you multiply zero by anything. We can use this property to our advantage.
What is a function’s identity?
Mar 31 • 9 min
Some functions have identities, which are values that tell you where to start calculating. In this episode, we look at what identities are, some examples of them, and how you can use them in your own code. Transcript Eric Normand: Is a function’s…
Why do promises make async JavaScript better than callbacks?
Mar 28 • 12 min
Promises are more popular than ever. They make our code better than callbacks. But why? In this episode, I dive deep into why promises are better than callbacks, and it’s not just about indentation. Transcript Eric Normand: Why do Promises make async…
What are first-class functions?
Mar 24 • 15 min
First-class functions are functions that can be treated like any other value. You can pass them to functions as arguments, return them from functions, and save them in variables. In this episode, we talk about why they are important for functional…
Where to find time to learn functional programming?
Mar 20 • 20 min
It can be really hard to find time to learn a new language or new paradigm. How can you find the time you need? In this episode, I share 5 tips for setting yourself for success when you’re learning functional programming. Transcript Eric Normand: Where…
Do locks slow down your code?
Mar 17 • 21 min
Yes. Locks slow down your code. But they enable your code to be correct! It’s a tradeoff, but who would ever trade correctness for a little speed? In this episode, we look at the tradeoff, how to make locks less of a speed tradeoff, and some alternatives.…
What is idempotence?
Mar 14 • 15 min
Idempotence means duplicates don’t matter. It means you can safely retry an operation with no issues. The classic example is the elevator button: you press it twice and it does not call two elevators. We explore why we would want that property in an email…
What is commutativity and why is it so useful in distributed systems?
Mar 10 • 21 min
Commutativity is an algebraic property that means that order doesn’t matter. Because network messages arrive out of order, it’s the perfect property for distributed systems. In this episode, you’ll learn what it is (with some real world examples), why…
What is associativity and why is it useful in parallel programming?
Mar 6 • 21 min
Associativity is an algebraic property that enables us to easily break up a job into smaller jobs, do the jobs, then recombine the results. Associativity is the essence of composition. In this video, we go over what associativity is, why we want to use…
What are timelines and what do they have to do with functional programming?
Mar 3 • 25 min
Timelines are a system I developed for modeling time in a distributed system. You will find timelines whenever you have multiple machines, multiple processes, multiple threads, or multiple async callback chains. Since virtually all software is distributed…
Cheap or free functional programming for your team
Feb 27 • 21 min
Hiring an on-site trainer can be expensive. But training itself doesn’t have to be expensive. In this episode, we go over 7 ways you can start training right away without breaking your budget. Transcript Eric Normand: “How Can You Train Your Team in…
What is recursion and when should I use it?
Feb 24 • 15 min
Recursion is associated strongly with functional programming. We do use recursion more than imperative programmers do. But we also use iteration. In this episode, we talk about what recursion is, how to use it, when to use it, and when not to use it.…
What are side-effects?
Feb 20 • 7 min
In functional programming, people often use the term side-effect. But what does it mean? Side-effect is any external effect a function has besides its return value. Transcript Eric Normand: What is a side effect? Hi, my name is Eric Normand. These are my…
What are concurrency and parallelism?
Feb 17 • 10 min
What are concurrency and parallelism? What’s the difference? Concurrency is functional programming’s killer app. As we write more and more distributed systems on the web and on mobile, the sharing of resources becomes a major source of complexity in our…
What are race conditions?
Feb 13 • 11 min
What is a race condition? We look at what causes race conditions and some ways you can avoid them. Transcript Eric Normand: What is a race condition? Hi, my name is Eric Normand. These are my thoughts on Functional Programming. You should subscribe so you…
What are pure functions?
Feb 10 • 11 min
What are pure functions? I explore the definition, the term itself, and why functional programmers like pure functions. Transcript Eric Normand: What is a pure function? Hello, my name is Eric Normand. These are my thoughts on functional programming.…
How to apply the Onion Architecture
Feb 6 • 16 min
I got a lot of questions about how to apply the Onion Architecture to particular situations. In this episode, I try to answer it with a specific example. Transcript Eric Normand: I answer some tough questions about the onion architecture. Hi, my name is…
How do you create a semantic base layer?
Dec 6, 2018 • 29 min
In stratified design, we are looking for layers of meaning, each one implemented on top of the last. But how do you go about building those in an existing codebase? While it remains more of an exploration than a step-by-step method, we can still describe…
Tension between data and entity
Dec 3, 2018 • 14 min
There is always a tension in our programs between raw data and meaningful information. On the one hand, data is meaningless alone. On the other, we want to treat it as a thing with real semantics that constrain its usage. How do we live with both of these…
Is React functional programming?
Nov 29, 2018 • 17 min
Even though React modifies the DOM, it is considered functional programming. It’s not strictly functional, but it is easy to reason about because the DOM is its only output. FP concepts can help us understand React. In this episode, we explore the FP…
What is Event Sourcing?
Nov 26, 2018 • 13 min
Event Sourcing is an architectural pattern that shows up in many mature information systems. This is the fourth in my three-part architecture series. Transcript Eric Normand: What is event sourcing? Hi, my name is Eric Normand and these are my thoughts on…
Is there always a way to implement an algorithm without mutable state?
Nov 22, 2018 • 13 min
It’s tempting to use mutable state in your algorithm. It’s so convenient! And we’re so used to it, if we come from an imperative paradigm. But we must remember that there is always a way, even if it’s not immediately obvious. I go over two ways to…
What is the universal process pattern?
Nov 19, 2018 • 6 min
Part 3 of the functional architecture series. The universal process pattern is a schematic representation of software. For a software process to be useful, it needs input, it needs to calculate something from that input, and it needs to have some output…
What is the onion architecture?
Nov 15, 2018 • 13 min
Part 2 of the functional architecture series. When we’re structuring our functional software, we want to isolate the actions from the calculations. We can do that using the Onion Architecture, which has layers like an onion. The center of the onion is…
More about Stratified Design
Nov 12, 2018 • 14 min
Part 1 in the Functional architecture series. The Stratified Design, which I called “layered design” before, is a way of architecting your code as a series of layers of meaning. It’s a common way of organizing your code and structuring your application.…
Why is functional programming gaining traction? Why now?
Nov 8, 2018 • 16 min
The biggest companies in the world are investing heavily in functional programming. From Facebook building React and Reason, to Apple pivoting to Swift, to Google developing MapReduce, functional programming is gaining traction. But why? I go over four…
Some thoughts on map, filter, and reduce
Nov 5, 2018 • 13 min
Are map, filter, and reduce popular for a reason? Do these things capture some essence of iteration? Are they just better for loops? Transcript Eric Normand: What’s the deal with map, filter, and reduce? Why do we use them so much in functional…
What do functional programmers think of the class inheritance hierarchy?
Nov 1, 2018 • 9 min
When a functional programmers looks at the typical OOP examples that show the inheritance hierarchy, they see something weird: why is one possible field plucked out to become the class? And why make it static? Transcript Eric Normand: How does a…
Why do functional programmers focus on time?
Oct 29, 2018 • 18 min
It turns out that in distributed and parallel systems, time plays a huge role. I think that’s why fp is booming these days: all web sites are distributed systems. And web developers are facing all the irreducible problems of distributed systems, and…
What is “to reify” in software?
Oct 25, 2018 • 6 min
“To reify” means “to make real”. It’s an old concept from philosophy. When you name a concept, you can start talking about it. We do something similar in programming. When you take a concept and make it first class, you can begin to manipulate it with the…
Why do functional programmers model things as data?
Oct 22, 2018 • 14 min
Functional programmers tend to prefer pure, immutable data to represent their domain. We talk about many of the benefits of such an approach. But we focus on one in particular: that good data representations can reduce complexity by reducing the number of…
Sources of complexity in software
Oct 18, 2018 • 14 min
There are two sources of complexity in software: the complexity inherent in the domain (essential complexity) and the complexity we add as programmers due to the platform or due to bad programming practices (accidental complexity). Transcript Eric…
How do we represent relationships in functional programming?
Oct 15, 2018 • 15 min
Functional programmers tend to model important relationships using data, while OO programmers tend to represent them with references. Transcript Eric Normand: How do we represent relationships in functional programming? Hi, my name is Eric Normand. These…
Single Responsibility Principle for Functional Programming
Oct 11, 2018 • 10 min
How do functional programmers use the Single Responsibility Principle? Transcript Eric Normand: How do functional programmers think about the single responsibility principle? Hi, my name is Eric Normand. These are my thoughts on functional programming.…
How is a book a monad?
Oct 8, 2018 • 8 min
This ain’t no “a monad is a burrito” talk. This is a real-world monad, found in the wild. We look at how reading a book is monadic. It’s what lets you see a list of lines of words as a single stream of words. Transcript Eric Normand: How is a book a…
Layered design in functional programming
Oct 4, 2018 • 6 min
Functional programmers often talk about creating layered designs, where each layer represents a coherent level of abstraction. It’s a way to organize your code. Transcript Eric Normand: What do functional programmers mean when we talk about a layered…
Keeping functional code organized
Oct 1, 2018 • 8 min
People ask me how to keep functional code organized. It’s a good question but my answer is so simple, it feels kind of silly saying it: I keep everything in one file, and split it up as it grows. Transcript Eric Normand: How do you keep functional code…
What is software design?
Sep 27, 2018 • 11 min
Does the term “design” make sense in the context of code? I discuss Sandi Metz’s definition from her book Practical Object Oriented Design in Ruby. Transcript Eric Normand: What is software design? Hi, my name is Eric Normand. These are my thoughts on…
How to create a habit of reuse
Sep 24, 2018 • 11 min
In OO languages like Java, people tend to make new classes more than they reuse existing ones. In Clojure and other FP languages, we tend more on the side of reuse. How do we develop that habit? Transcript Eric Normand: How do you create a habit of reuse…
The easiest way to make your existing code more functional
Sep 20, 2018 • 4 min
What is the easiest way to make an existing functions more functional? It’s quite a simple technique and you can apply it today. Transcript Eric Normand: What is the easiest way to get started in functional programming and to make your existing code just…
How does FP achieve reuse?
Sep 17, 2018 • 9 min
Functional programming gets its reuse by creating small components that are very well-defined. Small means they’re probably generally useful (like lists). Well-defined means they are easy to build on top of. Transcript Eric Normand: How does functional…
Why are actions hard to test by definition?
Sep 13, 2018 • 10 min
Functional programming divides the world into actions, calculations, and data. Actions are hard to test by definition, and we explore why. Transcript Eric Normand: Why are actions hard to test by definition? Hi, my name is Eric Normand. These are my…
How do things compose across domains?
Sep 10, 2018 • 8 min
A few episodes ago I talked about how things compose. But I didn’t get into how things compose across domains. For instance, how do actions compose with calculations? Let’s get into that, and what it reveals about our work as functional programmers.…
Is functional programming declarative?
Sep 6, 2018 • 16 min
People often say that functional programming is a “declarative paradigm”. I push back against that categorization. I simply think the word is mostly meaningless. Transcript Eric Normand: Is functional programming declarative? Hi, my name is Eric Normand.…
How can you work with a JSON value if you know nothing about it?
Sep 3, 2018 • 16 min
I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that, I often get this question “how can you work with a JSON value if you know nothing about it?” The question is…
Is The Little Typer the static typing book I’ve been waiting for?
Aug 30, 2018 • 11 min
Dan Friedman’s The Little Typer is coming out in September. I’m very excited about this book. It’s about dependent types, and it claims to “demonstrate the most beautiful aspects”. I can’t wait! Transcript Eric Normand: Is “The Little Typer” the…
Something I missed in Rich Hickey’s last keynote (Clojure/conj 2017)
Aug 27, 2018 • 11 min
I wrote my interpretation of Rich Hickey’s keynote. I called it “Clojure vs the Static Typing World”. However, I missed something very big. I missed that he talked about how common it was to have lots of sub-solutions and partial data. I expand on that…
Are categories Design Patterns?
Aug 23, 2018 • 10 min
People often ask ‘what are the design patterns of functional programming?’ A common answer is that categories from category theory, like monads and functors, are the design patterns. But is that true? I explore the consequences of that answer. Transcript…
Why is making something first-class the key to expressivity?
Aug 20, 2018 • 8 min
People often say that functional programming is more expressive. But how does FP achieve that? The key is by making things first-class. Transcript Eric Normand: Why is making something first class the key to expressivity? Hi, my name is Eric Normand.…
How can pure functions represent state change?
Aug 16, 2018 • 10 min
Pure functions have no effect besides returning an immutable value. If that’s true, then how can we use them to represent changing state? Transcript Eric Normand: If our functions are pure, meaning they don’t change anything outside of their scope, then…
What is callback hell?
Aug 13, 2018 • 8 min
JavaScript programmers talk a lot about callback hell. In this episode, we look at the phenomenon from a functional programming perspective. Transcript Eric Normand: What exactly is Callback Hell? Hi, my name is Eric Normand. These are my thoughts on…
How is a cook like functional programming?
Aug 9, 2018 • 4 min
We look at a metaphor to explain the three domains in functional programming: actions, calculations, and data. I hope the metaphor makes some things clearer and can help people explain fp better to others. Transcript Eric Normand: How is a cook like…
What is the primary superpower of functional programmers?
Aug 6, 2018 • 5 min
Is there something that functional programmers do that, without that, you couldn’t really call them a functional programmer? Is there a power that all other powers are dependent on? Transcript Eric Normand: What is the primary superpower of the functional…
Does functional programming have an answer for everything?
Aug 2, 2018 • 4 min
Some might say that functional programming has the answers to solve the problems of concurrent, parallel, and distributed systems. But is that true? We explore what FP has to offer. Transcript Eric Normand: Does FP have the answer to everything? Hello, my…
What does it mean to compose in functional programming?
Jul 30, 2018 • 7 min
We talk a lot about composition, but what does it mean? Each domain (action, calculation, data) has its own way to compose. In this quick episode, I explain each one. Transcript Eric Normand: What do we mean when we talk about composition about composing…
Reduce complexity at every step
Jul 26, 2018 • 16 min
Postel’s Law states that a program should be liberal in what it accepts and strict in what it sends. What does this have to do with functional programming? How can this help us reduce complexity? Transcript Eric Normand: Postel’s Law states that a program…
Why is Functional Programming more expressive?
Jul 23, 2018 • 5 min
I explore the idea that Functional Programming is more expressive than Procedural Programming (and why it is) using a metaphor of a pizza master. Transcript Eric Normand: Why is functional programming more expressive than procedural programming? Hi, my…
What is Immutability?
Jul 19, 2018 • 12 min
Functional Programmers will talk about immutable values. What do they mean? How can you write software where none of the values change? Transcript Eric Normand: What do we mean when functional programmers talk about immutability? Do things really have to…
What does it mean for programs to be built using “whole values”?
Jul 16, 2018 • 22 min
John Hughes, FP researcher extraordinaire, says Whole Values is one of the principles of Functional Programming. But what does he mean? We explore this important concept. Transcript Eric Normand: One of John Hughes’s principles of functional programming…
How is Functional Programming like grocery shopping?
Jul 12, 2018 • 19 min
Our understanding of the real world has to be applicable to the software world. Our programming paradigms need to correspond to our intuitions of the real world. Transcript Eric Normand: “How is functional programming like grocery shopping?” Hello, my…
Divide and conquer algorithms
Jul 9, 2018 • 11 min
The divide and conquer pattern is a widely used functional programming pattern. It lets you turn potentially hard problems into trivial problems and then recombine the answers. Transcript Eric Normand: What is the Divide and Conquer pattern? Hello. My…
The #3 most important idea in Computer Science
Jul 5, 2018 • 5 min
Well, this one is probably the most controversial. But I think the #3 most important idea has something to do with the problem of exponential growth of the number of possible states we can represent as we add bits to our system. Transcript Eric Normand:…
The #2 most important idea in Computer Science
Jul 2, 2018 • 7 min
In my opinion, the #2 most important idea is something that came directly out of computing. But I’m not so sure. Do you know? Let me know, too! Transcript Eric Normand: What is the second most important idea in Computer Science? Hello, my name is Eric…
What is the business value of Clojure?
Jun 28, 2018 • 13 min
Is there some reason a business would choose Clojure over other languages? Let’s find out! Transcript Eric Normand: What is the business value of Clojure? Hello, my name is Eric Normand. These are my thoughts on functional programming. I was watching a…
The #1 Most Important idea in Computer Science
Jun 25, 2018 • 12 min
The idea of the Universal Turing Machine is incredibly important. But does your language support both properties? Transcript Eric Normand: What is the number one most important idea in computer science? Hello, my name is Eric Normand. These are my…
Is Smalltalk a Functional language? Is Lisp Object-Oriented?
Jun 21, 2018 • 5 min
Alan Kay says there are only 2 Object Oriented languages that he knows of: Smalltalk and Lisp. The deeper I go into the history of Smalltalk, the more functional Smalltalk looks. Transcript Eric Normand: Hi. My name is Eric Normand. These are my thoughts…
Why do we need a Theory of Functional Programming?
Jun 18, 2018 • 11 min
Though I have gotten good reception for the theory in general, a few people have asked me why we need a theory. More people have told me I’m complicating Functional Programming, which should be a simple idea. Transcript Eric Normand: Why do we need a…
My big beef with refactoring
Jun 14, 2018 • 19 min
I love refactoring. It’s therapeutic. It helps productivity. But refactoring is not enough to write good software. We can’t just write it so it works then clean it up. In this episode, I explain why. Transcript Eric Normand: Is refactoring enough? Can we…
Build your Core Abstraction
Jun 11, 2018 • 12 min
With limited development time, where should you focus your efforts? You should build something timeless at the center of you application to create a strong foundation to build on top of. I call that you Core Abstraction. Transcript Eric Normand: If we…
Focus on composition first
Jun 7, 2018 • 16 min
Where should we start when we are designing out data structures–especially the data that we expect to last a long time. The answer is in the composition operations. Transcript Eric Normand: What is the type of operation that you should focus on first when…
Build an interface around data
Jun 4, 2018 • 14 min
Clojure programmers often complain about data structures getting unwieldy and hard to understand. How can we prevent this? Transcript Eric Normand: In Clojure and in other languages we often have this problem of unwieldy data structures. They’re deeply…
Focus on the data first
May 31, 2018 • 13 min
What should we design first to make sure our software will last without having to constantly rework our code? We should focus on the data first because it is the most timeless. Transcript Eric Normand: How do we ensure that when we write software it will…
How variants can reduce complexity
May 28, 2018 • 16 min
If we don’t limit it, complexity will get out of hand. One way to limit complexity is by collapsing the number of possible states down to a few known states that we know how to handle. Transcript Eric Normand: So if we’ve got this exploding multiplicative…
Why are corner cases the devil? 😈
May 24, 2018 • 9 min
Corner cases make for complex code. They multiply with each other. And as they multiply, they reduce the effectiveness of each new line of code. Transcript Eric Normand: Why are corner cases the devil? My name is Eric Normand, and these are my thoughts on…
What will increase your programming productivity the most?
May 21, 2018 • 10 min
Lisps have traditionally been highly interactive. This allowed AI researchers and language developers to iterate quickly and learn about what works and what doesn’t. How can you tap into this in your workflow? Transcript Eric Normand: What is the single…
A cool Functional Programming pattern. Do you know what to call it?
May 17, 2018 • 19 min
I use this pattern all the time when I’m programming, and I don’t know if it has a name. It involves lifting a value into a new space, solving a problem with it, then lowering it back down. Transcript Hello! My name is Eric Normand. These are my thoughts…
Can you do Functional Programming in any language?
May 14, 2018 • 18 min
Can you do functional programming in any language? Is it possible to do functional programming in C, in Java, in assembly, in Ruby, or do you need a functional language? What is a functional language anyway? Transcript Can you do functional programming in…
What does it mean for Actions to be first-class?
May 10, 2018 • 19 min
In Functional Programming, everything needs to be first class? But what does that mean? And why is it important? I discuss the idea of composing Actions and Calculations dynamically. Why does everything in functional programming need to be first-class?…
Should we waste memory?
May 7, 2018 • 15 min
We have so much memory now, compared to the 1970s, that it often seems like we have memory to burn. I misspoke in a previous episode where I made it seem like I’m in favor of wasting memory. But what did I mean instead? Do I believe that we should be…
Is FP just programming with pure functions?
May 3, 2018 • 10 min
As I develop and expound this theory, it may seem to be too complicated. Isn’t functional programming just programming with pure functions? Why make this more complicated than that? We talk about my reasons and my goals for the theory. Transcript Eric…
The magical leverage of languages
Apr 30, 2018 • 13 min
If I write a straightforward solution to a problem in Clojure, it might take me a thousand lines of code to solve it. To handle all the corner cases and everything, I got a thousand lines of code. However, if I take this other approach where it’s much…
Algebraic Properties and Composition
Apr 26, 2018 • 10 min
In school, we learn about a few algebraic properties. These apply very well in functional programming because their expression is so simple, their definitions are so simple and they really focus on how things compose. Transcript Hello, my name is Eric…
Bottom up vs Top Down Programming
Apr 23, 2018 • 11 min
I think the real trick to all of that is always think about the data as being forever. One thing that we often do when we’re programming is we want things to be a little bit more concrete. Transcript Eric Normand: Hello. My name is Eric Normand, and these…
What a Clojure Web Framework might look like
Apr 19, 2018 • 22 min
One of the questions that came up a couple times was what is a Web framework? What does that even mean? I don’t want to get into philosophical discussion about what a framework is. Is it a library or framework or any of those kinds of questions. I’ll tell…
A Theory of Functional Programming 0006
Apr 16, 2018 • 20 min
What I want to talk about is this issue of what is an action and what is a calculation in terms of timeliness, because we know that deep down in the computer, everything is an action. Every operation depends on what is that particular locations in memory…
What Clojure needs to grow — a boring web framework and boring data science
Apr 12, 2018 • 20 min
I think a lot about what Clojure needs. Is there something that is sort of the bottleneck for growth? People talk about different things as their hypotheses for what would make it grow. I think that what Clojure needs — I’ll talk about my hypotheses — I…
Programming is a pop culture and what we should do about it
Apr 9, 2018 • 13 min
I want to talk about how programming is a pop culture. It’s true, programming is a pop culture. There are big trends, fads, new frameworks coming out all the time. It’s all about attention and getting mind share and people watching your media about what…
A Theory of Functional Programming 0005
Apr 5, 2018 • 18 min
There are different patterns that we use as functional programmers to reduce the possible states so that it becomes easier to reason about. I think that this is something that we should talk about a little bit more, because it’s actually something that…
A Theory of Functional Programming 0004
Apr 2, 2018 • 36 min
Today, we’re going to be talking actions. Now, as counter-intuitive as it may be, functional programming has more to say about actions than it does about data and calculations. At least, more interesting stuff to say. Transcript Eric Normand: Hello, my…
A Theory of Functional Programming 0003
Mar 29, 2018 • 29 min
Transcript Eric Normand: All right, this is my attempt at writing a book. If you haven’t joined me before, my name is Eric Normand. I’m writing a book called “A Theory of Functional Programming.” The industry needs a good definition of functional…
A Theory of Functional Programming 0002
Mar 28, 2018 • 36 min
Transcript …there. How are you doing? All right. I am talking about, “A Theory of Functional Programming,” which is a book that I’m working on, and this is actually me working on it right now. I am going to talk about the topic, and hopefully, the…
A Theory of Functional Programming 0001
Mar 2, 2018 • 35 min
Transcript OK. I’m trying this out. I’m writing a book. I’m going to move. I’m writing a book. I think I’m going to call it, “A Theory of Functional Programming.” Let me explain. Here is the reasoning. That’s bad lighting hold on. I’ll explain what I’m…