Revised implementation of Strategy Pattern in Java

How Java 8 killed the Strategy Pattern

Saeed Zarinfam
ITNEXT
Published in
1 min readJul 2, 2019

--

Image by mcdonaldland.info

By introducing lambda expression in Java 8, many things have changed in Java world and now Java developers can write more concise code and also use functional patterns much easier.

I read a nice article about “How Scala killed the Strategy Pattern” by Alvin Alexander that compares an old…

--

--

A lifelong Learner, Old Programmer 👨‍💻☕️ blogger ✍️ Late bloomer 🐌 Football lover ⚽️ Father 👧