Главная
Study mode:
on
1
Red Hat
2
What is an API? ?
3
And why should I care?
4
Understandable Basic Principles
5
If in doubt, leave it out
6
Write meaningful Javadocs
7
Convenience methods
8
Promote fluent API
9
Use the weakest possible type also for returned value
10
Support lambdas
11
Avoid checked exceptions
12
Stay in control (loan pattern)
13
Break apart large interfaces into smaller versions
14
Be defensive with your data
15
Prefer enums to boolean parameters
16
Use meaningful return types
17
API design is an iterative process
Description:
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only! Grab it Explore the art of designing effective Java APIs in this 49-minute Devoxx conference talk. Delve into the principles and techniques for developing user-friendly APIs, examining real-world examples and standard Java libraries. Learn about key characteristics of good API design, including consistency, simplicity, and the principle of minimum surprise. Discover how to write meaningful Javadocs, create convenience methods, promote fluent APIs, and utilize appropriate return types. Gain insights on breaking down large interfaces, implementing defensive programming, and leveraging enums. Understand the importance of API design as an iterative process and its crucial role in software development and third-party interactions.

Let's Make a Contract - The Art of Designing a Java API

Devoxx
Add to list