SlideShare a Scribd company logo
Design Better API, for You, for Your Friends, and for the World!
http://www.eddie.com.tw
aquarianboy@ptt
eddie@digik.com.tw
aquarianboy@plurk
eddiekao@facebook
API Design
API Design
API Design
API Design
API Design
http://en.wikipedia.org/wiki/Application_programming_interface
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
// Win32 API
ConvertSecurityDescriptorToStringSecurityDescriptor              // 51

// Cocoa Framework
NSAccessibilityLayoutPointForScreenPointParameterizedAttribute   // 62

// UIKit
delegateTitleForDeleteConfirmationButtonForRowAtIndexPath        // 57
//
gotoAndStop(); //

//
gg();          //   gg   ?
API Design
//

gAS //   gotoAndStop();
gAP //   gotoAndPlay();
API Design
// MyClass.as
public class MyClass
{
  private var strTitle:String;
  private var _price_code:int;

    public function get_price_code ():int
    {
      return _price_code;
    }

    public function setPriceCode (arg:int):void
    {
       _price_code = arg;
    }
    ..
}
㊢寫
// MyClass.as
public class MyClass                               //
{
  public static const NAME:String                  //
  private var _price:int;                          // private

    public function get_price_code():int           // function
    {
      return _price;
    }

    public function set_username(name:String):void //
    {
      var age:int = 30;                            //
    }
}
// Member.as
public class Member
{
  ...
  public function member_info():String { .... }

    public function get_member_info():String { .... }

    public function user_info():String { .... }

    public function get_user():String { .... }
    ..
}
API Design
API Design
// MyClass.as
package tw.eddie.com {
  public class MyClass
  {
    ...
    private var _title:String;        //

        public function get_price_code ():int
        {
           return _price_code;
        }
        ..
    }
}
API Design
// BookStore.as
public class BookStore
{
  ...
  public function setBookInfo (bookname:String, author:String, total_page:int,
amount:int, price:int, publish_date:String, is_available:Boolean):void
  {
      ...
  }
  ..
}
//
book = new Book("Hello AS3", 1, 320, 550, "2011/6/21");

//        ?
book = new Book();
book.name = “Hello AS3”;
book.amount = 1;
book.page = 320;
book.price = 550;
book.publish_date = “2011/6/21”
// MyClass.as
public class MyClass
{
  ...
  public function set_user (username:String = “guest”):void
  {
      ...
  }
  ..
}
//                        ?

book = new Book(“hello AS3”, true, false);

//
book = new Book(“hello AS3”, Book.IS_AVAILABLE, Book.IN_STOCK);
API Design
API Design
API Design
API Design
// BookStore.as
/**
  * BookStore    ...
  *
  *
  */
public class BookStore
{
    /**
      *                    ASDoc
      */
    public function setBookInfo(book:Book):void
    {
         ...
    }
    ..
}




                  http://livedocs.adobe.com/flex/3/html/help.html?content=asdoc_9.html
// BookStore.as
public class BookStore
{
  ...
  public function setBookInfo(book:Book):void
  {
      book.count += 1; //         1
      ...
  }
  ..
}
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
API Design
I’m Looking for
AS3/Ruby/Rails/iOS
     Developers
WorkingWithEddie@gmail.com
Thank You!
                      2011/6/21
             Kaos’ Digital Network, Ltd.
                TEL +886-2-2682-4700
No.26, Ln. 248, Junying St., Shulin Dist., New Taipei
              City 238, Taiwan (R.O.C.)



      Welcome to visit http://digik.tw for more information!

More Related Content

PDF
PuppetCamp SEA 1 - Version Control with Puppet
KEY
jQuery Awesomesauce
ZIP
Web+GISという視点から見たGISの方向性
DOCX
Karan chanana
PDF
Practica csv
PDF
与 PHP 和 Perl 使用 MySQL 数据库
PDF
Node.js - Demnächst auf einem Server in Ihrer Nähe
PuppetCamp SEA 1 - Version Control with Puppet
jQuery Awesomesauce
Web+GISという視点から見たGISの方向性
Karan chanana
Practica csv
与 PHP 和 Perl 使用 MySQL 数据库
Node.js - Demnächst auf einem Server in Ihrer Nähe

What's hot (19)

