Amazon cover image
Image from Amazon.com

.NET Design Patterns / Praseed Pai, Shine Xavier.

By: Contributor(s): Material type: TextTextPublication details: Birmingham, UK : Packt Publishing, 2016.Description: 1 online resource (307 pages)Content type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 9781786461865
  • 1786461862
Subject(s): Genre/Form: Additional physical formats: Print version:: .NET Design Patterns.DDC classification:
  • 005.133 23
LOC classification:
  • QA76.76.P37
Online resources:
Contents:
Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewers; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: An Introduction to Patterns and Pattern Catalogs; OOP -- A short history; Patterns and pattern movement; Key pattern catalogs; GoF patterns; POSA catalog; POEAA catalog; EIP catalog; J2EE design patterns catalog; DDD-based patterns; Arlow/Nuestadt patterns; Should we use all of these?; The C# language and the .NET platform; C# language and the singleton pattern; Summary; Chapter 2: Why We Need Design Patterns?
Some principles of software developmentWhy are patterns required?; A quick foray into the .NET Reflection API; Personal income tax computation -- A case study; Archetypes and business archetype patterns; Entity, value, and data transfer objects; A computation engine; The application to engine communication; The plugin system to make system extensible; Factory method pattern and plugins; Finalizing the solution; Design by contract and template method pattern; Using the Facade pattern to expose the computation API; Summary; Chapter 3: A Logging Library; Requirements for the library.
Solutions approachWriting content to a media; Template method pattern and content writers; Writing a log entry to a file stream; Writing a log entry to a database; Writing a log entry to a network stream; Logging strategy atop the strategy pattern; The factory method pattern for instantiation; Writing a generic factory method implementation; Factory method, singleton, and prototype pattern for dynamic class loading; Refactoring the code with the generic factory method; A log server for network logging; A simple client program to test the library; Summary.
Chapter 4: Targeting Multiple DatabasesRequirements for the library; Solutions approach; A quick primer on ADO.net; The abstract factory pattern and object instantiation; The SQL server implementation; The SQLite implementation; The Oracle and ODBC implementation; The adapter pattern powered API; The adapter class Implementation; The adapter configuration; The client program; Summary; Chapter 5: Producing Tabular Reports; Requirements for the library; Solutions approach; iTextSharp for the PDF output; Composite and visitor pattern -- A quick primer.
The composite pattern and document compositionVisitor pattern for document traversal; PDFVisitor for PDF generation; HTMLVisitor for HTML generation; The client program; Summary; Chapter 6: Plotting Mathematical Expressions; Requirements for the expressions library and app; Solutions approach; The graph plotter application; The observer pattern for UI events; The expression evaluator and interpreter pattern; The abstract syntax tree (AST); The grammar of expressions; Lexical analysis; The parser module; The builder, facade, and expression APIs; Summary.
Summary: Explore the world of .NET design patterns and bring the benefits that the right patterns can offer to your toolkit today About This Book This book is based on the latest version of .NET, .NET Core 1.0. The code is explained piece by piece and the application of the pattern is also showcased. This fast-paced guide shows you how to implement the patterns into your existing applications Who This Book Is For This book is for those with familiarity with .NET development who would like to take their skills to the next level and be in the driver's seat when it comes to modern development techniques. Basic object-oriented C# programming experience and an elementary familiarity with the .NET framework library is required. What You Will Learn Put patterns and pattern catalogs into the right perspective Apply patterns for software development under C#/.NET Use GoF and other patterns in real-life development scenarios Be able to enrich your design vocabulary and well articulate your design thoughts Leverage object/functional programming by mixing OOP and FP Understand the reactive programming model using Rx and RxJs Writing compositional code using C# LINQ constructs Be able to implement concurrent/parallel programming techniques using idioms under .NET Avoiding pitfalls when creating compositional, readable, and maintainable code using imperative, functional, and reactive code. In Detail Knowing about design patterns enables developers to improve their code base, promoting code reuse and making their design more robust. This book focuses on the practical aspects of programming in .NET. You will learn about some of the relevant design patterns (and their application) that are most widely used. We start with classic object-oriented programming (OOP) techniques, evaluate parallel programming and concurrency models, enhance implementations by mixing OOP and functional programming, and finally to the reactive programming model where functional programming and OOP are used in synergy to write better code. Throughout this book, we'll show you how to deal with architecture/design techniques, GoF patterns, relevant patterns from other catalogs, functional programming, and reactive programming techniques. After reading this book, you will be able to convincingly leverage these design patterns (factory pattern, builder pattern, prototype pattern, adapter pattern, facade pattern, decorator pattern, observer pattern and so on) for your programs. You will also be able...
Item type:
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Home library Collection Call number Materials specified Status Date due Barcode
Electronic-Books Electronic-Books OPJGU Sonepat- Campus E-Books EBSCO Available

