Testing in Scala

Testing in Scala
Author: Daniel Hinojosa
Publsiher: "O'Reilly Media, Inc."
Total Pages: 166
Release: 2013
Genre: Computers
ISBN: 9781449315115

Download Testing in Scala Book in PDF, Epub and Kindle

If you build your Scala application through Test-Driven Development, you'll quickly see the advantages of testing before you write production code. This hands-on book shows you how to create tests with ScalaTest and the Specs2--two of the best testing frameworks available--and how to run your tests in the Simple Build Tool (SBT) designed specifically for Scala projects. By building a sample digital jukebox application, you'll discover how to isolate your tests from large subsystems and networks with mocking code, and how to use the ScalaCheck library for automated specification-based testing. If you're familiar with Scala, Ruby, or Python, this book is for you. Get an overview of Test-Driven Development Start a simple project with SBT and create tests before you write code Dive into SBT's basic commands, interactive mode, packaging, and history Use ScalaTest both in the command line and with SBT, and learn how to incorporate JUnit and TestNG Work with the Specs2 framework, including Specification styles, matchers DSLs, and Data Tables Understand mocking by using Java frameworks EasyMock and Mockito, and the Scala-only framework ScalaMock Automate testing by using ScalaCheck to generate fake data

Programming in Scala

Programming in Scala
Author: Martin Odersky,Lex Spoon,Bill Venners
Publsiher: Artima Inc
Total Pages: 778
Release: 2008
Genre: Computer programming
ISBN: 9780981531601

Download Programming in Scala Book in PDF, Epub and Kindle

A comprehensive step-by-step guide

Scala Test Driven Development

Scala Test Driven Development
Author: Gaurav Sood
Publsiher: Packt Publishing Ltd
Total Pages: 191
Release: 2016-10-27
Genre: Computers
ISBN: 9781786463029

Download Scala Test Driven Development Book in PDF, Epub and Kindle

Build robust Scala applications by implementing the fundamentals of test-driven development in your workflow About This Book Get a deep understanding of various testing concepts such as test-driven development (TDD) and BDD Efficient usage of the built-in Scala features such as ScalaTest, specs2, and Scala check Change your approach towards problem solving by thinking about the boundaries of the problem and its definition rather than focusing on the solution Who This Book Is For This book is for Scala developers who are looking to write better quality and easily maintainable code. No previous knowledge of TDD/BDD is required. What You Will Learn Understand the basics of TDD and its significance Refactoring tests to build APIs in order to increase test coverage How to leverage the inbuilt Scala testing modules like ScalaTest, specs2 and Scala Check Writing test fixtures and apply the concepts of BDD How to divide tests to run at different points in continuous delivery cycle Benefits of refactoring and how it affects the final quality of code produced Understanding of SBT based build environment and how to use it to run tests The fundamentals of mocking and stubbing in Scala and how to use it efficiently In Detail Test-driven development (TDD) produces high-quality applications in less time than is possible with traditional methods. Due to the systematic nature of TDD, the application is tested in individual units as well as cumulatively, right from the design stage, to ensure optimum performance and reduced debugging costs. This step-by-step guide shows you how to use the principles of TDD and built-in Scala testing modules to write clean and fully tested Scala code and give your workflow the change it needs to let you create better applications than ever before. After an introduction to TDD, you will learn the basics of ScalaTest, one of the most flexible and most popular testing tools around for Scala, by building your first fully test-driven application. Building on from that you will learn about the ScalaTest API and how to refactor code to produce high-quality applications. We'll teach you the concepts of BDD (Behavior-driven development) and you'll see how to add functional tests to the existing suite of tests. You'll be introduced to the concepts of Mocks and Stubs and will learn to increase test coverage using properties. With a concluding chapter on miscellaneous tools, this book will enable you to write better quality code that is easily maintainable and watch your apps change for the better. Style and approach This step-by-step guide explains the significance of TDD in Scala through various practical examples. You will learn to write a complete test-driven application throughout the course of the book.

Programming Scala

Programming Scala
Author: Dean Wampler,Alex Payne
Publsiher: "O'Reilly Media, Inc."
Total Pages: 450
Release: 2009-09-15
Genre: Computers
ISBN: 9781449379261

Download Programming Scala Book in PDF, Epub and Kindle

Learn how to be more productive with Scala, a new multi-paradigm language for the Java Virtual Machine (JVM) that integrates features of both object-oriented and functional programming. With this book, you'll discover why Scala is ideal for highly scalable, component-based applications that support concurrency and distribution. Programming Scala clearly explains the advantages of Scala as a JVM language. You'll learn how to leverage the wealth of Java class libraries to meet the practical needs of enterprise and Internet projects more easily. Packed with code examples, this book provides useful information on Scala's command-line tools, third-party tools, libraries, and available language-aware plugins for editors and IDEs. Learn how Scala's succinct and flexible code helps you program faster Discover the notable improvements Scala offers over Java's object model Get a concise overview of functional programming, and learn how Scala's support for it offers a better approach to concurrency Know how to use mixin composition with traits, pattern matching, concurrency with Actors, and other essential features Take advantage of Scala's built-in support for XML Learn how to develop domain-specific languages Understand the basics for designing test-driven Scala applications

Scala in Action

