• Complain

Alvin Alexander - Scala Cookbook: Recipes for Object-Oriented and Functional Programming

Here you can read online Alvin Alexander - Scala Cookbook: Recipes for Object-Oriented and Functional Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: OReilly Media, Inc, USA, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Alvin Alexander Scala Cookbook: Recipes for Object-Oriented and Functional Programming
  • Book:
    Scala Cookbook: Recipes for Object-Oriented and Functional Programming
  • Author:
  • Publisher:
    OReilly Media, Inc, USA
  • Genre:
  • Year:
    2021
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Scala Cookbook: Recipes for Object-Oriented and Functional Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Scala Cookbook: Recipes for Object-Oriented and Functional Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Save time and trouble building object-oriented, functional, and concurrent applications with Scala 3. The latest edition of this comprehensive cookbook is packed with more than 250 ready-to-use recipes and 700 code examples to help you solve the most common problems when working with Scala and its popular libraries. Whether youre working on web, big data, or distributed applications, this cookbook provides recipes based on real-world scenarios for experienced Scala developers and for programmers just learning to use this JVM language. Author Alvin Alexander includes practical solutions from his experience using Scala for highly scalable applications that support concurrency and distribution. Recipes cover: Strings, numbers, and control structures Classes, methods, objects, traits, packaging, and imports Functional programming in a variety of situations Building Scala applications with sbt Collections covering Scalas wealth of classes and methods Actors and concurrency List, array, map, set, and more Files, processes, and command-line tasks Web services and interacting with Java Databases and persistence, data types and idioms

Alvin Alexander: author's other books


Who wrote Scala Cookbook: Recipes for Object-Oriented and Functional Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Scala Cookbook: Recipes for Object-Oriented and Functional Programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Scala Cookbook: Recipes for Object-Oriented and Functional Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Scala Cookbook by Alvin Alexander Copyright 2021 Alvin Alexander All rights - photo 1
Scala Cookbook

by Alvin Alexander

Copyright 2021 Alvin Alexander. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Acquisitions Editor: Suzanne McQuade
  • Development Editor: Jeff Bleiel
  • Production Editor: Christopher Faucher
  • Copyeditor: JM Olejarz
  • Proofreader: Athena Lakri
  • Indexer: Potomac Indexing, LLC
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Kate Dullea
  • August 2013: First Edition
  • August 2021: Second Edition
Revision History for the Second Edition
  • 2021-08-09: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781492051541 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Scala Cookbook, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

The views expressed in this work are those of the author, and do not represent the publishers views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-492-05154-1

[LSI]

Dedication

To the Kirn family of Louisville, Kentucky. As in the movie, While You Were Sleeping, I adopted them a long time ago, and my life has never been the same.

And also to my friends who passed away during the creation of this book: Frank, Ben, Kenny, Bill, and Lori.

Preface

This is a cookbook of problem-solving recipes about Scala 3, the most interesting programming language Ive ever used. The book contains solutions to more than two hundred fifty common Scala programming problems, demonstrated with more than one thousand examples.

Compared to other Scala 3 learning resources, there are several unique things about this book:

  • As a cookbook, its intended to save you time by providing solutions to the most common problems youll encounter.

  • The book covers not only the Scala language but also recipes on Scala tools and libraries, including sbt, Spark, Scala.js, Akka actors, and JSON processing with the Play Framework.

  • The book takes a big dive into the Scala collections classes, using five chapters to demonstrate their use.

  • Output from the examples is shown either in the Scala interpreter or in comments after the code. As a result, whether youre sitting by a computer, on a plane, or reading in your favorite recliner, you get the benefit of seeing their exact output. (Which often leads to, Ah, so thats how that works.)

The Scala 3 Language

In the first edition of Scala Cookbook, I described Scala 2 as feeling like a combination of Ruby and Java. Back then I wrote, My (oversimplified) Scala elevator pitch is that its a child of Ruby and Java: its light, concise, and readable like Ruby, but it compiles to class files that you package as JAR files that run on the Java virtual machine (JVM); it uses traits and mixins, and feels dynamic, but its statically typed.

Since then, the Scala language features have been rethought and debated in an open, public process, and with the release of Scala 3 in 2021, the language feels even lighter, and now it seems like a combination of four terrific languages: Ruby and Java, combined with the lightweight and clean syntax of Python and Haskell.

Part of this even-lighter feel is thanks to the new optional braces syntax, which is also known as a significant indentation style. With this one change, for loops that used to look like this:

for(i<-1to5){println(i)}

now look like this:

fori<-1to5doprintln(i)

Similarly, if expressions and many other expressions also use less boilerplate syntax and are easier to read:

valy=if(x==1){true}else{false}// Scala 2valy=ifx==1thentrueelsefalse// Scala 3

While this new syntax is considered optional, its become the de facto standard and is used in this book, the Scala 3 Book that I cowrote for the Scala documentation website, the official Scala 3 training classes on Coursera, the books Programming in Scala by Martin Odersky et al. (Artima Press) and Programming Scala by Dean Wampler (OReilly), and many more learning resources.

The new syntax isnt the only change. Scala 3 has many new features, including:

  • Enumerations

  • Union and intersection types

  • Top-level definitions (so your code no longer has to be contained inside classes, traits, and objects)

  • Simplified use of implicits with the new given and using syntax

  • Greatly simplified syntax for extension methods and type classes

Even the syntax of traits and classes has been simplified to be more readable than ever before:

traitAnimal:defspeak():UnittraitHasTail:defwagTail():UnitclassDogextendsAnimal,HasTail:defspeak()=println("Woof")defwagTail()=println(" ")

With the new syntax, every construct that creates unnecessary noise in your code has been removed.

Scala Features

In addition to everything just stated, Scala provides a multitude of features that make it a unique and truly modern programming language:

  • Its created by Martin Oderskythe father of javacand influenced by Java, Ruby, Smalltalk, ML, Haskell, Python, Erlang, and others.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Scala Cookbook: Recipes for Object-Oriented and Functional Programming»

Look at similar books to Scala Cookbook: Recipes for Object-Oriented and Functional Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Scala Cookbook: Recipes for Object-Oriented and Functional Programming»

Discussion, reviews of the book Scala Cookbook: Recipes for Object-Oriented and Functional Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.