O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

When an idea of a new API first comes up, it usually looks clean and well focused. Even the first implemented version often preserves the same qualities. But then "one-offs" and other small deviations from the main use cases become pressing, and the API starts to grow (and becomes increasingly complex and more difficult to use) as the variety of use cases increases. Life does not always comply with our vision of it. That's why any API designer at some point faces the question of how generic and flexible the API should be. A too-generic API makes it difficult to understand in terms of the specific business domain, while a very flexible API makes the implementation more complex and difficult to test, maintain, and use.

Using interfaces ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required