LEADER 05457nam 2200673 450 001 9910458020603321 005 20200520144314.0 010 $a1-78328-364-5 035 $a(CKB)2550000001280806 035 $a(EBL)1644010 035 $a(SSID)ssj0001217072 035 $a(PQKBManifestationID)11837010 035 $a(PQKBTitleCode)TC0001217072 035 $a(PQKBWorkID)11202249 035 $a(PQKB)10421016 035 $a(MiAaPQ)EBC1644010 035 $a(PPN)228039541 035 $a(Au-PeEL)EBL1644010 035 $a(CaPaEBR)ebr10868169 035 $a(CaONFJC)MIL602137 035 $a(OCoLC)878918322 035 $a(EXLCZ)992550000001280806 100 $a20140517h20142014 uy 0 101 0 $aeng 135 $aur|n|---||||| 181 $ctxt 182 $cc 183 $acr 200 10$aScala for Java developers $ebuild reactive, scalable applications and integrate Java code with the power of Scala /$fThomas Alexandre ; cover image by Gre?goire Alexandre 210 1$aBirmingham, England :$cPackt Publishing,$d2014. 210 4$dİ2014 215 $a1 online resource (282 p.) 225 1 $aCommunity Experience Distilled 300 $aIncludes index. 311 $a1-78328-363-7 311 $a1-306-70886-9 327 $aCover; Copyright; Credits; Foreword; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Preface; Chapter 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 327 $aDealing with tuplesIntroducing Map; Introducing the Option construct; A glimpse at pattern matching; The map method; Looking at String Interpolation; The groupBy method; The foldLeft method; Summary; Chapter 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 service; Running and testing the project; 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 327 $aScala traits as enhanced Java interfacesDeclaring objects; Introducing companion objects; Handling exceptions; Differences in style between Java and Scala code; Adjusting the code layout; Naming conventions; Summary; Chapter 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 327 $aFormatting code with ScalariformExperimenting with Scala Worksheets; Working with HTTP; Scala's for comprehension; Taking advantage of Typesafe Activator; Creating an application based on activator templates; The REPL as a scripting engine; Summary; Chapter 4: Testing Tools; Writing tests with ScalaTest; BDD-style testing; Functional testing; Mocking with ScalaMock; Testing with ScalaCheck; Summary; Chapter 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 327 $aVisualizing the framework stackExploring 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; Chapter 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 H2-browser 327 $aExploring the code behind the app generation 330 $aThis step-by-step guide is full of easy-to-follow code taken from real-world examples explaining the migration and integration of Scala in a Java project. If you are a Java developer or a Java architect, working in Java EE-based solutions and want to start using Scala in your daily programming, this book is ideal for you. This book will get you up and running quickly by adopting a pragmatic approach with real-world code samples. No prior knowledge of Scala is required. 410 0$aCommunity experience distilled. 606 $aScala (Computer program language) 606 $aMultiparadigm programming (Computer science)$vCongresses 608 $aElectronic books. 615 0$aScala (Computer program language) 615 0$aMultiparadigm programming (Computer science) 676 $a005.114 700 $aAlexandre$b Thomas$0987608 702 $aAlexandre$b Gre?goire 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910458020603321 996 $aScala for Java developers$92257745 997 $aUNINA