Overview
Explore the impact of lambda expressions on traditional design patterns in this 53-minute conference talk by Venkat Subramaniam at Devoxx. Discover how lambda expressions can simplify code, reduce noise, and transform the implementation of patterns such as Strategy, Lazy Evaluation, Virtual Proxy, and Decorator. Learn to refactor code using lambda expressions, understand the benefits of lazy evaluation, and see practical examples in languages like Scala. Gain insights into composability, the Composed Method Pattern, and the Execute Around Method Pattern, ultimately enhancing your ability to write cleaner, more efficient code in the era of functional programming.
Syllabus
Introduction
Welcome
Why I hate design patterns
Lambda Expressions
Example
High signal to noise ratio
Removing fluffy code
Lambda anonymous functions
Strategy patterns
An example
Why copy and paste
Shortcut keys
Copy and paste
Guilt kicks in
Roll back the code
Refactor the code
Strategy pattern
Object creation
Scala example
Lazy
Lazy Evaluation
Virtual Proxy
Decorator Pattern
composability
print function
filter
decorators
Reduce operation
Composed Method Pattern
ExecuteAround Method Pattern
Taught by
Devoxx