ebook img

Scala Design Patterns: Patterns for Practical Reuse and Design PDF

324 Pages·2013·9.498 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Scala Design Patterns: Patterns for Practical Reuse and Design

John Hunt Scala Design Patterns Patterns for Practical Reuse and Design Scala Design Patterns John Hunt Scala Design Patterns Patterns for Practical Reuse and Design Dr. John Hunt Department of Computer Science and Creative Technologies University of the West of England Bristol, United Kingdom ISBN 978-3-319-02191-1 ISBN 978-3-319-02192-8 (eBook) DOI 10.1007/978-3-319-02192-8 Springer Cham Heidelberg New York Dordrecht London Library of Congress Control Number: 2013955031 © Springer International Publishing Switzerland 2013 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifi cally the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfi lms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifi cally for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specifi c statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Printed on acid-free paper Springer is part of Springer Science+Business Media (www.springer.com) This book is dedicated to my children . Author’ s Note I would like to thank several people who have contributed to my understanding and appreciation for Scala. These people helped through discussions, explanations and as sounding boards. They include Paul Storer-Martin, George Ball, Ivan O’Mahony, Theo Mauger and Yan Tordoff. All the source code examples presented in this book can be found at Springer Extras ( h ttp://extras.springer.com) by searching for the book’s ISBN (978-3-319-02191-1). vii Contents Part I Introduction 1 Introduction ............................................................................................. 3 1.1 Introduction ...................................................................................... 3 1.2 Introduction to Scala ........................................................................ 4 1.3 What Is Scala? .................................................................................. 6 1.4 The Class Person .............................................................................. 7 1.5 Functional Programming .................................................................. 8 1.6 A Hybrid Language .......................................................................... 9 1.7 Scala Oriented Patterns .................................................................... 10 1.8 Resources.......................................................................................... 11 Reference ................................................................................................... 11 2 Design Patterns ........................................................................................ 13 2.1 Introduction ...................................................................................... 13 2.2 Motivation Behind Patterns .............................................................. 14 2.3 Design Patterns ................................................................................. 15 2.3.1 What Are Design Patterns? ................................................. 15 2.3.2 What They Are Not? ............................................................ 15 2.3.3 Architectural Patterns .......................................................... 16 2.3.4 Documenting Patterns ......................................................... 16 2.3.5 When to Use Patterns .......................................................... 18 2.3.6 Strengths and Limitations of Design Patterns ..................... 18 2.4 Fundamental Patterns ....................................................................... 19 2.5 Code Reuse Patterns ......................................................................... 19 2.6 GoF Design Patterns ......................................................................... 19 2.7 Functional Patterns ........................................................................... 20 2.8 Patterns and Scala ............................................................................. 20 2.9 Further Reading ................................................................................ 21 References ................................................................................................. 21 ix

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.