Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Learning new APIs/classes (beginner question)

Reply
Thread Tools

Learning new APIs/classes (beginner question)

 
 
Martin Jones
Guest
Posts: n/a
 
      04-06-2012
In a nutshell: My question is: how do experienced coders learn about
external/third-party classes/APIs?

I'm teaching myself Python through a combination of Hetland's
'Beginning
Python', various online tutorials and some past experience coding
ASP/VBScript. To start to learn Python I've set myself the task of
coding a
viewer/editor for Google Contacts and Google Calendar, mainly because
I've
been experiencing some synchronisation anomalies lately. This has so
far
entailed getting into Google's Contacts API.

Although they give some examples, my searches haven't been able to
pull up
anything approaching comprehensive documentation on each class/method.

Can anyone experienced advise on how they would usually go about
learning to
use third party APIs/classes like these?

With thanks,

Martin
 
Reply With Quote
 
 
 
 
Steven D'Aprano
Guest
Posts: n/a
 
      04-07-2012
On Fri, 06 Apr 2012 13:41:23 -0700, Martin Jones wrote:

> In a nutshell: My question is: how do experienced coders learn about
> external/third-party classes/APIs?


Does it have a tutorial? Do it.

Does it have a manual, a wiki, FAQs, or other documentation? Read them.

If all else fails, what does help(external_library) say?

Are there examples you can follow? Do so.

Does it have a mailing list to ask for help? Subscribe to it.

Google for examples and sample code.

If all else fails, read the source code if it is available.

Otherwise find another library.

If you can't do that, then you're stuck with learning by trial and error.
Which is to say, mostly by error, which is a trial.


> I'm teaching myself Python through a combination of Hetland's 'Beginning
> Python', various online tutorials and some past experience coding
> ASP/VBScript. To start to learn Python I've set myself the task of
> coding a viewer/editor for Google Contacts and Google Calendar, mainly
> because I've been experiencing some synchronisation anomalies lately.
> This has so far entailed getting into Google's Contacts API.
>
> Although they give some examples, my searches haven't been able to
> pull up anything approaching comprehensive documentation on each
> class/method.


Sounds like this library is documented the same way most third party
libraries are: as an afterthought, by somebody who is so familiar with
the software that he cannot imagine why anyone might actually need
documentation.

I feel your pain.


--
Steven
 
Reply With Quote
 
 
 
 
Martin Jones
Guest
Posts: n/a
 
      04-07-2012
On Apr 7, 1:52*am, Steven D'Aprano <steve
+comp.lang.pyt...@pearwood.info> wrote:

> Sounds like this library is documented the same way most third party
> libraries are: as an afterthought, by somebody who is so familiar with
> the software that he cannot imagine why anyone might actually need
> documentation.
>
> I feel your pain.
>


Thanks Steven, I suspected this might be the case, but wasn't sure if
I was missing something obvious. Maybe I'll start on a different
project using better-documented or just the build-in libraries.

Many thanks,

Martin.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[I'm learning C]: Learning to use ucontext Andrey Popp C Programming 5 01-31-2012 01:05 AM
Javascript new-new-new-new-newbee weblinkunlimited@gmail.com Javascript 2 03-11-2008 01:15 AM
Learning C and Learning Make/Configure/Building/Linking Hal Vaughan C Programming 7 03-21-2006 05:07 PM
New Horizons Computer Learning Centers Jimt Microsoft Certification 3 02-27-2006 01:26 AM
e-learning, (collaborative learning environment) collinm Java 1 09-08-2005 09:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57