Re: Scala and WebObjects
Re: Scala and WebObjects
- Subject: Re: Scala and WebObjects
- From: Marius Soutier <email@hidden>
- Date: Thu, 11 Nov 2010 09:44:49 +0100
Scala is not only for concurrency, it's simply a better language than Java (IMHO). I'm still not 100% convinced of Actors, and java.util.concurrent is also very good.
Ok now I have to ask it - if you don't use EOF, why use WebObjects at all? Does D2W work seamlessly with Squeryl? Do you have an example project for that?
- Marius
On 10.11.2010, at 23:41, Ravi Mendis wrote:
> Hi Marius,
>
> As mentioned in the wiki, i don't see much advantage in just using Scala as a replacement for Java (in WebObjects).
> At wowodc 10 i presented the case for Scala in concurrent WO applications.
>
> Now i've another suggestion :)
>
> One of the benefits of Scala is being able to use the new breed of SQL-like DSL languages for data access. E.g: Squeryl.
> (It's by no means the only one out there).
>
> I've just added a set of EO templates that can help migrate your EO model -> Squeryl.
> See: http://wiki.objectstyle.org/confluence/display/WO/WebObjects+and+Squeryl
>
> FYI: the templates aren't quite finished yet: i've only implemented features i'm using for my next project...
>
> Thanks,
> Ravi
>
> On 11/11/2010, at 7:09 AM, Marius Soutier wrote:
>
>> I've spent the day with Scala and D2W, after increasing Eclipse's memory to 1 GB it worked ok. I've made a small adjustment to your EO templates so the statics are defined in a trait rather than an object, e.g.
>>
>> trait EntityNameStatics {
>> val ENTITY_NAME = "EntityName"
>>
>> object Keys {
>> // Attributes
>> // Relationships
>> }
>> }
>>
>> Now the companion objects can both inherit the statics from the trait, like this:
>>
>> object base.EntityName extends EntityNameStatics
>>
>> object EntityName extends EntityNameStatics
>>
>>
>>
>> On 10.11.2010, at 12:14, Ravi Mendis wrote:
>>
>>> The scala ide for Eclipse 3.5 is much improved. Yes, it still might be a little slow, but it's tolerable...if only to be able to use the wonderful Scala tools and libraries that have started to emerge. E.g: Squeryl, ScalaTest, Specs, etc.
>>>
>>> You'll have to ask Pascal about the WOWODC 10 screencasts...
>>>
>>> On Nov 10, 2010, at 7:25 PM, Marius Soutier wrote:
>>>
>>>> Hello,
>>>>
>>>> I've been eagerly following your progress with Scala and WebObjects. I'd really love to move to Scala in my company, the sooner the better. However my biggest concern is the Eclipse plug-in, it's so slow and buggy (on a Mac at least). Do you have any suggestions for that?
>>>>
>>>> Do you have an idea when your screencast will be released?
>>>>
>>>>
>>>> Regards,
>>>> - Marius
>>>>
>>>>
>>>
>>
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden