By Dianne Marsh Bruce Eckel

ISBN-10: 0981872514

ISBN-13: 9780981872513

Atomic Scala introduces the rules of the Scala programming language in very small steps (which we name atoms). The e-book is designed to simplify studying the language for either newbies and skilled programmers. Atomic Scala by means of Bruce Eckel and Dianne Marsh is now on hand as a print booklet (the booklet will seem later, when we deal with the entire formatting concerns, that are extra concerned as a result of fonts and code listings).

Show description

Read Online or Download Atomic Scala: Learn Programming in the Language of the Future PDF

Best introductory & beginning books

Problem Solving With Computers

Computing device technological know-how

Java Foundations: Introduction to Program Design and Data Structures (2nd Edition)

Encouraged through the luck in their best-selling introductory programming textual content, Java software program suggestions, authors Lewis, DePasquale, and Chase now liberate Java Foundations, moment variation. this article is a accomplished source for teachers who desire a two-or three-semester creation to programming textbook that comes with aspect on information buildings subject matters.

Sams teach yourself object-oriented programming in 21 days

Sams train your self item orientated Programming in 21 Days differs from different OOP books in major methods. Many vintage OOP books are designed for software program engineers and educate at a tutorial point. Sams educate your self item orientated Programming in 21 Days offers available, uncomplicated classes designed with the start programmer in brain.

Explorations in Computing: An Introduction to Computer Science

In line with the author’s introductory path on the collage of Oregon, Explorations in Computing: An advent to computing device technological know-how specializes in the elemental concept of computation and provides perception into how computation is used to unravel numerous fascinating and significant real-world difficulties. Taking an energetic studying process, the textual content encourages scholars to discover computing rules by means of working courses and checking out them on diversified inputs.

Additional resources for Atomic Scala: Learn Programming in the Language of the Future

Sample text

In the first few examples of this book, we show the output at the end of the listing, inside a multiline comment. Note that println will take a single value, or a comma-separated sequence of values. We include exercises with each atom from this point forward. com. The solution folders match the names of the atoms. com. 1. Store (and print) the value 17. 2. Using the value you just stored (17), try to change it to 20. What happened? 3. ” 4. ” What happened? 5. 56. Print it. Atomic Scala • Values • 47 Data Types Scala distinguishes different types of values.

Verify your Scala version by typing scala in a shell (This starts the REPL). 11 or greater. 3. Quit the REPL by typing :quit. 40 • Atomic Scala • Installation (Linux) Running Scala The Scala interpreter is also called the REPL (for Read-Evaluate-PrintLoop). You get the REPL when you type scala by itself on the command line. 0_09). Type in expressions to have them evaluated. Type :help for more information. 11 or greater. The REPL gives you immediate interactive feedback, which is helpful for experimentation.

Here, Scala creates a new value of type Double to hold the result. Using types, Scala either adapts to what you need, as above, or if you ask it to do something silly it gives you an error message. 9Sally Does that make any sense? In this case, Scala has rules that tell it how to add a String to a number. The types are important because Scala uses them to figure out what to do. Here, it appends the two values together and creates a String to hold the result. 9 * "Sally" 48 • Atomic Scala • Data Types Combining types this way doesn’t make any sense to Scala, so it gives you an error.

Download PDF sample

Atomic Scala: Learn Programming in the Language of the Future by Dianne Marsh Bruce Eckel


by Ronald
4.0

Rated 4.42 of 5 – based on 29 votes