Scala in Action
Author: Nilanjan Raychaudhuri
Publsiher: Simon and Schuster
Total Pages: 594
Release: 2013-04-08
Genre: Computers
ISBN: 9781638352419

Download Scala in Action Book in PDF, Epub and Kindle

Summary Scala in Action is a comprehensive tutorial that introduces Scala through clear explanations and numerous hands-on examples. Because Scala is a rich and deep language, it can be daunting to absorb all the new concepts at once. This book takes a "how-to" approach, explaining language concepts as you explore familiar programming challenges that you face in your day-to-day work. About the Technology Scala runs on the JVM and combines object-orientation with functional programming. It's designed to produce succinct, type-safe code, which is crucial for enterprise applications. Scala implements Actor-based concurrency through the amazing Akka framework, so you can avoid Java's messy threading while interacting seamlessly with Java. About this Book Scala in Action is a comprehensive tutorial that introduces the language through clear explanations and numerous hands-on examples. It takes a "how to" approach, explaining language concepts as you explore familiar programming tasks. You'll tackle concurrent programming in Akka, learn to work with Scala and Spring, and learn how to build DSLs and other productivity tools. You'll learn both the language and how to use it. Experience with Java is helpful but not required. Ruby and Python programmers will also find this book accessible. What's Inside A Scala tutorial How to use Java and Scala open source libraries How to use SBT Test-driven development Debugging Updated for Scala 2.10 Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Author Nilanjan Raychaudhuri is a skilled developer, speaker, and an avid polyglot programmer who works with Scala on production systems. Table of Contents PART 1 SCALA: THE BASICS Why Scala? Getting started OOP in Scala Having fun with functional data structures Functional programming PART 2 WORKING WITH SCALA Building web applications in functional style Connecting to a database Building scalable and extensible components Concurrency programming in Scala Building confidence with testing PART 3 ADVANCED STEPS Interoperability between Scala and Java Scalable and distributed applications using Akka

Lift in Action

Lift in Action
Author: Tim Perrett
Publsiher: Simon and Schuster
Total Pages: 618
Release: 2011-11-17
Genre: Computers
ISBN: 9781638352983

Download Lift in Action Book in PDF, Epub and Kindle

Summary Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained examples that make you comfortable from the start. This book is written for developers who are new to both Scala and Lift. About the Technology Lift is a Scala-based web framework designed for extremely interactive and engaging web applications. It's highly scalable, production-ready, and will run in any servlet container. And Lift's convention-over-configuration approach lets you avoid needless work. About this Book Lift in Action is a step-by-step exploration of the Lift framework. It moves through the subject quickly using carefully crafted, well-explained examples that make you comfortable from the start. You'll follow an entertaining Travel Auction application that covers the core concepts and shows up architectural and development strategies. Handy appendixes offer a Scala crash course and guidance for setting up a good coding environment. This book is written for developers who are new to both Scala and Lift and covers just enough Scala to get you started. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. What's Inside Complete coverage of the Lift framework Security, maintainability, and performance Integration and scaling Covers Lift 2.x Table of Contents PART 1 GETTING STARTED Introducing Lift Hello Lift PART 2 APPLICATION TUTORIAL The auction application Customers, auctions, and bidding Shopping basket and checkout PART 3 LIFT IN DETAIL Common tasks with Lift WebKit SiteMap and access control HTTP in Lift AJAX, wiring, and Comet Persistence with Mapper Persistence with Record

Learn Scala Programming

Learn Scala Programming
Author: Slava Schmidt
Publsiher: Packt Publishing Ltd
Total Pages: 498
Release: 2018-10-31
Genre: Computers
ISBN: 9781788830997

Download Learn Scala Programming Book in PDF, Epub and Kindle

A step-by-step guide in building high-performance scalable applications with the latest features of Scala. Key FeaturesDevelop a strong foundation in functional programming and Scala's Standard Library (STL)Get a detailed coverage of Lightbend Lagom—the latest microservices framework from LightbendUnderstand the Akka framework and learn event-based Programming with Scala Book Description The second version of Scala has undergone multiple changes to support features and library implementations. Scala 2.13, with its main focus on modularizing the standard library and simplifying collections, brings with it a host of updates. Learn Scala Programming addresses both technical and architectural changes to the redesigned standard library and collections, along with covering in-depth type systems and first-level support for functions. You will discover how to leverage implicits as a primary mechanism for building type classes and look at different ways to test Scala code. You will also learn about abstract building blocks used in functional programming, giving you sufficient understanding to pick and use any existing functional programming library out there. In the concluding chapters, you will explore reactive programming by covering the Akka framework and reactive streams. By the end of this book, you will have built microservices and learned to implement them with the Scala and Lagom framework. What you will learnAcquaint yourself with the new standard library of Scala 2.13Get to grips with the Grok functional paradigmsGet familiar with type system to express domain constraintsUnderstand the actor model and different Akka librariesGrasp the concept of building microservices using Lagom frameworkDeep dive into property-based testing and its practical applicationsWho this book is for This book is for beginner to intermediate level Scala developers who would like to advance and gain knowledge of the intricacies of the Scala language, expand their functional programming tools, and explore actor-based concurrency models.

Beginning Scala

Beginning Scala
Author: David Pollak
Publsiher: Apress
Total Pages: 312
Release: 2009-10-01
Genre: Computers
ISBN: 9781430219903

Download Beginning Scala Book in PDF, Epub and Kindle

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.