Zum Hauptinhalt springen
Nicht aus der Schweiz? Besuchen Sie lehmanns.de

Beginning SOLID Principles and Design Patterns for ASP.NET Developers (eBook)

(Autor)

eBook Download: PDF
2016 | 1st ed.
XXI, 399 Seiten
Apress (Verlag)
978-1-4842-1848-8 (ISBN)

Lese- und Medienproben

Beginning SOLID Principles and Design Patterns for ASP.NET  Developers - Bipin Joshi
Systemvoraussetzungen
89,99 inkl. MwSt
(CHF 87,90)
Der eBook-Verkauf erfolgt durch die Lehmanns Media GmbH (Berlin) zum Preis in Euro inkl. MwSt.
  • Download sofort lieferbar
  • Zahlungsarten anzeigen

This book teaches you all the essential knowledge required to learn and apply time-proven SOLID principles of object-oriented design and important design patterns in ASP.NET Core 1.0 (formerly ASP.NET 5) applications. You will learn to write server-side as well as client-side code that makes use of proven practices and patterns.

SOLID is an acronym popularized by Robert Martin used to describe five basic principles of good object-oriented design--Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation and Dependency Inversion.   This book covers all five principles and illustrates how they can be used in ASP.NET Core 1.0 applications.

Design Patterns are time proven solutions to commonly occurring software design problems. The most well-known catalog of design patterns comes from Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, the so-called as GoF patterns (Gang of Four patterns). This book contains detailed descriptions of how to apply Creational, Structural and Behavioral GoF design patterns along with some Patterns of Enterprise Application Architecture. Popular JavaScript patterns are covered, along with working examples of all these patterns in ASP.NET Core 1.0 and C# are included.


What You Will Learn:

  • How to apply SOLID principles to ASP.NET applications
  • How to use Gang of Four (GoF) design patterns in ASP.NET applications
  •  Techniques for applying Patterns of Enterprise Application Architecture cataloged by Martin Fowler in ASP.NET applications
  • How to organize code and apply design patterns in JavaScript


Who This Book Is For:
This book is for ASP.NET developers familiar with ASP.NET Core 1.0, C# and Visual Studio.


Bipin Joshi is a software consultant, a trainer and an author with 20+ years of experience in software development. He conducts professional training programs on ASP.NET and web technologies through his own company- BinaryIntellect Consulting. Bipin has authored or co-authored more than half a dozen books and numerous articles on .NET technologies. He has worked with .NET ever since its inception and was awarded as a Microsoft MVP between 2002 and 2008. He was also a Microsoft Certified Trainer during that period. 
This book teaches you all the essential knowledge required to learn and apply time-proven SOLID principles of object-oriented design and important design patterns in ASP.NET Core 1.0 (formerly ASP.NET 5) applications. You will learn to write server-side as well as client-side code that makes use of proven practices and patterns.SOLID is an acronym popularized by Robert Martin used to describe five basic principles of good object-oriented design--Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation and Dependency Inversion.   This book covers all five principles and illustrates how they can be used in ASP.NET Core 1.0 applications.Design Patterns are time proven solutions to commonly occurring software design problems. The most well-known catalog of design patterns comes from Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, the so-called as GoF patterns (Gang of Four patterns). This book contains detailed descriptions of how toapply Creational, Structural and Behavioral GoF design patterns along with some Patterns of Enterprise Application Architecture. Popular JavaScript patterns are covered, along with working examples of all these patterns in ASP.NET Core 1.0 and C# are included.What You Will Learn:How to apply SOLID principles to ASP.NET applicationsHow to use Gang of Four (GoF) design patterns in ASP.NET applications Techniques for applying Patterns of Enterprise Application Architecture cataloged by Martin Fowler in ASP.NET applicationsHow to organize code and apply design patterns in JavaScriptWho This Book Is For:This book is for ASP.NET developers familiar with ASP.NET Core 1.0, C# and Visual Studio.

Bipin Joshi is a software consultant, a trainer and an author with 20+ years of experience in software development. He conducts professional training programs on ASP.NET and web technologies through his own company– BinaryIntellect Consulting. Bipin has authored or co-authored more than half a dozen books and numerous articles on .NET technologies. He has worked with .NET ever since its inception and was awarded as a Microsoft MVP between 2002 and 2008. He was also a Microsoft Certified Trainer during that period. 

