Cargando…

Design Patterns and Best Practices in Java : a Comprehensive Guide to Building Smart and Reusable Code in Java.

Having a knowledge of design patterns enables you, as a developer, to improve your code base, promote code reuse, and make the architecture more robust. As languages evolve, new features take time to fully understand before they are adopted en masse. The mission of this book is to ease the adoption...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Singh, Kamalmeet
Otros Autores: Ianculescu, Adrian, TORJE, LUCIAN-PAUL
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Intro; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: From Object-Oriented to Functional Programming; Java
  • an introduction; Java programming paradigms; Imperative programming; Real-life imperative example; Object-oriented paradigm; Objects and classes; Encapsulation; Abstraction; Inheritance; Polymorphism; Declarative programming; Functional programming; Working with collections versus working with streams; An introduction to Unified Modeling Language; Class relations; Generalization; Realization; Dependency; Association; Aggregation.
  • CompositionDesign patterns and principles; Single responsibility principle; Open/closed principle; Liskov Substitution Principle; Interface Segregation Principle; Dependency inversion principle; Summary; Chapter 2: Creational Patterns; Singleton pattern; Synchronized singletons; Synchronized singleton with double-checked locking mechanism; Lock-free thread-safe singleton; Early and lazy loading; The factory pattern; Simple factory pattern; Static factory; Simple factory with class registration using reflection; Simple factory with class registration using Product.newInstance.
  • Factory method patternAnonymous concrete factory; Abstract factory; Simple factory versus factory method versus abstract factory; Builder pattern; Car builder example; Simplified builder pattern; Anonymous builders with method chaining; Prototype pattern; Shallow clone versus deep clone; Object pool pattern; Summary; Chapter 3: Behavioral Patterns; The chain-of-responsibility pattern; Intent; Implementation; Applicability and examples; The command pattern; Intent; Implementation; Applicability and examples; The interpreter pattern; Intent; Implementation; Applicability and examples.
  • The iterator patternIntent; Implementation; Applicability and examples; The observer pattern; Intent; Implementation; The mediator pattern; Intent; Implementation; Applicability and examples; The memento pattern; Intent; Implementation; Applicability; The state pattern; The strategy pattern; Intent; Implementation; The template method pattern; Intent; Implementation; The null object pattern; Implementation; The visitor pattern; Intent; Implementation; Summary; Chapter 4: Structural Patterns; Adapter pattern; Intent; Implementation; Examples; Proxy pattern; Intent; Implementation; Examples.
  • Decorator patternIntent; Implementation; Examples; Bridge pattern; Intent; Implementation; Examples; Composite pattern; Intent; Implementation; Examples; Façade pattern; Intent; Implementation; Examples; Flyweight pattern; Intent; Implementation; Examples; Summary; Chapter 5: Functional Patterns; Introducing functional programming; Lambda expressions; Pure functions; Referential transparency; First-class functions; Higher-order functions; Composition; Currying; Closure; Immutability; Functors; Applicatives; Monads; Introducing functional programming in Java; Lambda expressions; Streams.