Solving the expression problem using Modern Java by Richard Warburton, Raoul-gabriel Urma

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • For more info on the next Devoxx UK 👉 www.devoxx.co.uk
    Express yourself: solving the expression problem using Modern Java
    Can you believe it is Java 17 already? Another small update? Not this time, Java 9 to Java 17 has brought significant changes in how we can now write day to day Java code. Introducing, Functional Programming 2.0. In this talk, we will cover the notorious expression problem and how it can be addressed using Java’s most modern language features including switch expression, sealed classes and pattern matching. We will incrementally refactor a code written pre-Java 9, using new features and approaches whilst showing the resulting code benefits including cohesion, decoupling and readability.

ความคิดเห็น • 2

  • @acronis536
    @acronis536 2 ปีที่แล้ว

    TDD could help in cases with less compile time checking i think

  • @TJ-hs1qm
    @TJ-hs1qm 9 หลายเดือนก่อน

    "The Expression Problem is a concept in programming language design that highlights the challenge of extending a software system in two dimensions: adding new types and adding new operations over these types. The goal is to achieve extensibility without modifying existing code and while maintaining static type safety."
    en.wikipedia.org/wiki/Expression_problem
    The person at 41:32 is exactly right. Sounds like the presenters themselves didn't fully understand the Expression Problem. All they did is shift it around from OO style to FP style without solving anything.