Effective Scala .. with the same level of depth and insight as Josh Bloch's Effective Java ..
--On Mon, Jul 18, 2011 at 8:57 PM, Yuvi Masory <yma...@gmail.com> wrote:
Hi everyone,I've exchanged a few emails with Manning. They are interested to know what subjects the community is interested in having Scala books written on.For example, would a Scala cookbook-style book be good? One on Akka? Etc.Please add your suggestions. Since this is being discussed publicly all publishers will benefit equally from your answers.I'd personally love a full book on Akka.
Yuvi
Debasish Ghosh
http://manning.com/ghosh
Twttr: @debasishg
Blog: http://debasishg.blogspot.com
Code: http://github.com/debasishg
+1 on an Akka book, as well as Debasish's idea for "Effective Scala".
Carl-Eric
On 19/07/11 01:55, Durgesh Mankekar wrote:
> 1. Functional programming in Scala
Hang in there guys.
- --
Tony Morris
http://tmorris.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4kpxAACgkQmnpgrYe6r63tDQCeOCvmhZJEVhWhUewiHMEgJ90U
YjwAnioMLFV5ebXGj2Y2QmngLNBEAVQ8
=Qw6y
-----END PGP SIGNATURE-----
Just wanted to state two things:
(1) Scala In Depth was initially titled Effective Scala. You'll see a lot of this flavor in the book. However, it became apparent that education in the type system and FP on Category theory (as seen in haskell) was needed. Hence the move to Scala In Depth. Hopefully you should find a bit of what you need there, or I've failed in my mission.
(2) Scala best practices are probably going to change (just slighty) over the course of the next year or two. I'd say we can put together a good book, but something akin to Effective Java might be a year or two away....
(2) Scala best practices are probably going to change (just slighty) over the course of the next year or two. I'd say we can put together a good book, but something akin to Effective Java might be a year or two away....
Your list of extractors is most likely being inferred as a List[Any].
Easiest way to remedy that would be to create a common trait for them:
trait StringExtractor[A] {
def unapply(s: String): Option[A]
}
then define them as:
object EInt extends StringExtractor[Int] {def unapply(s: String) =
Some(s.toInt)}
object EDbl extends StringExtractor[Double] {def unapply(s: String) =
Some(s.toDouble)}
That should make your extractor list a List[StringExtractor[Any]]
Then to do the actual extracting it may work with pattern matching as
you tried, but you might have to do it manually:
data zip extrs flatMap {e => e._2.unapply(e._1) }
which will give you a List[Any].
--
Derek Williams
+1Functional programming for the imperative programmer
Agreed, this would be fantastic.
On 07/18/2011 11:49 AM, Debasish Ghosh wrote:
> Effective Scala .. with the same level of depth and insight as Josh Bloch's
> Effective Java ..
>
> On Mon, Jul 18, 2011 at 8:57 PM, Yuvi Masory <yma...@gmail.com
> <mailto:yma...@gmail.com>> wrote:
>
> Hi everyone,
>
> I've exchanged a few emails with Manning. They are interested to know what
> subjects the community is interested in having Scala books written on.
> For example, would a Scala cookbook-style book be good? One on Akka? Etc.
> Please add your suggestions. Since this is being discussed publicly all
> publishers will benefit equally from your answers.
>
> I'd personally love a full book on Akka.
>
> Yuvi
>
>
>
>
> --
> Debasish Ghosh
> http://manning.com/ghosh
>
> Twttr: @debasishg
> Blog: http://debasishg.blogspot.com
> Code: http://github.com/debasishg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4lvz4ACgkQ5IyIbnMUeTvQfQCdE7fIml1HCzaTLjVAtlTC2HV4
i6UAoI8sT8eIgeUj/RyKBAN5GMrMzGd8
=lqNv
-----END PGP SIGNATURE-----
On 19/07/11 21:45, Renghen Renghen wrote:
> here is my wishlist,
>
>
> 3) monads,monads,monads (theory and practice); from identity monad
> to comprehension monad
What is the comprehension monad? Did you mean continuation monad?
- --
Tony Morris
http://tmorris.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4l/egACgkQmnpgrYe6r61yGQCgtCIHw5C134rhuA+suHK/8iad
47IAn3+vH0uzkDcsYj+20IBDNiq3Iy/t
=uFLo
-----END PGP SIGNATURE-----
> There are interesting books at manning like Debasish Ghosh Dsl in action, the Joshua Suereth MEAP Scala in depth. I 'd really like a book about the philosophy of writing with actors from Carl Hewitt thougths to Scala/Akka implementations, through Erlang applications, with real world examples. To embrace Actor paradigm I have bought an Erlang book. Nice move, but some Scala/Akka stuff would be really welcome.
This is exactly what we are aiming at with our book on actors ("Actors in Scala", Artima).
It starts with the philosophy behind actors, covers Scala's language support for programming with actors, and then continues with concrete examples written in Scala. It covers both the scala.actors package in Scala 2.8/2.9 as well as Akka's actors (Akka 2.0). There are larger examples on how to do MapReduce-style computations, graph processing, as well as the core of a cluster runtime system using remote actors.
While we cannot cover the entire Akka API (which still has to stabilize in some areas), the book should get you up to speed, in a way that is complementary to Akka's excellent online documentation.
Cheers,
Philipp
--
Co-author, "Actors in Scala" (Artima Inc, 2011)
Postdoc, EPFL and Stanford University
Peter
> -----Original Message-----
> From: scala...@googlegroups.com [mailto:scala...@googlegroups.com]
> On Behalf Of Philipp Haller
> Sent: Tuesday, July 19, 2011 20:09
> To: <scala...@googlegroups.com>
> Subject: Re: [scala-user] Re : What books would you like to see written on
> Scala?
>
Am 18.07.2011 18:50, schrieb Thomas Lockney:
> * Functional programming (preferably covering general FP concepts applied to
> Scala, the theoretic underpinnings and, perhaps, some coverage of Scalaz)
Yep. Scalaz. Why and how. Examples.
- --
Tschööö--->...Stefan
- ---------------------------
Don't visit my homepage at:
http://home.arcor-online.net/hirnstrom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4mZ1UACgkQQeATqGpDnRqqigCfewLH2EtwDWx6WhKRXuF+nCFU
2/cAn0p0p6mwQv6jZHci24d+wdRU5etn
=dwf8
-----END PGP SIGNATURE-----
Cheers,
Philipp
I'd rather they waited a bit, actually... :-) There are a few books in
the pipeline:
Scala in Depth by Josh Suereth
Lift in Action by Tim Perret
the actors book by Phillip Haller, I don't recall it's name
the mysterious book about functional programming in Scala -- by Runar?
Tony? Not sure.
If they all accomplish what they set out to do, they'll cover most of
what's needed right now. If something is missing, then I'd target what
they miss. Personally, I think more books like Scala in Depth will be
needed, however well Josh might have done his job. Unfortunately,
finding an author that is _really_ up to it might be very hard,
because most of us are simply not using Scala on large scale projects
long enough.
I don't know how the functional programing book is going, but I think
there's market for more books on learning functional programming with
Scala. Then again, I'm biased.
I agree that a short book on SBT would be really nice, since SBT is
now such an important and essential element of the Scala ecosystem. +1
on that.
Another book that I'd enjoy would be Testing with Scala, covering
Scalatest, Specs 1 and 2 and Scalacheck. It can have additional
chapters covering testing on Lift, that Scala mocking library (sorry,
can't recall the name right now), Scala's partest system or minor
testing libraries, as "extras". It is not that these frameworks are
particularly hard to learn and use, but having a book about something
lowers the entry barriers to that.
--
Daniel C. Sobral
I travel to the future all the time.
Another book that I'd enjoy would be Testing with Scala, covering
Scalatest, Specs 1 and 2 and Scalacheck. It can have additional
chapters covering testing on Lift, that Scala mocking library (sorry,
can't recall the name right now), Scala's partest system or minor
testing libraries, as "extras". It is not that these frameworks are
particularly hard to learn and use, but having a book about something
lowers the entry barriers to that.
Isn't there also a "Monadic Design Patterns for the Web" by Gregory
Meredith in the pipe ?
--
Francois Armand
http://fanf42.blogspot.com
I hope so. On the other hand, the first three are already completed,
just undergoing editing. The functional programming one I wouldn't
have mentioned if Tony was not so emphatic about it. :-) I'm just
trying to focus on thing that are almost out there. I should have left
the FP one out.
Yup. Monadic Design Patterns by Greg Meredith is in the pipeline.
Actors in Scala is the name of Philipp and Frank's book. Meeting with
Philipp and the editor on that tonight in fact. Actors will be the
next book we publish, currently scrambling to get it out end of
September.
The name of the Scala mocking framework is Borachio (by Paul Butcher).
Dick Wall and I are thinking of writing a pair of Effective Scala
books, one for library users and the other for library designers. I
haven't seen what Josh has done yet with Scala in Depth, but I'm
pretty sure given his descriptions that it would be different from
what Dick and I have in mind. We're want to write them with lots of
community feedback as we go, because these should document what the
community has learned over time.
Bill
On Thu, Jul 21, 2011 at 4:50 PM, Francois Armand <fan...@gmail.com> wrote:
--
Bill Venners
Artima, Inc.
http://www.artima.com