Cargando…

Scala functional programming patterns : grok and perform effective functional programming in Scala /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Khot, Atul S. (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Publishing, 2015.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Texto completo

MARC

LEADER 00000cam a2200000Ii 4500
001 EBSCO_ocn935257237
003 OCoLC
005 20231017213018.0
006 m o d
007 cr unu||||||||
008 160119s2015 enka o 001 0 eng d
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d OCLCF  |d YDXCP  |d N$T  |d IDEBK  |d VT2  |d COO  |d EBLCP  |d DEBSZ  |d DEBBG  |d IDB  |d OCLCQ  |d MERUC  |d OCLCQ  |d OCLCO  |d CEF  |d UKMGB  |d OCLCQ  |d UAB  |d UKAHL  |d OCLCQ  |d TEFOD  |d OCLCO  |d OCLCQ  |d QGK  |d OCLCO 
015 |a GBB742486  |2 bnb 
016 7 |a 018007014  |2 Uk 
019 |a 933713793  |a 934048095  |a 951974873  |a 1259126596 
020 |a 9781783985852  |q (electronic bk.) 
020 |a 1783985852  |q (electronic bk.) 
020 |a 1783985844 
020 |a 9781783985845 
024 3 |a 9781783985845 
029 1 |a AU@  |b 000057034324 
029 1 |a CHNEW  |b 000884588 
029 1 |a CHVBK  |b 374432880 
029 1 |a DEBBG  |b BV043968664 
029 1 |a DEBSZ  |b 473885239 
029 1 |a DEBSZ  |b 485791714 
029 1 |a GBVCP  |b 882751336 
029 1 |a UKMGB  |b 018007014 
035 |a (OCoLC)935257237  |z (OCoLC)933713793  |z (OCoLC)934048095  |z (OCoLC)951974873  |z (OCoLC)1259126596 
037 |a CL0500000703  |b Safari Books Online 
037 |a F926C9FF-2451-495B-83C6-00BC8701E114  |b OverDrive, Inc.  |n http://www.overdrive.com 
050 4 |a QA76.73.S28 
072 7 |a COM  |x 051010  |2 bisacsh 
082 0 4 |a 005.133  |2 23 
049 |a UAMI 
100 1 |a Khot, Atul S.,  |e author. 
245 1 0 |a Scala functional programming patterns :  |b grok and perform effective functional programming in Scala /  |c Atul S. Khot. 
264 1 |a Birmingham, UK :  |b Packt Publishing,  |c 2015. 
300 |a 1 online resource (1 volume) :  |b illustrations 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file 
490 1 |a Community experience distilled 
588 0 |a Online resource; title from cover page (Safari, viewed January 18, 2016). 
500 |a Includes index. 
520 8 |a Annotation  |b Grok and perform effective functional programming in Scala About This Book Understand functional programming patterns by comparing them with the traditional object-oriented design patterns Write robust, safer, and better code using the declarative programming paradigm An illustrative guide for programmers to create functional programming patterns with ScalaWho This Book Is ForIf you have done Java programming before and have a basic knowledge of Scala and its syntax, then this book is an ideal choice to help you to understand the context, the traditional design pattern applicable, and the Scala way. Having previous knowledge of design patterns will help, though it is not strictly necessary. What You Will Learn Get to know about functional programming and the value Scala's FP idioms bring to the table Solve day-to-day programming problems using functional programming idioms Cut down the boiler-plate and express patterns simply and elegantly using Scala's concise syntax Tame system complexity by reducing the moving parts Write easier to reason about concurrent code using the actor paradigm and the Akka library Apply recursive thinking and understand how to create solutions without mutation Reuse existing code to compose new behavior Combine the object-oriented and functional programming approaches for effective programming using ScalaIn DetailScala is used to construct elegant class hierarchies for maximum code reuse and extensibility and to implement their behavior using higher-order functions. Its functional programming (FP) features are a boon to help you design easy to reason about systems to control the growing software complexities. Knowing how and where to apply the many Scala techniques is challenging. Looking at Scala best practices in the context of what you already know helps you grasp these concepts quickly, and helps you see where and why to use them. This book begins with the rationale behind patterns to help you understand where and why each pattern is applied. You will discover what tail recursion brings to your table and will get an understanding of how to create solutions without mutations. We then explain the concept of memorization and infinite sequences for on-demand computation. Further, the book takes you through Scala's stackable traits and dependency injection, a popular technique to produce loosely-coupled software systems. You will also explore how to currying favors to your code and how to simplify it by de-construction via pattern matching. We also show you how to do pipeline transformations using higher order functions such as the pipes and filters pattern. Then we guide you through the increasing importance of concurrent programming and the pitfalls of traditional code concurrency. Lastly, the book takes a paradigm shift to show you the different techniques that functional programming brings to your plate. This book is an invaluable source to help you understand and perform functional programming and solve common programming problems using Scala's programming patterns. Style and approach This is a hands-on guide to Scala's game-changing features for programming. It is filled with many code examples and figures that illustrate various Scala idioms and best practices. 
505 0 |a Cover; Copyright; Credits; About the Author; Aknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Grokking the Functional Way; Abstractions; Concise expression; Functions; Immutable; Referential transparency; The problem -- grouping continuous integers; Java code; Going scalaish; Thinking recursively ... ; Reusability -- the commonality/variability analysis; The one-liner shockers; Scala idioms; Patterns and those aha! moments; The command design pattern; The strategy design pattern; Passing algorithms around; Summary. 
505 8 |a Chapter 2: Singletons, Factories, and BuildersSingletons -- being one and only one; Null Objects -- singletons in another garb; Null Objects -- the Scala way; Options are container; Scala singletons; The apply() factory method; The factory method pattern; The Scala version; Builders; Ease of object creation; Scala shines again; Summary; Chapter 3: Recursion and Chasing your Own Tail; Recursive structures; Pattern matching; Deconstruction with case statements; Stack overflows; Tail recursion to the rescue; Getting the nth element of a list; An expression parser; Persistent data structures. 
505 8 |a Two forms of recursionSummary; Chapter 4: Lazy sequences -- Being Lazy, Being Good; Illusion and reality -- the proxy pattern; Hibernate's lazy loading; Lazy val -- calling by need; Infinite sequences -- Scala streams; Recursive streams; Memoization and the flyweight pattern; Call by name; Streams are collections; Sieve of Eratosthenes; A view to a collection; Summary; Chapter 5: Taming Multiple Inheritance with Traits; The iterator design pattern; Interfaces as types; The dreaded diamond; Traits -- Scala's rich interfaces; Mix-ins -- rich interfaces; Frills and thrills -- the decorator pattern. 
505 8 |a Scala's easy and breezy decorations -- stackable modificationsDependencies injection pattern; A taste of the cake pattern; Sealed traits; Defeating the dreaded diamond; Summary; Chapter 6: Currying Favors with Your Code; Functions as first-class values; Roping in a scope; Local functions -- hiding and biding their time; The underscore -- Scala's Swiss army knife; A taste of the curry; Type inference; Of implicits and explicits; Stylish blocks; The loan pattern; Serving the curry; Frills and thrills -- decorators again; Wrapping it up; Summary. 
505 8 |a Chapter 7: Of Visitors and Chains of ResponsibilitiesA tale of two hierarchies; The Visitor pattern; Many hues of pattern matching; De-structuring; Typed patterns; Pattern guards; Tuple explosion; Partial functions; Visitor pattern -- the Scala way; Lifting it up; The chain of responsibility; Scalaish Chain Of Responsibilities; Match and mismatch -- the collect idiom; Summary; Chapter 8: Traversals -- Mapping/Filtering/Folding/Reducing; Iterating the Scala way; A validation problem; Setting the stage ; First cut-using arrays; Second cut-using a map; Third cut-using a for expression. 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
590 |a eBooks on EBSCOhost  |b EBSCO eBook Subscription Academic Collection - Worldwide 
650 0 |a Scala (Computer program language) 
650 0 |a Functional programming languages. 
650 6 |a Scala (Langage de programmation) 
650 6 |a Langages de programmation fonctionnels. 
650 7 |a COMPUTERS  |x Programming Languages  |x General.  |2 bisacsh 
650 7 |a Functional programming languages  |2 fast 
650 7 |a Scala (Computer program language)  |2 fast 
776 0 8 |i Print version:  |a Khot, Atul S.  |t Scala Functional Programming Patterns.  |d Birmingham : Packt Publishing, ©2015 
830 0 |a Community experience distilled. 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781783985845/?ar  |z Texto completo 
856 4 0 |u https://ebsco.uam.elogim.com/login.aspx?direct=true&scope=site&db=nlebk&AN=1134521  |z Texto completo 
938 |a Askews and Holts Library Services  |b ASKH  |n AH29891041 
938 |a EBL - Ebook Library  |b EBLB  |n EBL4520766 
938 |a EBSCOhost  |b EBSC  |n 1134521 
938 |a ProQuest MyiLibrary Digital eBook Collection  |b IDEB  |n cis33469504 
938 |a YBP Library Services  |b YANK  |n 12772116 
994 |a 92  |b IZTAP