Contents at a Glance 6
Contents 8
About the Author 16
About the Technical Reviewer 18
Introduction 20
Chapter 1: Overview of SOLID Principles and Design Patterns 23
Overview of Object-Oriented Programming 23
Classes and Objects 24
Abstraction 24
Encapsulation 25
Inheritance 28
Abstract Classes and Interfaces 29
Polymorphism 31
Polymorphic Behavior Through Inheritance 31
Polymorphic Behavior Through Interfaces 34
Overview of SOLID Principles 36
Single Responsibility Principle (SRP) 37
Open/Closed Principle (OCP) 37
Liskov Substitution Principle (LSP) 37
Interface Segregation Principle (ISP) 38
Dependency Inversion Principle (DIP) 38
Design Patterns 38
Gang of Four Design Patterns 39
Categorization of GoF Patterns 39
Creational Design Patterns 40
Structural Design Patterns 40
Behavioral Design Patterns 40
Martin Fowler’s Patterns of Enterprise Application Architecture 41
Categorization of P of EAA 42
Design Patterns in JavaScript 42
Applying Design Principles and Patterns 43
You Are Already Using Patterns! A Few Examples 44
Creating an ASP.NET 5 Application Using MVC 6 and Entity Framework 7 45
Creating a Web Application Using Visual Studio 46
Configuring Project Dependencies 50
Configuring Application Settings 51
Configuring Application Startup 52
Creating DbContext and Model 55
Creating the HomeController 56
Creating the Index and AddContact Views 58
Creating the ContactDb Database 62
Going Forward: From ASP.NET 5 to ASP.NET Core 1.0 65
Summary 66
Chapter 2: SOLID Principles 67
Single Responsibility Principle (SRP) 67
Open/Closed Principle (OCP) 76
Liskov Substitution Principle (LSP) 83
Interface Segregation Principle (ISP) 96
Dependency Inversion Principle (DIP) 102
Summary 107
Chapter 3: Creational Patterns: Singleton, Factory Method, and Prototype 108
Overview of Creational Design Patterns 108
Singleton 109
Design and Explanation 110
Example 110
Factory Method 115
Design and Explanation 115
Example 116
Prototype 124
Design and Explanation 124
Example 125
Implementing Deep Copy 129
Summary 130
Chapter 4: Creational Patterns: Abstract Factory and Builder 131
Abstract Factory 131
Design and Explanation 131
Example 132
Storing Factory Settings 142
Storing Factory Name in the Configuration File 143
Storing Factory Type Name in the Configuration File 144
Builder 145
Design and Explanation 145
Example 146
Summary 154
Chapter 5: Structural Patterns: Adapter, Bridge, Composite, and Decorator 155
An Overview of Structural Patterns 155
Adapter 156
Design and Explanation 156
Example 157
Object Adapter vs. Class Adapter 163
Bridge 164
Design and Explanation 165
Example 166
Composite 172
Design and Explanation 173
Example 173
Decorator 179
Design and Explanation 180
Example 181
Summary 186
Chapter 6: Structural Patterns: Façade, Flyweight, and Proxy 187
Façade 187
Design and Explanation 188
Example 188
Flyweight 197
Design and Explanation 198
Example 199
Proxy 205
Design and Explanation 206
Example 206
Summary 220
Chapter 7: Behavioral Patterns: Chain of Responsibility, Command, Interpreter, and Iterator 221
Behavioral Patterns 221
Chain of Responsibility 222
Design and Explanation 222
Example 223
Command 232
Design and Explanation 232
Example 233
Interpreter 241
Design and Explanation 241
Example 242
Iterator 249
Design and Explanation 250
Example 250
Summary 257
Chapter 8: Behavioral Patterns: Mediator, Memento, and Observer 258
Mediator 258
Design and Explanation 259
Example 260
Memento 272
Design and Explanation 273
Example 273
Observer 282
Design and Explanation 283
Example 283
Summary 292
Chapter 9: Behavioral Patterns: State, Strategy, Template Method, and Visitor 293
State 293
Design and Explanation 294
Example 294
Strategy 302
Design and Explanation 303
Example 304
Template Method 310
Design and Explanation 310
Example 311
Visitor 318
Design and Explanation 319
Example 320
Summary 326
Chapter 10: Patterns of Enterprise Application Architecture: Repository, Unit of Work, Lazy Load, and Service Layer 327
Overview of P of EAA 327
Repository 330
Design and Explanation 331
Example 331
Creating repositories based on a generic interface 339
Unit of Work 340
Design and Explanation 340
Example 341
Lazy Load 348
Design and Explanation 349
Example 350
Using .NET Framework's System.Lazy Class 355
Service Layer 358
Design and Explanation 358
Example 359
Injecting Repositories Through Dependency Injection 369
Summary 371
Chapter 11: JavaScript Code-Organization Techniques and Patterns 372
Organizing JavaScript Code Using Objects 372
Object Literals 373
Function Objects 374
Function Prototype 375
Immediately Invoked Function Expressions (IIFE) 377
Namespace Pattern 379
Module Pattern 384
Revealing Module Pattern 391
Sandbox Pattern 392
Using Design Patterns in JavaScript 396
Singleton Pattern 396
Façade Pattern 398
Observer Pattern 400
MVC, MVVM, and MVW Patterns 403
Summary 406
Bibliography 408
Index 409

Erscheint lt. Verlag 8.4.2016
Zusatzinfo XXI, 399 p. 139 illus., 2 illus. in color.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Software Entwicklung
Schlagworte ASP.NET Core 1.0 • ASP.NET MVC6 • C# • Design Patterns • solid • Visual Studio
ISBN-10 1-4842-1848-5 / 1484218485
ISBN-13 978-1-4842-1848-8 / 9781484218488
Informationen gemäß Produktsicherheitsverordnung (GPSR)
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Codes in Modellen auf Basis von Java und UML

von Eric Aristhide Nyamsi

eBook Download (2025)
Springer Vieweg (Verlag)
CHF 78,15