On Thu, Apr 2, 2009 at 12:48 PM, Jorge Ortiz <[email protected]> wrote:

> What about easily turning any lift app into a url shortener service?
>
> Wouldn't be too hard...


We do it in ESME.  It's 1 class (the model) and 1 object.


>
>
> Granted, some services (bit.ly) add statistics, visualization,
> conversation tracking, etc. which aren't just url shortening.
>
> --j
>
>
> On Thu, Apr 2, 2009 at 12:13 PM, Tim Perrett <[email protected]>wrote:
>
>>
>> Guys,
>>
>> I've been contemplating doing this for a while and am now finding
>> myself with a bunch of free time tomorrow and a need to write some
>> code.
>>
>> So, I want to make a widget that shortens URL's in an extendable
>> way... Im thinking of having something like:
>>
>> trait URLReductionProvider { ... }
>>
>> object TinyURL extends URLReductionProvider
>> object IsGd extends URLReductionProvider
>> object BitLy extends URLReductionProvider
>>
>> You get the general idea...
>>
>> So, im thinking of implementing the actual URL fetching stuff as a
>> partial function so that users could do:
>>
>> def reductionResult = {
>>  case Full(result) => // result is the URL, insert into database etc
>>  case _ => // something went wrong
>> }
>>
>> My question is however, if i make this actor based, could someone
>> implement it so rather than writing there URL to database in a
>> separate thread to the main one, would it be possible for them to say,
>> use a JsCmd and return that to update the browser? Im guessing not
>> unless it was a CometActor right.
>>
>> This then got me thinking, do you guys thing this is worth doing actor
>> based, or is it just ok to make a blocking call to the provider?
>> (tinyurl or is.gd etc)
>>
>> Cheers, Tim
>>
>>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to