Programming Scala: Scalability = Functional Programming + by Dean Wampler, Alex Payne

By Dean Wampler, Alex Payne

Wake up to hurry on Scala, the JVM language that gives the entire advantages of a contemporary item version, sensible programming, and a complicated style process. full of code examples, this accomplished booklet exhibits you the way to be effective with the language and atmosphere instantaneously, and explains why Scala is perfect for today's hugely scalable, data-centric functions that help concurrency and distribution.

This moment version covers fresh language positive factors, with new chapters on development matching, comprehensions, and complicated useful programming. You’ll additionally know about Scala’s command-line instruments, third-party instruments, libraries, and language-aware plugins for editors and IDEs. This publication is perfect for starting and complex Scala builders alike.

software swifter with Scala’s succinct and versatile syntax
Dive into simple and complex useful programming (FP) techniques
construct killer big-data apps, utilizing Scala’s sensible combinators
Use characteristics for mixin composition and development matching for information extraction
research the subtle variety procedure that mixes FP and object-oriented programming concepts
discover Scala-specific concurrency instruments, together with Akka
know how to improve wealthy domain-specific languages
study reliable layout thoughts for construction scalable and strong Scala purposes

Show description

Read Online or Download Programming Scala: Scalability = Functional Programming + Objects (2nd Edition) PDF

Best programming books

Instant Sublime Text Starter

Learn to successfully writer software program, web publication posts, or the other textual content with chic textual content 2

Overview
* research whatever new instantly! a brief, speedy, centred consultant providing quick results.
* lessen redundant typing with contextual auto-complete.
* Get a visible assessment of, and flow round in, your rfile with the preview pane.
* successfully edit many strains of textual content with a number of cursors.

In aspect

There are many parts of computing that require the developing or enhancing and manipulating of textual content. We may have to writer or edit plain-text files for software program improvement, development an internet site, or maybe simply writing a web publication publish. whereas different thoughts exist, elegant textual content 2 is a quick, feature-filled choice to be able to successfully and speedily control and writer your content material or software program with ease.

The "Instant elegant textual content Starter" ebook is a pragmatic consultant that gives quite a few step by step directions detailing many of the many good points elegant textual content 2 presents to streamline your textual content enhancing. This starter may also function a reference advisor to the various nice positive aspects elegant textual content 2 has to offer.

This publication seems to be on the a variety of gains elegant textual content 2 deals with a purpose to raise the potency and simplicity of textual content manipulation and construction with a spotlight on programming similar themes. it is going to take you thru uncomplicated projects from starting and saving files all of the approach as much as defining your individual snippets and macros. you'll research those issues when it comes to effortless to reference, stand-alone, step by step instructional sections

You also will know about the various leading edge positive aspects elegant textual content 2 has to provide, akin to a number of cursors for modifying in additional than one position at a time, the preview pane, the command palette, and the Goto whatever beneficial properties, between others.

With the chic textual content 2 Starter, you are going to examine every thing you must understand to start utilizing elegant textual content 2 and a few of its extra complex positive aspects. this can offer you a good commence on using chic textual content 2's robust gains and provides you an exceptional origin to maneuver directly to its such a lot complex beneficial properties in your own.

What you are going to research from this e-book
* Use the preview pane to view and movement round your rfile at a excessive level.
* make the most of a number of cursors to edit your textual content in lots of destinations on the similar time.
* concentration greater at the activity handy utilizing distraction unfastened mode.
* Use classic mode for these acquainted with the Vi and VIM editors.
* discover the Goto whatever gains of chic textual content 2.
* Invoke some of the instructions and contours to be had utilizing the command palette.
* set up and deal with neighborhood created plugins.
* Create and invoke your individual macros.

Approach

Get to grips with a brand new know-how, comprehend what it really is and what it may possibly do for you, after which get to paintings with crucial good points and projects. A starter which teaches the fundamental initiatives to be played with chic textual content with the mandatory functional examples and screenshots.

Cocoa Programming for OS X: The Big Nerd Ranch Guide (5th Edition)

Masking the majority of what you must recognize to strengthen full-featured functions for OS X, this version is up to date for OS X Yosemite (10. 10), Xcode 6, and quick. Written in an interesting educational kind and class-tested for readability and accuracy, it really is a useful source for any Mac programmer. The authors introduce the 2 most typically used Mac developer instruments: Xcode and tools.

Expert Android

From the best writer of Android books, Apress’ specialist Android promises complex thoughts for customizing perspectives, controls, and layouts. You’ll discover ways to boost apps in checklist time utilizing JSON, complex shape Processing, and the BaaS (Backend As A carrier) platform Parse. The booklet additionally comprises large assurance on OpenGL, seek, and Telephony.

Unreal Engine 4 Game Development Essentials

Unreal Engine four is an entire suite of video game improvement instruments that offers you strength to advance your video game and seamlessly set up it to iOS and Android units. it may be used for the improvement of straightforward 2nd video games or perhaps gorgeous high-end visuals. Unreal Engine encompasses a excessive measure of portability and is a device utilized by many video game builders this day.

Additional info for Programming Scala: Scalability = Functional Programming + Objects (2nd Edition)

Example text

ToString}") // } case class Circle(center: Point, radius: Double) extends Shape // case class Rectangle(lowerLeft: Point, height: Double, width: Double) // extends Shape case class Triangle(point1: Point, point2: Point, point3: Point) extends Shape // Declare a class for two-dimensional points. Declare an abstract class for geometric shapes. Implement a draw method for “rendering” the shapes. We just write a formatted string. A circle with a center and radius. A rectangle with a lower-left point, height, and width.

So now you have a taste of actor-based concurrency and a few more powerful Scala features. Recap and What’s Next We introduced Scala, then dove into some nontrivial Scala code, including a taste of Akka’s actor library for concurrency. org. You will find links for libraries, tutorials, and various papers that describe features of the language. Typesafe, Inc. is the commercial company that supports Scala and several JVM-based development tools and frameworks, including Akka, Play, and others. You’ll find many useful resources on the company’s website.

Let’s break down the details of receive: def receive = { case s: Shape => ... case Exit => ... case unexpected => ... } // // // If the message is a Shape instance, the first case clause matches. , s will be of type Shape, while the input message has the type Any. The message equals Exit. This will be a signal that we’re done. This is the “default” clause that matches anything. It is equivalent to unexpec ted: Any, so it matches anything passed in that didn’t match the preceding pattern matches.

Download PDF sample

Rated 4.62 of 5 – based on 7 votes