Sprinkles of Functional Programming
summary
Argues that small doses of functional style speed Rails tasks that are about transforming data, not modeling behavior, by replacing many service classes with a single data pipeline and keeping IO separate from pure functions. Uses Ruby features like then plus CSV and Excel parsing to build an importer that ships and onboards clients. Result: roughly fourfold less code, one public API instead of eight, and development time drops from about one day to about one hour.
AI-written summary · about
chapters (42)
- 0:00Introduction
- 0:58Who am I
- 1:35Roadmap
- 3:14Ruby
- 4:00ObjectOriented
- 4:15Functional Programming
- 4:32Modeling Behavior
- 4:48ObjectOriented Programming
- 5:33ObjectOriented vs Functional Programming
- 6:19ObjectOriented Cases
- 6:37Typical Cases
- 7:09Inspiration
- 7:45Recommendation
- 10:24Products Index
- 10:46Business Success
- 11:38PR
- 11:49CSV Upload
- 12:06CSV Import
- 12:46Life is Good
- 12:58CSVs
- 13:18Sales Team
- 13:54Developers Start Work
- 14:12Product Data Importer
- 14:45Product Data Formatter
- 16:16Refactoring
- 17:21Building Up Data
- 18:01Formatting Data
- 18:39New Clients
- 19:14Functional Path
- 20:07Service
- 21:18Sprinkle of Functional Programming
- 24:39Recap
- 25:25ObjectOriented Solution
- 27:17Less Maintenance
- 27:44Higher Development Velocity
- 28:28Classes
- 29:36Model Diagram
- 30:10Takeaways
- 30:46Sprinkles
- 33:00Action Item
- 33:19Resources
- 33:50Outro
related talks
26mBlending Functional and OO Programming in Ruby
44mReal-World Functional Ruby
40mMake Ruby Functional Again!
35mReal-world Functional Ruby
24mFunctional programming for fun and profit!!
26mFrom OO Patterns to Functional Programming w/o Killing Yourself
39mFunctional Architecture for the Practical Rubyist
39mFunctional Architecture for the Practical Rubyist
