[RPS] get_persons_entries Questions Raised

pat eyler pat.eyler at gmail.com
Fri Jul 1 17:34:24 EDT 2005


On 7/1/05, Daniel Nugent <nugend at gmail.com> wrote:
> It sort of seems to me (having really gotten around to looking at the
> r43 code and the 43 Things API doc) that the Results object should be
> sort of an intermediary array that provides dynamic access to the 43
> Things object pagination.  The (possibly) tricky part might be
> figuring out how to make this dynamic array fill itself with the
> appropriate object type depending on the API responses.  Of course, if
> we're only creating these arrays from within methods we call, that's a
> lot more trivial.
> 
> As for the name, I *think* R43Result is more Ruby-like since it
> follows the Camel Case for Classes rule.  It's just that the whole
> first 4 letters being in caps is a little weird.

It *is* wierd.  The API refers to the blob as a feed, but I don't tlike the
terminalogy because it feels too much like atom/rss.

> 
> I'd also like to make a suggestion about method and class
> organization: It might be a good idea to add aliases to the different
> objects for some of the API methods that are closely tied to them.
> For example, it would seem natural to be able to do
> 
> foo = Person.new(id_that_we_know)
> foo.get_entries

I think this makes sense, but I'd like to get the structure and
initial methods done first.

> 
> If it's alright, I'm going to take a crack at building that dynamic
> array class this weekend unless there's another area you guys would
> like me to put a little work into.
> 

How comfortable do you feel working with the code?  If you're 
comfortable really playing with things, You might want to try working
on a couple of the unimplemented methods so that we can get a better
feel for how we should extract the feed/result object.

I think trying to build too much more on the actual feed/result won't
do too much good until we sort it out.




-- 
thanks,
-pate
-------------------------
We are often unable to tell people what they need to know, because 
they want to know something else, and would therefore only 
misunderstand what we said
- the Raven   (George MacDonald, Lilith)



More information about the Therps-discuss mailing list