Print version record.

Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewers; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: An Introduction to Patterns and Pattern Catalogs; OOP -- A short history; Patterns and pattern movement; Key pattern catalogs; GoF patterns; POSA catalog; POEAA catalog; EIP catalog; J2EE design patterns catalog; DDD-based patterns; Arlow/Nuestadt patterns; Should we use all of these?; The C# language and the .NET platform; C# language and the singleton pattern; Summary; Chapter 2: Why We Need Design Patterns?

Some principles of software developmentWhy are patterns required?; A quick foray into the .NET Reflection API; Personal income tax computation -- A case study; Archetypes and business archetype patterns; Entity, value, and data transfer objects; A computation engine; The application to engine communication; The plugin system to make system extensible; Factory method pattern and plugins; Finalizing the solution; Design by contract and template method pattern; Using the Facade pattern to expose the computation API; Summary; Chapter 3: A Logging Library; Requirements for the library.

Solutions approachWriting content to a media; Template method pattern and content writers; Writing a log entry to a file stream; Writing a log entry to a database; Writing a log entry to a network stream; Logging strategy atop the strategy pattern; The factory method pattern for instantiation; Writing a generic factory method implementation; Factory method, singleton, and prototype pattern for dynamic class loading; Refactoring the code with the generic factory method; A log server for network logging; A simple client program to test the library; Summary.

Chapter 4: Targeting Multiple DatabasesRequirements for the library; Solutions approach; A quick primer on ADO.net; The abstract factory pattern and object instantiation; The SQL server implementation; The SQLite implementation; The Oracle and ODBC implementation; The adapter pattern powered API; The adapter class Implementation; The adapter configuration; The client program; Summary; Chapter 5: Producing Tabular Reports; Requirements for the library; Solutions approach; iTextSharp for the PDF output; Composite and visitor pattern -- A quick primer.

The composite pattern and document compositionVisitor pattern for document traversal; PDFVisitor for PDF generation; HTMLVisitor for HTML generation; The client program; Summary; Chapter 6: Plotting Mathematical Expressions; Requirements for the expressions library and app; Solutions approach; The graph plotter application; The observer pattern for UI events; The expression evaluator and interpreter pattern; The abstract syntax tree (AST); The grammar of expressions; Lexical analysis; The parser module; The builder, facade, and expression APIs; Summary.

Chapter 7: Patterns in the .NET Base Class Library.

Explore the world of .NET design patterns and bring the benefits that the right patterns can offer to your toolkit today About This Book This book is based on the latest version of .NET, .NET Core 1.0. The code is explained piece by piece and the application of the pattern is also showcased. This fast-paced guide shows you how to implement the patterns into your existing applications Who This Book Is For This book is for those with familiarity with .NET development who would like to take their skills to the next level and be in the driver's seat when it comes to modern development techniques. Basic object-oriented C# programming experience and an elementary familiarity with the .NET framework library is required. What You Will Learn Put patterns and pattern catalogs into the right perspective Apply patterns for software development under C#/.NET Use GoF and other patterns in real-life development scenarios Be able to enrich your design vocabulary and well articulate your design thoughts Leverage object/functional programming by mixing OOP and FP Understand the reactive programming model using Rx and RxJs Writing compositional code using C# LINQ constructs Be able to implement concurrent/parallel programming techniques using idioms under .NET Avoiding pitfalls when creating compositional, readable, and maintainable code using imperative, functional, and reactive code. In Detail Knowing about design patterns enables developers to improve their code base, promoting code reuse and making their design more robust. This book focuses on the practical aspects of programming in .NET. You will learn about some of the relevant design patterns (and their application) that are most widely used. We start with classic object-oriented programming (OOP) techniques, evaluate parallel programming and concurrency models, enhance implementations by mixing OOP and functional programming, and finally to the reactive programming model where functional programming and OOP are used in synergy to write better code. Throughout this book, we'll show you how to deal with architecture/design techniques, GoF patterns, relevant patterns from other catalogs, functional programming, and reactive programming techniques. After reading this book, you will be able to convincingly leverage these design patterns (factory pattern, builder pattern, prototype pattern, adapter pattern, facade pattern, decorator pattern, observer pattern and so on) for your programs. You will also be able...

eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide

There are no comments on this title.

to post a comment.

O.P. Jindal Global University, Sonepat-Narela Road, Sonepat, Haryana (India) - 131001

Send your feedback to glus@jgu.edu.in

Hosted, Implemented & Customized by: BestBookBuddies   |   Maintained by: Global Library