Search the web
Sign In
New User? Sign Up
wmlprogramming · WML,XHTML,WURFL & Mobile-related stuff
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Is WUFL getting too big for old API   Message List  
Reply | Forward Message #27489 of 31605 |
Re: [wmlprogramming] Re: A more OO WURFL API? (was: Is WUFL getting too big for old API)

Michael Kaye wrote:
> +1
>
> Has the new API lost all the static methods that meant I had to rewrite
> the old API? And can I second Jose's statement on wiring spring beans up
> and requiring concrete implementations -- It's entirely the Wrong Way to
> do any of it.
>
The code will be much more "interfacy" than what you have seen so far
> If the new code is nearly ready, can we also check that the licence is
> one that's freely contributable to, and freely modifiable, and so avoid
> similar issues to the ones we had trying to release my changes into the
> main source repository last time?
>
The new license will be GPL, which means that, if you decide to
redistribute a modified version, you must make your changes available
under GPL.
As far as contributing to the code goes, all ideas and suggestions will
be welcome, but I want to retain the complete copyright of the complete
code, so I won't need to go and look for anyone's approval in case I
want to provide the code to someone else under a different license.
The new API is a total rewrite of the old API.

Luca

> Michael
>
> Jose Alberto Fernandez wrote:
>
>> Hi Luca,
>>
>> I indeed like elegance, but only if it brings future flexibility :)
>>
>> My main issue with the old WURFL and with the version of the new I saw
>> is the lack of the implementation hidding principle in the API. In the
>> new version, the object types to be injected by spring are define to
>> be concrete classes and not interfaces. What that means is that there
>> is no way to, for example, have different implementations or
>> strategies available.
>>
>> It may be interesting from some sites to, for example, load
>> definitions lazily. You have a server with the full WURFL and you have
>> your actual AppServers loading from it only the definitions they need.
>> You could easily hide such setting if the API were based on interfaces.
>>
>> Now, you ask, why do you need to hide this? Well I use WALL, and I do
>> not want to change WALL to understand different strategies. If WALL
>> where only aware of interfaces, one could replace implementations in
>> Spring and have different strategies available.
>>
>> BTW, this is why I mentioned "Berlin-WALL" on some message, the idea
>> of having a version of WALL that uses the DDR API. Not necessarily
>> written by your team, but with the same idea of simply being a TAG
>> library (as oppose to some larger environment like MyMobileWeb
>> requiring pre-compilation and such).
>>
>> The more alternatives that we can plug and play the better for the
>> ecology.
>>
>> Jose Alberto
>>
>> --- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
>>
>>> So, I and the WURFL API programmers have been doing some thinking about
>>> making the new Java API more Object-Oriented.
>>> (as an aside, are are implementing SAX, which, according to preliminary
>>> tests, seems to save space and time).
>>>
>>> One of the problems when talking with Java good programmers, is that
>>> elegance and OO quickly becomes a divine property all by itself, weeks
>>> go by and still no actual code is released. But I digress....
>>>
>>> Back to the point if the new API should be more OO, I am a bit
>>> perplexed. On one hand, I understand the point of having something more
>>> OO which is easily pluggable with Spring. On the other hand, I think
>>> that compatibility with the old API should also be maintained to some
>>> extent. After all, I don't remember anyone who had a problem
>>> understanding UAMAnager and CapabilityMatrix, and integrating them with
>>> their application...
>>>
>>> Anyway, what's people's opinion about this matter? should backward
>>> compatibility be preserved? or do you want to deal with a Device object
>>> that encapsulates all knowledge of capabilities?
>>>
>>> Thank you
>>>
>>> Luca
>>>
>>> Jose Alberto Fernandez wrote:
>>>
>>>> Another point here is whether the API should be used based on an
>>>> interface or a fixed concrete implementation. Maybe I am too OO, but
>>>> why does the new API returns Strings for representing the device? Why
>>>> not an object encapsulating the device definition.
>>>>
>>>> interface DeviceDefinition {...}
>>>>
>>>> DeviceDefinition d = WurflSupport.getDeviceFromUALoose(request);
>>>>
>>>> String cX = d.getCapability("X");
>>>>
>>>> String markup = d.getWallMarkup();
>>>>
>>>> String mimeType = d.getMimeType();
>>>>
>>>> You get the idea. The change is minimal in principle, but it would
>>>> allow people to do many things without breaking the API to WALL or
>>>> other component using WURFL.
>>>>
>>>> Using Spring, one could change the implementation of DeviceDefinition
>>>> so as to extend it with additional functionality specific to a project
>>>> or having a lazier implementation that uses a secondary cache.
>>>>
>>>> I guess WurflSupport could also be an interface that can be injected
>>>> using Spring. That way one can have remote Wurfl services, caches,
>>>> Terracotta able implementations, Tera-implementations, you name it.
>>>> And the rest of the code would not even notice.
>>>>
>>>>
>>
>>
>
>
>




Tue Apr 15, 2008 9:56 pm

luca_passani
Offline Offline
Send Email Send Email

Forward
Message #27489 of 31605 |
Expand Messages Author Sort by Date

+1 Has the new API lost all the static methods that meant I had to rewrite the old API? And can I second Jose's statement on wiring spring beans up and...
Michael Kaye
michael@...
Send Email
Apr 15, 2008
9:22 pm

... The code will be much more "interfacy" than what you have seen so far ... The new license will be GPL, which means that, if you decide to redistribute a...
Luca Passani
luca_passani
Offline Send Email
Apr 15, 2008
9:56 pm