TXT
Exemple de création de base
PDF
Javascript session june 2013 (iii) jquery json
PDF
HOW TO UPLOAD AND DISPLAY IMAGE PHP HTML SQL
TXT
Declarations sample
PDF
How kris-writes-symfony-apps-london
PDF
NodeJS The edge of Reason - Lille fp#6
PDF
Migrare da symfony 1 a Symfony2
PDF
PHP and Rich Internet Applications
PDF
PHP and Rich Internet Applications
DOCX
Latihan form login
TXT
php Slideshare
PDF
6 windows-phone8-introduction-m6-slides
PDF
Make it SOLID!
PDF
Security and Mobility - WordCamp Porto 2016
DOCX
Karan - form search
PDF
Building a Mobile App with Sencha Touch
PDF
Blog Hacks 2011
PDF
Rails GUI Development with Ext JS
PDF
えっ、なにそれこわい
Exemple de création de base
Javascript session june 2013 (iii) jquery json
HOW TO UPLOAD AND DISPLAY IMAGE PHP HTML SQL
Declarations sample
How kris-writes-symfony-apps-london
NodeJS The edge of Reason - Lille fp#6
Migrare da symfony 1 a Symfony2
PHP and Rich Internet Applications
PHP and Rich Internet Applications
Latihan form login
php Slideshare
6 windows-phone8-introduction-m6-slides
Make it SOLID!
Security and Mobility - WordCamp Porto 2016
Karan - form search
Building a Mobile App with Sencha Touch
Blog Hacks 2011
Rails GUI Development with Ext JS
えっ、なにそれこわい
Ad

Viewers also liked (8)

PDF
API 文件大亂鬥 @ MOPCON 2013
PDF
PM大我們換個方式寫文件吧
PDF
REST to RESTful Web Service
PPTX
API Token 入門
PDF
Agile x API x Documentation @ NGO [[MOPCON2015]]
PDF
淺談RESTful API認證 Token機制使用經驗分享
PDF
RESTful API Design
PPTX
Scrum 路上的血與淚
API 文件大亂鬥 @ MOPCON 2013
PM大我們換個方式寫文件吧
REST to RESTful Web Service
API Token 入門
Agile x API x Documentation @ NGO [[MOPCON2015]]
淺談RESTful API認證 Token機制使用經驗分享
RESTful API Design
Scrum 路上的血與淚
Ad

Similar to API Design (20)

PDF
Bologna Developer Zone - About Kotlin
PDF
Symfony War Stories
PDF
Multilingualism makes better programmers
PDF
Arquitetando seu app Android com Jetpack
PDF
First java-server-faces-tutorial-en
PDF
Kotlin, smarter development for the jvm
PDF
Terrastore - A document database for developers
PDF
Kotlin Austin Droids April 14 2016
PDF
Your Entity, Your Code
PDF
Your Entity, Your Code
PPTX
CSharp presentation and software developement
PDF
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
PDF
Electron: From Beginner to Pro
PPTX
Academy PRO: Elasticsearch. Data management
PPTX
Chapter 2 OOP using C++ (Introduction).pptx
PDF
Arquitetando seu app Android com Jetpack
PDF
A single language for backend and frontend from AngularJS to cloud with Clau...
PDF
A single language for backend and frontend from AngularJS to cloud with Clau...
PDF
Minimizing Decision Fatigue to Improve Team Productivity
KEY
Bologna Developer Zone - About Kotlin
Symfony War Stories
Multilingualism makes better programmers
Arquitetando seu app Android com Jetpack
First java-server-faces-tutorial-en
Kotlin, smarter development for the jvm
Terrastore - A document database for developers
Kotlin Austin Droids April 14 2016
Your Entity, Your Code
Your Entity, Your Code
CSharp presentation and software developement
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
Electron: From Beginner to Pro
Academy PRO: Elasticsearch. Data management
Chapter 2 OOP using C++ (Introduction).pptx
Arquitetando seu app Android com Jetpack
A single language for backend and frontend from AngularJS to cloud with Clau...
A single language for backend and frontend from AngularJS to cloud with Clau...
Minimizing Decision Fatigue to Improve Team Productivity

More from Eddie Kao (20)

PDF
Rails girls in Taipei
PDF
Rails Girls in Taipei
PDF
Let's Learn Ruby - Basic
PDF
iOS app development and Open Source
PDF
PDF
from Ruby to Objective-C
PDF
Code Reading
PDF
CreateJS - from Flash to Javascript
PDF
May the source_be_with_you
PDF
Why I use Vim
PDF
There is something about Event
PDF
Flash Ecosystem and Open Source
PDF
Happy Programming with CoffeeScript
PDF
Ruby without rails
PDF
CoffeeScript-Ruby-Tuesday
PDF
CoffeeScript
PDF
測試
PDF
3rd AS Study Group
KEY
iOS Game Development with Cocos2d
KEY
AS3讀書會(行前準備)
Rails girls in Taipei
Rails Girls in Taipei
Let's Learn Ruby - Basic
iOS app development and Open Source
from Ruby to Objective-C
Code Reading
CreateJS - from Flash to Javascript
May the source_be_with_you
Why I use Vim
There is something about Event
Flash Ecosystem and Open Source
Happy Programming with CoffeeScript
Ruby without rails
CoffeeScript-Ruby-Tuesday
CoffeeScript
測試
3rd AS Study Group
iOS Game Development with Cocos2d
AS3讀書會(行前準備)

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
KodekX | Application Modernization Development
PPT
Teaching material agriculture food technology
Cloud computing and distributed systems.
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
Digital-Transformation-Roadmap-for-Companies.pptx
Unlocking AI with Model Context Protocol (MCP)
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
KodekX | Application Modernization Development
Teaching material agriculture food technology

API Design