Book description
The open source Scala language is a Java-based dynamic scripting, functional programming language. Moreover, this highly scalable scripting language lends itself well to building Cloud-based/deliverable Software as a Service (SaaS) online applications.
Written by Lift Scala web framework founder and lead Dave Pollak, Beginning Scala takes a down-to-earth approach to teaching Scala that leads you through simple examples that can be combined to build complex, scalable systems and applications.
This book introduces you to the Scala programming language and then guides you through Scala constructs and libraries that allow small and large teams to assemble small components into high-performance, scalable systems. You will learn why Scala is becoming the language of choice for Web 2.0 companies such as Twitter as well as enterprises such as Seimens and SAP.
Table of contents
- Copyright
- Foreword
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. About Scala and How to Install It
-
2. Scala Syntax, Scripts, and Your First Scala Programs
- 2.1. Scala at the Command Line and Scala Scripts
- 2.2. Your First Scala Programs
-
2.3. Basic Scala Syntax
- 2.3.1. Number, String, and XML Constants
- 2.3.2. package
- 2.3.3. import
- 2.3.4. Class, Trait, and Object Definition
- 2.3.5. Scala's Class Hierarchy
- 2.3.6. Method Declaration
- 2.3.7. Variable Declaration
- 2.3.8. Code Blocks
- 2.3.9. Call-by-Name
- 2.3.10. Method Invocation
- 2.3.11. Functions, apply, update, and Compiler Magic
- 2.3.12. Case Classes
- 2.3.13. Basic Pattern Matching
- 2.3.14. if/else and while
- 2.3.15. The for comprehension
- 2.3.16. throw, try/catch/finally, and synchronized
- 2.3.17. Comments
- 2.4. Scala vs. Java vs. Ruby
- 2.5. Summary
- 3. Collections and the Joy of Immutability
- 4. Fun with Functions, and Never Having to Close That JDBC Connection
- 5. Pattern Matching
- 6. Actors and Concurrency
- 7. Traits and Types and Gnarly Stuff for Architects
- 8. Parsers—Because BNF Is Not Just for Academics Anymore
-
9. Scaling Your Team
- 9.1. Testing: Behavior-Driven Development
- 9.2. Build Tools
- 9.3. Team Structure
- 9.4. Best Practices
-
9.5. Selling Scala in Your Organization
- 9.5.1. The Super-Soft Sell
- 9.5.2. The Back-Office Project
- 9.5.3. The Big Sell
- 9.5.4. My Direct Experience (YMMV)
- 9.5.5. Selecting Team Members
- 9.5.6. Yeah, But How Compatible?
- 9.5.7. A Tad Bit of History
- 9.5.8. Present-Day Compatibility
- 9.5.9. Popping the Stack to the CEO or Board
- 9.5.10. Why Is Scala Different?
- 9.5.11. Anything You Can Do, I Can Do Better (in Scala)
- 9.5.12. Giving Scala a Lift
- 9.5.13. How Lift's Comet Support Works
- 9.6. Summary
Product information
- Title: Beginning Scala
- Author(s):
- Release date: May 2009
- Publisher(s): Apress
- ISBN: 9781430219897
You might also like
book
Beginning Scala, Second Edition
Beginning Scala, Second Edition takes a down-to-earth approach to teaching Scala that leads you through simple …
book
Scala in Depth
Scala in Depth is a unique new book designed to help you integrate Scala effectively into …
book
Pragmatic Scala
Our industry is moving toward functional programming, but your object-oriented experience is still valuable. Scala combines …
video
Beginning Scala Programming
In this Beginning Scala Programming training course, expert author Daniel Hinojosa will teach you everything you …