Hi Luca, Would it be possible for the License (or one of the available licenses ) to be at least LGPL, Apache or something of the sort? As I understand the...
Jose Alberto Fernandez
j_a_fernandez
Online Now Send Email
Apr 16, 2008
12:29 pm

Luca, Jose, My understanding of Java + GPL is that if you use any GPL ... your whole application has to be released under GPL. You can keep it proprietary if...
Vjekoslav Nesek
vnesek
Offline Send Email
Apr 16, 2008
1:04 pm

People, I am still defining the details around the licensing, so discussing is OK. Before you say anything, though, consider the following: - GPL is by far the...
Luca Passani
luca_passani
Offline Send Email
Apr 16, 2008
3:12 pm

I suppose it will depend on how people will use your code, but if they make your API part of a bigger application they might have to open-source the...
Andrea Trasatti
mith_y
Online Now Send Email
Apr 16, 2008
4:36 pm

... No. They won't. You need to release your code as GPL only if you redistribute your application. MySQL is distributed under GPL and this has not prevented...
Luca Passani
luca_passani
Offline Send Email
Apr 16, 2008
5:18 pm

... Luca, MySQL is rarely used in embedded mode. As it's a server that communicates with a client - application GPL viral rules doesn't apply to it. WURFL will...
Vjekoslav Nesek
vnesek
Offline Send Email
Apr 16, 2008
7:00 pm

Luca, The case of something like mySQL is quite different. For starts people do not really code using the "mySql API" or using the mySQL libraries. They...
Jose Alberto Fernandez
j_a_fernandez
Online Now Send Email
Apr 16, 2008
7:25 pm

Jose, Vjekoslav here are some counter objections: - it is not true that, with GPL, you are required to distribute your code. This is clearly specified here: ...
Luca Passani
luca_passani
Offline Send Email
Apr 16, 2008
11:03 pm

Luca, I do not want to get embroiled on this. After all it is your (or your company) intellectual property and you are entitled to decide what you want to do...
Jose Alberto Fernandez
j_a_fernandez
Online Now Send Email
Apr 17, 2008
12:46 pm

... I don't want and I will NOT go after this case. In fact, if there was an exception that I could add to the GPL to explicitly allow this case, I would do...
Luca Passani
luca_passani
Offline Send Email
Apr 17, 2008
6:41 pm

I'd like to second Jose's concerns here. My company uses a version of the Wurfl Java API that we have extensively modified as part of a Java server product. If...
Gail Rahn Frederick
screaming_geek
Offline Send Email
Apr 17, 2008
6:43 pm

Gail, you are getting quite a few things wrong. First, the current (old) version of the API has been released as MPL, and that license cannot be changed into...
Luca Passani
luca_passani
Offline Send Email
Apr 17, 2008
7:12 pm

Thanks for your response, and yes, I do read your posts... In your "equal or better value to the Wurfl community" paragraph, you mention that commercial...
Gail Rahn Frederick
screaming_geek
Offline Send Email
Apr 17, 2008
8:50 pm

... No, forking is not my intention. The WURFL repository will be the same for everyone. There will be no separate commercial repository. Luca...
passani@...
luca_passani
Offline Send Email
Apr 17, 2008
9:10 pm

"...This will be possible because the companies who want better service will be able to get it by paying for it. Not only better APIs but also better device...
Alejandro Guerrieri
alejandro_gu...
Offline Send Email
Apr 17, 2008
9:25 pm

... you will know more when the commercial offering is ready. As everyone who has been on this list for a while knows, I created WURFL as a collaborative...
Luca Passani
luca_passani
Offline Send Email
Apr 17, 2008
10:18 pm

Example: You pay me $xxxx.xx and I test every US T-Mobile device and contribute my findings to the WURFL. Everyone has access to that data, but without you...
Steve Kamerman
steve_bond_k...
Offline Send Email
Apr 17, 2008
10:07 pm

... No comment :) Luca...
Luca Passani
luca_passani
Offline Send Email
Apr 17, 2008
10:19 pm

I hope so! "Legacy" is not exactly how I picture the WURFL project ;) Steve Kamerman From: wmlprogramming@yahoogroups.com ...
Steve Kamerman
steve_bond_k...
Offline Send Email
Apr 15, 2008
11:25 am

Andrea, do you really think a remote webservice API is a good solution for a high traffic site? Do the implementations you mentioned maintain a local cache to...
Steve Kamerman
steve_bond_k...
Offline Send Email
Apr 16, 2008
5:54 pm

Steve, I'm surprised by your questions. If you talk about the W3C Simple API, the webservice is an optional implementation, so it's not required, but I think...
Andrea Trasatti
mith_y
Online Now Send Email
Apr 16, 2008
9:00 pm

Oh, ok - sorry for my misunderstanding Andrea! From: wmlprogramming@yahoogroups.com [mailto:wmlprogramming@yahoogroups.com] On Behalf Of Andrea Trasatti Sent:...
Steve Kamerman
steve_bond_k...
Offline Send Email
Apr 17, 2008
9:58 pm

... for a high traffic site? Do the implementations you mentioned maintain a local cache to prevent duplicate queries to the DeviceAtlas server? Speaking for...
James Pearce
kuriuskat2001
Offline Send Email
Apr 16, 2008
9:52 pm

James, Andrea, I see that you make your money from the syndication to the data feed. Fair enough, but on the discussion about licensing, what licencing terms...
Jose Alberto Fernandez
j_a_fernandez
Online Now Send Email
Apr 17, 2008
12:58 pm

... Both are covered with a proprietary licence, at this time. So no modification is allowed, but of course you are allowed to embed the API in your software...
Andrea Trasatti
mith_y
Online Now Send Email
Apr 17, 2008
1:22 pm
 First  |  |  Next > Last 
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help