By Martin Odersky, Lex Spoon, Bill Venners

Programming in Scala is the definitive ebook on Scala, the recent language for the Java Platform that blends object-oriented and sensible programming strategies right into a designated and robust device for builders. Coauthored by means of the fashion designer of the Scala language, this authoritative publication will educate you, one step at a time, the Scala language and the rules in the back of it. The e-book is thoroughly crafted that will help you examine. the 1st few chapters provides you with adequate of the fundamentals that you should already commence utilizing Scala for easy projects. the total booklet is prepared in order that every one new thought builds on ideas that got here ahead of - a chain of steps that offers that can assist you grasp the Scala language and the vital rules approximately programming that Scala embodies. A finished educational and reference for Scala, this ebook covers the whole language and demanding libraries.

Show description

Read or Download Programming in Scala: A Comprehensive Step-by-step Guide PDF

Similar languages & tools books

SOA for the Business Developer: Concepts, BPEL, and SCA

Service-Oriented structure (SOA) is a fashion of organizing software program. in the event that your company's improvement initiatives adhere to the rules of SOA, the result may be a listing of modular devices known as "services," which permit for a fast reaction to alter. This publication tells the SOA tale in an easy, undemanding demeanour that can assist you comprehend not just the buzzwords and advantages, but in addition the applied sciences that underlie SOA: XML, WSDL, cleaning soap, XPath, BPEL, SCA, and SDO.

Additional info for Programming in Scala: A Comprehensive Step-by-step Guide

Sample text

To get you up to speed quickly, we had to leave out some details. Everything will be explained in a less “fire hose” fashion in later chapters. In addition, we inserted quite a few footnotes in these next two chapters to point you to later sections of the book where you’ll find more detailed explanations. Step 1. Learn to use the Scala interpreter The easiest way to get started with Scala is by using the Scala interpreter, an interactive “shell” for writing Scala expressions and programs. 2. Cover · Overview · Contents · Discuss · Suggest · Glossary · Index Step 1 Chapter 2 · First Steps in Scala the resulting value.

The same holds for many other simple refactorings like changing a method name, or moving methods from one class to another. In all cases a static type check will provide enough assurance that the new system works just like the old. Documentation. Static types are program documentation that is checked by the compiler for correctness. Unlike a normal comment, a type annotation can never be out of date (at least not if the source file that contains it has recently passed a compiler). Furthermore, compilers and integrated development environments can make use of type annotations to provide better context help.

Scala stands out as a language with a very advanced static type system. 5. 12 These give a strong foundation for building and composing your own types, so that you can design interfaces that are at the same time safe and flexible to use. If you like dynamic languages such as Perl, Python, Ruby, or Groovy, you might find it a bit strange that Scala’s static type system is listed as one of its strong points. After all, the absence of a static type system has been cited by some as a major advantage of dynamic languages.

Download PDF sample

Rated 4.37 of 5 – based on 9 votes