• Complain

Jason Swartz - Learning Scala

Here you can read online Jason Swartz - Learning Scala full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2014, publisher: OReilly Media, genre: Home and family. 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.

Jason Swartz Learning Scala

Learning Scala: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Learning Scala" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Why learn Scala? You dont need to be a data scientist or distributed computing expert to appreciate this object-oriented functional programming language. This practical book provides a comprehensive yet approachable introduction to the language, complete with syntax diagrams, examples, and exercises. Youll start with Scalas core types and syntax before diving into higher-order functions and immutable data structures.

Author Jason Swartz demonstrates why Scalas concise and expressive syntax make it an ideal language for Ruby or Python developers who want to improve their craft, while its type safety and performance ensures that its stable and fast enough for any application.

  • Learn about the core data types, literals, values, and variables
  • Discover how to think and write in expressions, the foundation for Scalas syntax
  • Write higher-order functions that accept or return other functions
  • Become familiar with immutable data structures and...
  • Jason Swartz: author's other books


    Who wrote Learning Scala? Find out the surname, the name of the author of the book and a list of all author's works by series.

    Learning Scala — 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 "Learning Scala" 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
    Learning Scala
    Jason Swartz
    Beijing Cambridge Farnham Kln Sebastopol Tokyo Dedication For my loving wife - photo 1

    Beijing Cambridge Farnham Kln Sebastopol Tokyo

    Dedication

    For my loving wife, who foresees great prospects; and for my loving daughter, who also foresees the first printed copy coming her way.

    Preface

    Welcome to Learning Scala . In this book I will provide you with a comprehensive yet approachable introduction to the Scala programming language.

    Who This Book Is For

    This book is meant for developers who have worked in object-oriented languages such as Java, Ruby, or Python and are interested in improving their craft by learning Scala. Java developers will recognize the core object-oriented, static typing and generic collections in Scala. However, they may be challenged to switch to Scalas more expressive and flexible syntax, and the use of immutable data and function literals to solve problems. Ruby and Python developers will be familiar with the use of function literals (aka closures or blocks) to work with collections, but may be challenged with its static, generic-supporting type system.

    For these and any other developers who want to learn how to develop in the Scala programming language, this book provides an organized and examples-based guide that follows a gradual learning curve.

    Why Write Learning Scala?

    When I picked up Scala in early 2012, I found the process of learning the language was longer and more challenging than it ought to be. The available books on Scala did cover the core features of the language. However, I found it difficult to switch from Java to Scalas unfamiliar syntax, its preference for immutable data structures, and its sheer extensibility. It took me several weeks to become comfortable writing new code, several months to fully understand other developers code, and up to a year to figure out the more advanced features of the language.

    I chose to write this book so that future developers will have an easier time learning the language. Now, even using this book the process of learning Scala wont be easy ; picking up new skills is always going to be challenging, and learning a new language with an unfamiliar syntax and new methodologies is going to take dedication and lots of work. However, this book at least should make the process easier. Hopefully it will ensure that more developers than before will pick up Scala, and also become capable enough to work with it as their main language.

    Why Learn Scala (or, Why Should You Read Learning Scala)?

    I enjoy developing with Scala and highly recommend it to anyone writing server applications and other types of programs suitable for Java-like languages. If you are working in domains suitable for running the Java Virtual Machine such as web applications, services, jobs, or data processing, then Ill certainly recommend that you try using Scala.

    Heres why you should take this advice and learn to develop in Scala.

    Reason 1Your Code Will Be Better

    You will be able to start using functional programming techniques to stabilize your applications and reduce issues that arise from unintended side effects. By switching from mutable data structures to immutable data structures and from regular methods to pure functions that have no effect on their environment, your code will be safer, more stable, and much easier to comprehend.

    Your code will also be simpler and more expressive. If you currently work in a dynamic language such as Python, Ruby, or JavaScript, you already are familiar with the benefits of using a short, expressive syntax, avoiding unnecessary punctuation, and condensing map, filter, and reduce operations to simple one-liners. If you are more familiar with statically typed languages like Java, C#, or C++, youll be able to shed explicit types, punctuation, and boilerplate code. You will also be able to pick up an expressive syntax rarely seen in other compiled languages.

    Finally, your code will be strongly typed (even without specifying explicit types) and support both multiple inheritance and mixin capabilities. Also, any type incompatibilities will be caught before your code ever runs. Developers in statically typed languages will be familiar with the type safety and performance available in Scala. Those using dynamic languages will be able to drastically increase safety and performance while staying with an expressive language.

    Reason 2Youll Be a Better Engineer

    An engineer who can write short and expressive code (as one expects in Ruby or Python) while also delivering a type-safe and high-performance application (as one expects from Java or C++) would be considered both impressive and valuable. I am assuming that if you read this book and take up Scala programming you will be writing programs that have all of these benefits. Youll be able to take full advantage of Scalas functional programming features, deliver type-safe and expressive code, and be more productive than you have ever been.

    Learning any new programming language is a worthwhile endeavor, because youll pick up new and different ways to approach problem solving and algorithm and data structure design, along with ways to express these new techniques in a foreign syntax. On top of this, taking up a functional programming language like Scala will help to shape how you view the concepts of data mutability, higher-order functions, and side effects, not only as new ideas but how they apply to your current coding work and designs. You may find that working with inline functions and static types are unnecessary for your current needs, but youll have some experience with their benefits and drawbacks. Plus, if it becomes possible to apply these features in a partial manner to your current language, such as the new lambda expression support in Java 8, youll be ready to handle them appropriately.

    Reason 3Youll Be a Happier Engineer

    This is admittedly a bold statement from someone you havent met and who shouldnt presume to know what effect Scala development will have on your brain. Ill only state that if your code proficiency improves to the point that you are easily writing code that works better, reads better, debugs better, and runs faster than before, and on top of all this takes less time to write, youre going to be happier doing so.

    Not that life is all about coding, of course. Nor does the work schedule of average software engineers involve more than half of their time spent actually writing code.

    But that time spent writing code will be more fun, and youll be able to take more pride in your work. That should be reason enough to learn something new.

    Why Learning Scala May Not Be for You

    You should know that Scala has a reputation for being difficult to learn. The language combines two apparently conflicting software engineering paradigms: object-oriented programming and functional programming. This synergy will be surprising to newcomers and the resulting syntax takes some practice to pick up. Scala also has a sophisticated type system that enables custom typing declarations at a level rarely seen outside of academic languages. Ascertaining the syntax and utility of this type system will be challenging, especially if you do not have academic experience with abstract algebra or type theory.

    If you do not have enough time to spend on reading this book and going through its exercises, or alternately prefer more challenging or theoretical routes to learning the language, then this book may not be suitable for you.

    Next page
    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make

    Similar books «Learning Scala»

    Look at similar books to Learning Scala. 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 «Learning Scala»

    Discussion, reviews of the book Learning Scala 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.