• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The Object-Oriented Thought Process book question - Writing API

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day Matt,

If we would like to create an API for the application, what are the advice on the approach? are we suppose to focus on designing with interface prior abstract classes ?

Thanks
 
Junilu Lacar
Bartender
Pie
Posts: 7292
44
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You normally focus on specific use cases that you would like your API to be able to support. One good book on API design is "Practical API Design" by Tulach - it's a bit dated but I think the material will still be relevant.
 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Junilu!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic