[Building Sakai] LikeService

csev csev at umich.edu
Mon Nov 22 08:20:07 PST 2010


I agree with Aaron's "nice" assessment.  Simple things are elegant.  And it serves as nice sample code for building EB-style services.

A bit of sample code showing how to use the service  in Java might be nice.  Trivial unit tests might be nice too and would suffice for the "Java sample code".

As adoption and use grows, a bit of gentle caching might be needed on the read side.   But there is a place for that and if/when it is needed it should be a simple addition.

Perhaps I am misunderstanding Aaron's suggestion as to where to home this - I don't think it belongs inside the EB code base - it would be nice to keep it separate (as it currently is) and properly connected to EB like any other service.  If EB were in kernel, this probably belongs in kernel too.

Some functionality questions:

- It seems I can like myself :)
- It seems like I can +1 myself or anyone else as many times as I like
- It would be simple to add a "dislike" column as well 

Perhaps I am not web 2.0 enough and don't realize that these features are an expected fact of life for "Like" buttons.

/Chuck

On Nov 22, 2010, at 9:17 AM, Aaron Zeckoski wrote:

> Nice. Looks like a candidate for inclusion in the core providers to me
> (with some load testing and all that good stuff).
> 
> Just my opinion on this.
> :-)
> -AZ
> 
> 
> On Mon, Nov 22, 2010 at 7:42 AM, Adrian Fish <a.fish at lancaster.ac.uk> wrote:
>> Hi All,
>> 
>> I've created a really simple service which allows logged in users to
>> vote for another Sakai user via a simple URL such as
>> http://localhost/direct/likeservice/4608f692-6064-4054-9d8f-e7ea83f8250d/addLike.
>> A users votes can be retrieved via a url such as
>> http://localhost/direct/likeservice/4608f692-6064-4054-9d8f-e7ea83f8250d/likes.
>> The idea is that with a simple bit of JS a tool can allow users to vote
>> on a piece of content's author and a author's votes can be displayed
>> against their profile.
>> 
>> Here's the source if anybody's interested ...
>> 
>> https://source.sakaiproject.org/contrib/lancaster.ac.uk/likeservice/trunk/
>> 
>> Cheers,
>> 
>> Adrian.
>> 
>> --
>> ==================================
>> Adrian Fish
>> Software Engineer
>> Centre for e-Science
>> Bowland Tower South C Floor
>> Lancaster University
>> Lancaster
>> LA1 4YW
>> email: a.fish at lancaster.ac.uk
>> 
>> http://confluence.sakaiproject.org/display/YAFT/Yaft
>> http://confluence.sakaiproject.org/display/CLOG/Home
>> http://confluence.sakaiproject.org/display/BBB/Home
>> 
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>> 
> 
> 
> 
> -- 
> Aaron Zeckoski - Software Engineer - http://tinyurl.com/azprofile
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> 
> 



More information about the sakai-dev mailing list