Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"Programming Scala" examples

 
Burk Hufnagel
Ranch Hand
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Venkat Subramaniam
Author
Ranch Hand
Posts: 109
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 814
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic