On 13/06/2007, at 5:03 PM, Rudi Angela wrote:

I've been busy writing Scala versions of Didier Besset's 'Object- oriented implementation of numerical methods' and it keeps amazing me with its expressiveness. The Scala implementations of these algorithms are way shorter than the Java or even the Smalltalk versions presented in his book. (http://www.amazon.com/Object-Oriented-Implementation-Numerical- Methods-Introduction/dp/1558606793)

After the high order function support and pattern matching, the thing that I am enjoying the most is the type inference. It's one thing to not need to think about value typing all the time, but it's another thing altogether to be able to do it and still have compile time type safety, and no performance penalty.

I have considered using it with WO. Having XML built into the language makes it very suitable for writing web apps, specially servlets. But having WO's component approach available, there's no added value.

I have used the XML parsing, it really is quite excellent. But haven't really had much use for the inline XML builder support, and don't see it being of much use in WO either.

Though I've seen great benefit to using Scala when having to write complex code, like in numerical methods, my WO apps usually contain very simple code. Ninety percent of the time I'm just creating, modifying, storing or deleting records. For the typical database applications there isn't much added value to using Scala IMHO.

Agreed, in WO key value coding usually steps in to take most of the pain out of writing lots of boilerplate java code, even if you do sacrifice compile time type safety in the process. The main benefit I can see from using languages like Scala for "simple" code is that a) there is less of it, and therefore fewer places for bugs to hide, and b) it (hopefully) conveys the code's intent more clearly than would otherwise be possible with imperative languages like java.

That said however, I doubt I will use it for much other than small simple tasks for the time being.

Rudi Angela

On 13-jun-2007, at 0:41, Q wrote:

I have been tinkering with Scala (http://www.scala-lang.org) lately, and the more I use it the better it gets. In fact at this rate I might have to stop looking at it for a while, because It makes writing a lot of things in java feel like such a chore.

I haven't tried writing a basic WO app with it yet, but I have used it to write a simple backend reporting tool for a client, and it was actually quite fun. The only source of frustration was the relatively immature eclipse plugin.

Is there anyone else exploring these waters?


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan% 40gmail.com

This email sent to [EMAIL PROTECTED]



--
Seeya...Q

Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia
Ph: +61 419 729 806


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to