Scala in Action by Nilanjan Raychaudhuri

By Nilanjan Raychaudhuri


Scala in Action is a finished educational that introduces Scala via transparent factors and diverse hands-on examples. simply because Scala is a wealthy and deep language, it may be formidable to take in all of the new innovations immediately. This ebook takes a "how-to" process, explaining language recommendations as you discover universal programming demanding situations that you just face on your day by day work.

About the Technology

Scala runs at the JVM and combines object-orientation with sensible programming. It's designed to supply succinct, type-safe code, that is the most important for company purposes. Scala implements Actor-based concurrency during the impressive Akka framework, so that you can keep away from Java's messy threading whereas interacting seamlessly with Java.

About this Book

Scala in Action is a complete educational that introduces the language via transparent motives and diverse hands-on examples. It takes a "how to" technique, explaining language thoughts as you discover usual programming projects. You'll take on concurrent programming in Akka, discover ways to paintings with Scala and Spring, and the way to construct DSLs and different productiveness instruments. You'll examine either the language and the way to take advantage of it.

Experience with Java is beneficial yet no longer required. Ruby and Python programmers also will locate this publication accessible.

What's Inside
• A Scala tutorial
• tips on how to use Java and Scala open resource libraries
• easy methods to use SBT
• Test-driven development
• Debugging
• up-to-date for Scala 2.10

Purchase of the print ebook features a unfastened publication in PDF, Kindle, and ePub codecs from Manning Publications.

About the Author

Nilanjan Raychaudhuri is a talented developer, speaker, and an avid polyglot programmer who works with Scala on construction systems.

Table of Contents
<ol><h5>PART 1 SCALA: THE BASICS</h5> • Why Scala?
• Getting started

• OOP in Scala

• enjoying practical information structures

• useful programming
<h5>PART 2 operating WITH SCALA</h5> • construction internet purposes in practical style

• Connecting to a database

• construction scalable and extensible components

• Concurrency programming in Scala

• development self assurance with testing
<h5>PART three complicated STEPS</h5> • Interoperability among Scala and Java
• Scalable and dispensed functions utilizing Akka

Show description

Read or Download Scala in Action PDF

Best programming books

Start Here! Learn the Kinect API

Ready to benefit Kinect programming? commence right here! ™

Learn the basics of programming with the Kinect™ API—and commence development apps that use movement monitoring, voice popularity, and extra. in case you have event programming with C#—simply commence right here! This publication introduces must-know options and methods via easy-to-follow reasons, examples, and exercises.

Here’s the place you begin studying Kinect
* construct an program to show Kinect video in your laptop
* Have Kinect take photos whilst it detects circulation
* Draw on a working laptop or computer reveal by way of relocating your finger within the air
* song your physique gestures and use them to regulate a application
* Make a software that is familiar with your speech and talks again to you
* Play an element on your personal augmented fact online game
* Create an "air piano" utilizing Kinect with a MIDI machine

Programming F# 3.0

Why research F#? With this advisor, you’ll learn the way this multi-paradigm language not just provide you with a major productiveness enhance via sensible programming, but additionally permits you to advance purposes utilizing your latest object-oriented and critical programming abilities. You’ll quick observe the various merits of the language, together with entry to the entire nice instruments and libraries of the . web platform.

Reap some great benefits of practical programming in your subsequent undertaking, no matter if you’re writing concurrent code, or construction information- or math-intensive functions. With this complete e-book, former F# staff member Chris Smith can provide a head begin at the basics and walks you thru complex strategies of the F# language.
* research F#’s detailed features for development purposes
* achieve a great realizing of F#’s center syntax, together with object-oriented and important types
* Make your object-oriented code greater via employing practical programming styles
* Use complicated practical options, reminiscent of tail-recursion and computation expressions
* benefit from multi-core processors with asynchronous workflows and parallel programming
* Use new style companies for interacting with internet companies and information-rich environments
* learn the way good F# works as a scripting language

Programming for Musicians and Digital Artists: Creating music with ChucK

Programming for Musicians and electronic Artists: growing track with ChucK deals a whole advent to programming within the open resource tune language ChucK. In it, you'll research the fundamentals of electronic sound construction and manipulation once you detect the ChucK language. As you progress example-by-example via this easy-to-follow publication, you'll create significant and worthwhile electronic compositions and "instruments" that make sound and track in direct reaction to application common sense, ratings, gestures, and different structures attached through MIDI or the community.

Extra info for Scala in Action

Sample text

Grouping is controlled by parameters passed to your view, not by the Reduce function itself. CouchDB has three built-in Reduce functions: _count, _sum, and _stats (shown in Table 2-5). In most situations, you will want to use one of these built-in Reduce functions. You can write your own custom Reduce functions, but you should rarely need to. Both the _sum and _stats built-in Reduce functions will only reduce sets of numbers. The _count function will count arbitrary values, including null values.

We will call this the releases view and add it to our _design/default design document. In this new view, we will map book documents to key/value pairs of release dates and number of pages. Instead of a string, the release date will be a JSON array containing the date’s year, month, and day. We will do this by using the split method of JavaScript’s String object on each book document’s released field. , ["2007","05","08"]. Group levels require JSON arrays to group on, and they work best when the array elements are ordered from least specific to most specific.

Table 4-8. Rows from the formats view, limited to five and filtered by start key and document ID key id value "Safari Books Online" "978-0-596-15589-6" 272 "Safari Books Online" "978-0-596-52926-0" 448 Reversing Output Let’s reverse the output of our book titles view: curl -X GET http://localhost:5984/books/_design/default/_view/titles -G \ -d reduce=false \ -d descending=true The response: { "total_rows":3, "offset":0, "rows":[ { "id":"978-0-596-52926-0", "key":"RESTful Web Services", "value":448 }, { "id":"978-1-565-92580-9", "key":"DocBook: The Definitive Guide", Limiting, Skipping, and Reversing Results | 49 }, { } "value":648 "id":"978-0-596-15589-6", "key":"CouchDB: The Definitive Guide", "value":272 ] } See Table 4-9 for the rows in tabular format.

Download PDF sample

Scala in Action by Nilanjan Raychaudhuri
Rated 4.36 of 5 – based on 7 votes