decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
I don't think that's fair.. | 141 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
Definition or documentation? Neither!
Authored by: mschmitz on Friday, May 04 2012 @ 07:58 PM EDT
As a programmer, you know that FOO can do anything you want :-)

Since Rich did not specify a return type, you are even free to chose that one.

Personally, I'd go for void, and implement FOO() like this:

void FOO(int a, int b)
{
int c = a;

a = b;
b = c;
}

Kidding ..

Anyway, the point I wanted to make is:

For some methods of an API, just the list of name, return type, and arguments is
enough. The name will imply the function. Anyone can then write their own
implementation of said method (including documentation if they so desire).

For other methods, a concise description of what the method does, its eventual
side effects and constraints, will be needed in order to implement it.
In a sense, definition and documentation of the API are linked (you have to
spell out what exactly it is your method does in plain Geek, for those who don't
immediately recognize it from the name and arguments).

All that is ever needed to make use of the API (as opposed to implementing it),
is the list of name and types. That part is an abstract convention (didn't we
use to say 'calling convention' for something like this?). Claiming copyright
protection to an abstract convention doesn't seem right. Nothing fixed in any
medium (that would be implementations, or documentation).

The structure, sequence and organization of the written expression of the
concept either entirely follows that of the concept (the 'definition') or very
closely matches that of the concept (the 'documentation'). Minimal freedom of
expression. Not a lot of creativity as I understand it.

Unless 'API definition' in object oriented languages is a lot more expressive
than that. And not just because you can give your method arguments (parameters)
expressive names.

-- mschmitz

[ Reply to This | Parent | # ]

I don't think that's fair..
Authored by: rcsteiner on Friday, May 04 2012 @ 10:23 PM EDT
Hmmm. I thought it would be obvious that I was referring to the original author
of an API in my previous comment.

The author of an API writes the code, the documentation, or both. If that isn't
done, it remains in their thoughts and is not particularly useful to others.
:-)

Programmers other than the author would require some sort of description ...
like the above ... in order to use it.

Upon seeing the description by the author of the API, either in code or in
documentation, assuming that description is written in a relatively standard
manner, a competent programmer will realize what is required to use the API in
question.

Is that better? :-)

---
-Rich Steiner >>>---> Mableton, GA USA
The Theorem Theorem: If If, Then Then.

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )