This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Scala and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » Scala
Bookmark ""Programming Scala" examples" Watch ""Programming Scala" examples" New topic
Author

"Programming Scala" examples

Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Venkat,
Welcome back to the Ranch!

I'm curious about the example applications in the book. Based on the table of contents it looks like they take up about two or three pages each and I wondered if any of them are "enterprise grade" (meaning they include examples of error/exception handling, logging, etc.) or if they are just meant as simple examples of the kind of things you can do in Scala.

Thanks!
Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Venkat Subramaniam
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 79
Hi Burk,

Thank you.

In the book I discuss how to handled exceptions, and the issues related
to it. I do not discuss logging in particular as I do not see anything
that needs to be discussed in particular for Scala. I do spend quite
a bit of time discussion integration with Java and unit testing (in
addition to concurrency of course), the concepts I think are very
important for developing any enterprise application on the JVM.

I do not intend the book to help develop enterprise application by
providing code that can be copied and pasted (and I don't think you
expect that either). However, I wrote the book in a way that programmers
can learn the essential concepts through the discussions and the
examples and will be able to develop their enterprise applications using
Scala.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Thanks for the reply. I'm just wondering if the book is more for someone just getting started, or includes examples showing how you'd use Scala "in real life" - meaning in a business situation. I know you can call Java objects and make use of Java libraries, but I'm wondering if we get a peek at idiomatic Scala for business apps that need authentication, auditing, etc.
Venkat Subramaniam
Author
Ranch Hand

Joined: Jan 28, 2008
Posts: 79
Nope, these are not my focus in book. Please look at the following two for details on the scope and focus:

http://www.coderanch.com/t/457957/Scala/What-s-book-place-among

http://www.coderanch.com/t/457842/Scala/Required-knowledge-read-Programming-Scala
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

This is indeed an interesting question. Irrespective of the book's content most examples on the www seem to be too easy for real world applications (not only for Scala of course). It's obvious that you should be able to do anything that would be possible with Java and more. But even as a Scala beginner I'm pretty sure you often have to change the way you think about a problem and its solution if you want to take advantage of Scala. On the other hand it's difficult to address the problems of a whole enterprise application in one book if you still want to cover different topics. Moreover it will probably take some time and experience to use Scala in practice effectively as the community is still quite small compared to the Java community.

Marco
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Venkat Subramaniam wrote:Nope, these are not my focus in book. Please look at the following two for details on the scope and focus:

http://www.coderanch.com/t/457957/Scala/What-s-book-place-among

http://www.coderanch.com/t/457842/Scala/Required-knowledge-read-Programming-Scala


OK, so this is more a "get up to speed quickly and learn the details later" kind of book. Are you writing a follow up book that covers the things needed for enterprise apps?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Programming Scala" examples
 
Similar Threads
Required knowledge to read "Programming Scala"
Programming Scala book
avoiding down cast with polymorphism
*Stateless* methods vs. functions
Best Language for Android Development