Disclaimer: I received this book as part of the O’Reilly Blogger Review program. The opinion about the book below is only my own!
Since O’Reilly published the Perl Cookbook many years ago I have become a huge fan of that style of books. Back then – when I was still using Perl – this book was a tremendous help for all kind of things I wanted to do with Perl. Later the Ruby, Python and Java cookbooks were equally helpful.
Now O’Reilly has pubished a Scala cookbook and I am extremely happy with the result. The book is pretty big with more than 700 pages (and an extra chapter on Play is available from the author’s website because it didn’t make it into the book).
The book covers many things you will encounter daily in your Scala projects from creating classes, using Scala’s amazing collections, reading files to working with actors (using Akka).
Each recipe has a problem, shows and solution and then goes into detail explaining the solution. If you already know other O’Reilly cookbooks, you will be very familiar with the book’s style.
My favorite chapters are the ones on functional programming and the Scala collection library.
The chapters on functional programming are very pragmatic without much theory. You won’t find advanced discussions on Monads (there are other books for this and many websites) but many very useful tips on how to create your own functions and use them (as well as the existing ones from the Scala standard library) effectively in everyday projects.
The two chapters on the Scala collection library are about 130 pages long and explain in great detail the amazing features of what I consider the best collection library for any programming language out there.
The writing is clear and very easy to follow and the sample code is easy to read. Because it is all in small recipes you don’t need to read through lot’s of theory to figure out how to open a file or write a partial function.
If you are a beginning or intermediate Scala developer the Scala Cookbook is a must have. Even advanced Scala developers should save time looking up solutions from the book – you just can’t have everything in your head 🙂
This book would also make a very good second Scala book to deepen your knowledge after you’ve read an introductionary book (Scala for the Impatient by Cay Horstmann is my favorite)
More information from the publisher:
Despite this diversity, the driving interactions in Fake Oakleys
these materials are derived from three essential parameters2: the on site electron electron repulsion U, the energy difference from the empty local d orbitals to the band like oxygen p states and their hybridization strength, which is encapsulated in the bandwidth, W. This is the most important thing to know. With Sale joining a rotation that already includes Rick Porcello and David Price, Boston now boasts a starting staff to match the Indians as the class of the American League. Sale a skinny lefty with a long limbed, swooping delivery and a fastball in the low to mid 90s, and his career rate of 10.1 strikeouts per nine innings ranks him third all time in the stat, behind only Randy Johnson and Kerry Wood and a notch above Pedro Martinez. Sale modeled himself after the Big Unit, but came up with none of the control issues associated with Johnson early career: His 4.8 career K:BB ratio is the best of anyone since the turn of the turn of the Baratas Replicas Ray Ban
20th century. As such, he a five time All Star at age 27.The idea of things down for the sake of newsworthiness comes back to the question of what is journalism? Some believe that releasing Cheap Jerseys
information on Twitter is gossip, not news, but this is difficult to reconcile with the fact that an increasing amount of news stories are broken through the medium.And what’s worse than a cobra infestation? Nothing. Nothing is worse than a cobra infestation.So, back in the days of British controlled India, the British governor of Delhi was understandably upset when he faced this exact problem. In between his screams of terror, the governor offered a bounty on cobra skins, opting to crowdsource the extermination via what he probably assumed were top notch snake charming skills. 6. New York Giants Super Bowl champs have lost bookend pass rushers. 7. Last week’s record: 10 6; season 99 77 (.563). Using point spreads with the scores Farmer predicted, the handicapped record would have been 9 7; season wholesale jerseys
87 89 (.494). http://www.wholesale-cheap-nfl-jerseys.com
Denver at Kansas City Records: 3 8; 7 4. Jurassic Park is a movie about dinosaurs killing people, but several things had to go wrong in order for this cheap jerseys china
to happen. Sam Neill discovers that the dinosaurs are breeding despite the fact that they were genetically engineered to all be female (specifically to prevent this). It is a development that, indeed, no one saw coming, for how in the name of science could a bunch of prehistoric lizards equipped with nothing but girl parts be expected to make babies?However, if you were paying close attention, it’s a twist the movie gives away in the first 20 minutes.It’s played as wholesale jerseys china
just a throwaway joke as the helicopter carrying all the ’90s fashionable scientists swoops down toward Isla Nublar, Neill is told to buckle his seat belt.That’s right Neill is stuck with two buckles, rather than the tongue and buckle combination required to secure him safely to the helicopter bench.