Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Health and Safety
- Biznes i Ekonomia
- Home and garden
- E-business
- Ekonomia i finanse
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- For women
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Przewodniki po hotelach i restauracjach
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Computer science
- Programming
- Scala for Java Developers. Build reactive, scalable applications and integrate Java code with the power of Scala
E-book details
Log in, If you're interested in the contents of the item.

Scala for Java Developers. Build reactive, scalable applications and integrate Java code with the power of Scala
Ebook
- Scala for Java Developers
- Table of Contents
- Scala for Java Developers
- Credits
- Foreword
- About the Author
- Acknowledgments
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers, and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers, and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 1. Programming Interactively within Your Project
- Advantages of using Scala for Java projects
- More concise and expressive
- Increased productivity
- Natural evolution from Java
- Better fit for asynchronous and concurrent code
- Learning Scala through the REPL
- Declaring val/var variables
- Defining classes
- Explaining case classes
- Operations on collections
- Transforming collections containing primitive types
- Collections of more complex objects
- Filter and partition
- Dealing with tuples
- Introducing Map
- Introducing the Option construct
- A glimpse at pattern matching
- The map method
- Looking at String Interpolation
- The groupBy method
- The foldLeft method
- Summary
- Advantages of using Scala for Java projects
- 2. Code Integration
- Creating a REST API from an existing database
- The sample database
- Setting up a Maven project
- Creating JPA entities and REST web services
- Running and testing the project
- Adding a unit test in Java
- Adding a test in Scala
- Setting up Scala within a Java Maven project
- Scala and Java collaboration
- Converting between collection types
- JavaBean-style properties
- Scala and Java object orientation
- Scala traits as enhanced Java interfaces
- Declaring objects
- Introducing companion objects
- Handling exceptions
- Differences in style between Java and Scala code
- Adjusting the code layout
- Naming conventions
- Summary
- Creating a REST API from an existing database
- 3. Understanding the Scala Ecosystem
- Inheriting Java Integrated Development Environments (IDEs)
- Building with Simple Build Tool (SBT)
- Getting started with SBT
- Creating a sample project
- Importing the project in Eclipse, IntelliJ IDEA, and NetBeans
- Creating a web application that runs on a servlet container
- Using sbt-assembly to build a single .jar archive
- Formatting code with Scalariform
- Getting started with SBT
- Experimenting with Scala Worksheets
- Working with HTTP
- Scalas for comprehension
- Taking advantage of Typesafe Activator
- Creating an application based on activator templates
- The REPL as a scripting engine
- Summary
- 4. Testing Tools
- Writing tests with ScalaTest
- BDD-style testing
- Functional testing
- Mocking with ScalaMock
- Testing with ScalaCheck
- Summary
- Writing tests with ScalaTest
- 5. Getting Started with the Play Framework
- Getting started with the classic Play distribution
- Getting started with the Typesafe Activator
- Architecture of a Play application
- Visualizing the framework stack
- Exploring the request-response lifecycle
- Handling a request in the controller
- Rendering the view
- Playing with authentication
- Practical tips when using Play
- Debugging with Play
- Dealing with version control
- Summary
- 6. Database Access and the Future of ORM
- Integrating an existing ORM Hibernate and JPA
- Making JPA available in Scala
- Dealing with persistence in the Play Framework
- A simple example using Anorm
- Replacing ORM
- Learning about Slick
- Scaffolding a Play application
- Importing test data
- Visualizing the database in the H2browser
- Exploring the code behind the app generation
- Limitations of the playcrud utility
- Summary
- Integrating an existing ORM Hibernate and JPA
- 7. Working with Integration and Web Services
- Binding XML data in Scala
- Running scalaxb from a SOAP web service
- Working with XML and JSON
- Manipulating XML
- Manipulating JSON
- Using Play JSON
- Handling Play requests with XML and JSON
- Mocking Play responses with JSON
- Calling web services from Play
- Summary
- Binding XML data in Scala
- 8. Essential Properties of Modern Applications Asynchrony and Concurrency
- The pillars of Concurrency
- The Async library SIP-22-Async
- Combining web services
- Combining services without await
- Getting started with Akka
- Understanding the Actor model
- Switching behavior
- Supervising actors to handle failure
- Testing actor systems
- Exploring further with Akka
- Summary
- 9. Building Reactive Web Applications
- Describing reactive applications
- Handling streams reactively
- Understanding Iteratees in Play
- Adapting Enumerator with Enumeratee
- Experimenting with WebSockets and Iteratees in Play
- Learning from activator templates
- Reactive stocks
- Reactive real-time search
- The Play-Akka-Angular-WebSocket template
- Playing with Actor Room
- Summary
- 10. Scala Goodies
- Exploring MongoDB
- Entering Casbah
- Applying MapReduce transformations
- Scratching the surface of Big Data
- Introducing DSLs in Scala
- Observing internal DSLs
- Tackling external DSLs through parser combinators
- Introducing Scala.js
- Final tips
- Copying and pasting in the REPL
- Timing code execution in the REPL
- Summary
- Exploring MongoDB
- Index
- Title: Scala for Java Developers. Build reactive, scalable applications and integrate Java code with the power of Scala
- Author: Thomas Alexandre
- Original title: Scala for Java Developers. Build reactive, scalable applications and integrate Java code with the power of Scala.
- ISBN: 9781783283644, 9781783283644
- Date of issue: 2014-04-25
- Format: Ebook
- Item ID: e_3bbq
- Publisher: Packt Publishing