Skip to Content
Practical API Design
book

Practical API Design

by Jaroslav Tulach
June 2008
Intermediate to advanced
400 pages
14h 4m
English
Apress
Content preview from Practical API Design

CHAPTER 12

image

Declarative Programming

An interesting way to minimize the problems that arise with runtime aspects of an API is to eliminate the runtime completely. For lack of a better name, let’s call this declarative programming, though the term is overloaded with various meanings and it might mean different things to different people. With declarative programming, the basic idea is that users of your API don’t describe step-by-step what they want your API to do. Rather, they “declare” what they want to have happen and then rely on your API to do it when necessary.

IS THERE REALLY SUCH A THING AS DECLARATIVE PROGRAMMING?

When I first learned about ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

API Design Patterns

API Design Patterns

John J. Geewax
Hands-On RESTful API Design Patterns and Best Practices

Hands-On RESTful API Design Patterns and Best Practices

Harihara Subramanian J, Anupama Murali, Pethuru Raj
Designing Web APIs

Designing Web APIs

Brenda Jin, Saurabh Sahni, Amir Shevat

Publisher Resources

ISBN: 9781430209737Supplemental Content