The Eric Normand Podcast

Why does stratified design work?

Nov 4, 2019
Dive into the fascinating world of stratified design in programming. Discover how solving general cases can simplify complex tasks and boost efficiency. The discussion on layered abstraction reveals its power, as exemplified by a to-do list implementation. You'll also learn about the benefits of multi-maps and the nuances of functional programming, making complex structures more accessible. Strap in for insightful examples and a fresh perspective on programming frameworks!
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ANECDOTE

To-Do List Example

  • In Elixir in Action, a to-do list is built upon a multi-map, a hash map extension.
  • This exemplifies stratified design, building specific code (to-do list) on top of more general code (multi-map).
INSIGHT

General vs. Specific Solutions

  • Writing code in layers, starting with general solutions, is often easier than building specific solutions directly.
  • General solutions allow for abstraction, ignoring details, making them simpler to manage mentally.
ANECDOTE

SICP Image Drawing System

  • Structure and Interpretation of Computer Programs presents a system for drawing and composing images, including MC Escher-style pictures.
  • This system demonstrates the power of building up layers of simple operations.
Get the Snipd Podcast app to discover more snips from this episode
Get the app