Programming Scala

Overview

Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution.

Programming Scala clearly explains the advantages of Scala as a JVM language. You'll learn how to leverage the wealth of Java class libraries to meet the...

See more details below
Paperback
$36.59
BN.com price
(Save 18%)$44.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (17) from $2.00   
  • New (8) from $23.36   
  • Used (9) from $2.00   
Programming Scala: Scalability = Functional Programming + Objects

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99
BN.com price
(Save 44%)$35.99 List Price

Overview

Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution.

Programming Scala clearly explains the advantages of Scala as a JVM language. You'll learn how to leverage the wealth of Java class libraries to meet the practical needs of enterprise and Internet projects more easily. Packed with code examples, this book provides useful information on Scala's command-line tools, third-party tools, libraries, and available language-aware plugins for editors and IDEs.

  • Learn how Scala's succinct and flexible code helps you program faster
  • Discover the notable improvements Scala offers over Java's object model
  • Get a concise overview of functional programming, and learn how Scala's support for it offers a better approach to concurrency
  • Know how to use mixin composition with traits, pattern matching, concurrency with Actors, and other essential features
  • Take advantage of Scala's built-in support for XML
  • Learn how to develop domain-specific languages
  • Understand the basics for designing test-driven Scala applications


Read More Show Less

Product Details

  • ISBN-13: 9780596155957
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 9/22/2009
  • Series: Animal Guide Series
  • Pages: 422
  • Sales rank: 982,957
  • Product dimensions: 7.00 (w) x 9.10 (h) x 1.10 (d)

Meet the Author

Dean Wampler is a Consultant, Trainer, and Mentor with Object Mentor, Inc. He specializes in Scala, Java, and Ruby. He works with clients on application design strategies that combine object-oriented programming, functional programming, and aspect-oriented programming. He also consults on Agile methods, like Lean and XP. Dean is a frequent speaker at industry and academic conferences on these topics. He has a Ph.D. in Physics from the University of Washington.

Alex Payne is Platform Lead at Twitter, where he develops services that enable programmers to build atop the popular social messaging service. Alex has previously built web applications for political campaigns, non-profits, and early-stage startups, and supported information security efforts for military and intelligence customers. In his free time, Alex studies, speaks, and writes about the history, present use, and evolution of programming languages, as well as minimalist art and design.

Read More Show Less

Table of Contents

Dedication;
Foreword;
Preface;
Welcome to Programming Scala;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Acknowledgments;
Chapter 1: Zero to Sixty: Introducing Scala;
1.1 Why Scala?;
1.2 Installing Scala;
1.3 For More Information;
1.4 A Taste of Scala;
1.5 A Taste of Concurrency;
1.6 Recap and What’s Next;
Chapter 2: Type Less, Do More;
2.1 In This Chapter;
2.2 Semicolons;
2.3 Variable Declarations;
2.4 Method Declarations;
2.5 Inferring Type Information;
2.6 Literals;
2.7 Tuples;
2.8 Option, Some, and None: Avoiding nulls;
2.9 Organizing Code in Files and Namespaces;
2.10 Importing Types and Their Members;
2.11 Abstract Types And Parameterized Types;
2.12 Reserved Words;
2.13 Recap and What’s Next;
Chapter 3: Rounding Out the Essentials;
3.1 Operator? Operator?;
3.2 Methods Without Parentheses and Dots;
3.3 Domain-Specific Languages;
3.4 Scala if Statements;
3.5 Scala for Comprehensions;
3.6 Other Looping Constructs;
3.7 Conditional Operators;
3.8 Pattern Matching;
3.9 Enumerations;
3.10 Recap and What’s Next;
Chapter 4: Traits;
4.1 Introducing Traits;
4.2 Stackable Traits;
4.3 Constructing Traits;
4.4 Recap and What’s Next;
Chapter 5: Basic Object-Oriented Programming in Scala;
5.1 Class and Object Basics;
5.2 Parent Classes;
5.3 Constructors in Scala;
5.4 Nested Classes;
5.5 Visibility Rules;
5.6 Recap and What’s Next;
Chapter 6: Advanced Object-Oriented Programming In Scala;
6.1 Overriding Members of Classes and Traits;
6.2 Companion Objects;
6.3 Case Classes;
6.4 Equality of Objects;
6.5 Recap and What’s Next;
Chapter 7: The Scala Object System;
7.1 The Predef Object;
7.2 Classes and Objects: Where Are the Statics?;
7.3 Sealed Class Hierarchies;
7.4 The Scala Type Hierarchy;
7.5 Linearization of an Object’s Hierarchy;
7.6 Recap and What’s Next;
Chapter 8: Functional Programming in Scala;
8.1 What Is Functional Programming?;
8.2 Functional Programming in Scala;
8.3 Recursion;
8.4 Tail Calls and Tail-Call Optimization;
8.5 Functional Data Structures;
8.6 Traversing, Mapping, Filtering, Folding, and Reducing;
8.7 Pattern Matching;
8.8 Partial Functions;
8.9 Currying;
8.10 Implicits;
8.11 Implicit Function Parameters;
8.12 Call by Name, Call by Value;
8.13 Lazy Vals;
8.14 Recap: Functional Component Abstractions;
Chapter 9: Robust, Scalable Concurrency with Actors;
9.1 The Problems of Shared, Synchronized State;
9.2 Actors;
9.3 Actors in Scala;
9.4 Traditional Concurrency in Scala: Threading and Events;
9.5 Recap and What’s Next;
Chapter 10: Herding XML in Scala;
10.1 Reading XML;
10.2 Writing XML;
10.3 Recap and What’s Next;
Chapter 11: Domain-Specific Languages in Scala;
11.1 Internal DSLs;
11.2 External DSLs with Parser Combinators;
11.3 Recap and What’s Next;
Chapter 12: The Scala Type System;
12.1 Reflecting on Types;
12.2 Understanding Parameterized Types;
12.3 Variance Under Inheritance;
12.4 Type Bounds;
12.5 Nothing and Null;
12.6 Understanding Abstract Types;
12.7 Path-Dependent Types;
12.8 Value Types;
12.9 Self-Type Annotations;
12.10 Structural Types;
12.11 Existential Types;
12.12 Infinite Data Structures and Laziness;
12.13 Recap and What’s Next;
Chapter 13: Application Design;
13.1 Annotations;
13.2 Enumerations Versus Pattern Matching;
13.3 Thoughts On Annotations and Enumerations;
13.4 Using Nulls Versus Options;
13.5 Exceptions and the Alternatives;
13.6 Scalable Abstractions;
13.7 Effective Design of Traits;
13.8 Design Patterns;
13.9 Better Design with Design By Contract;
13.10 Recap and What’s Next;
Chapter 14: Scala Tools, Libraries, and IDE Support;
14.1 Command-Line Tools;
14.2 Build Tools;
14.3 Integration with IDEs;
14.4 Test-Driven Development in Scala;
14.5 Other Notable Scala Libraries and Tools;
14.6 Java Interoperability;
14.7 Java Library Interoperability;
14.8 Recap and What’s Next;
References;
Glossary;
Colophon;
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)