The Eric Normand Podcast

3 Examples of algebraic thinking

4 snips
Jun 27, 2019
Dive into the world of algebraic thinking and its vital role in functional programming. Discover how video editing can be approached through algebraic eyes. Uncover the magic of parser combinators as a tool for structuring data processing. Finally, explore the intricacies of asynchronous values and how they contribute to better decision-making in coding. The discussion emphasizes the beauty of simplicity and the power of whole values in creating clarity.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Video Editing Algebra

  • Imagine a video editor where you represent videos in memory before rendering.
  • This representation uses an algebra of clips, sequences, and overlays.
ANECDOTE

Parser Combinators

  • Parser combinators define parsers in terms of other parsers, starting with primitives.
  • These parsers use sequence and alternative operations, similar to video editing.
ANECDOTE

Asynchronous Value State Machine

  • Model asynchronous values from a server as a state machine.
  • Consider various states and events, like loading, success, failure, and retry.
Get the Snipd Podcast app to discover more snips from this episode
Get the app