Der Artikel wird am Ende des Bestellprozesses zum Download zur Verfügung gestellt.

How to Code .NET

Tips and Tricks for Coding .NET 1.1 and .NET 2.0 Applications Effectively
Sofort lieferbar | Lieferzeit: Sofort lieferbar I
ISBN-13:
9781430202424
Veröffentl:
2007
Seiten:
218
Autor:
Christian Gross
eBook Typ:
PDF
eBook Format:
EPUB
Kopierschutz:
1 - PDF Watermark
Sprache:
Englisch
Beschreibung:

What is good code? This book provides specific guidelines for well-written code in the .NET context. The contents are based on award-winning material the author has presented at conferences throughout the US and Europe. There is debate about good code because there is not a single good piece of code, but many good pieces of code, each depending on the context that it is used. The author, an acknowledged expert on the subject of .NET coding style and techniques, explains that good code results from using patterns, but that not all good pieces of code are patterns.
"What is good code? The answer is that there is no single answer to good code because it is relative. What this book provides are solutions to a context that could be considered as good code for the context.Writing good code is really a question of what the code is trying to solve. We debate about good code because there is not a single good piece of code, but many good pieces of code. Each good piece of code depends on the context that it is used.Do not confuse patterns with good pieces of code. Using patterns good pieces of code result. But not all good pieces of code are patterns. Patterns are a mechanism used to generically describe how to solve specific problems. The problem that a pattern solves is described by its context. This book is not about patterns.This book is about providing solutions to certain problems. Please understand that this book is not about solving all problems, but specific problems. This is why this is also the first volume, as there are many solutions to provide. TOC:What This Book Is About.- .NET Runtime and Framework Related Solutions.- Value Types and Reference Types Can Be Confused.- What are Delegates?- What Does the Yield Keyword Really Generate?- Versioning Assemblies.- Loading Assemblies Without Any Hassles Using A Utility Class.- Dynamically Loading and Unloading Assemblies.- Implementing GetHashCode Properly.- Think of .NET Generics as Black Boxes.- Figuring Out What Generic Methods Do.- Why For .NET Generics Do You Need the New and Class Keyword?- Text Related Solutions.- Converting a String to an Array and Vice Versa.- Parsing Numbers from Buffers.- When To Use StringBuilder.- Finding a Piece of Text within a Text Buffer.- Always Implement ToString.- Using a Disposable Type to Iterating the Results of Finding Multiple Pieces of Text within a Text Buffer.- Making ToString Generate Structured Output.- C# and Code Related Solutions.- Inheritance can be Used Effectively (instead of Interfaces only).- (Almost) Everything You Ever Wanted To Know About Implementing Interfaces.- Defining a Namespace, Class, and Interface Naming Convention.- Understanding the Overloaded Return Type and Property.- Null Is Not Always A Null.- Architecture, and Pattern Related Solutions.- Abstract Class Bridge Pattern Variation.- Nested Private Class Bridge Pattern Variation.- How to Effectively Deal with Placeholder Interfaces or Base Classes.- A Null Value is Not Always a Null State.- All the Essentials You Ever Wanted To Know About The Factory Pattern.- Don't Expose the Internal State of a Class.- Designing Consistent Classes.- Immutable Types are Scalable Type.- Understanding and Using Functors.- Avoiding Constructors Parameters without Identity.- Understanding and Implementing Singletons.- Testing Hard To Test Classes Using Mock Objects."
What This Book Is About.- .NET Runtime and Framework Related Solutions.- Value Types and Reference Types Can Be Confused.- What are Delegates?- What Does the Yield Keyword Really Generate?- Versioning Assemblies.- Loading Assemblies Without Any Hassles Using A Utility Class.- Dynamically Loading and Unloading Assemblies.- Implementing GetHashCode Properly.- Think of .NET Generics as Black Boxes.- Figuring Out What Generic Methods Do.- Why For .NET Generics Do You Need the New and Class Keyword?- Text Related Solutions.- Converting a String to an Array and Vice Versa.- Parsing Numbers from Buffers.- When To Use StringBuilder.- Finding a Piece of Text within a Text Buffer.- Always Implement ToString.- Using a Disposable Type to Iterating the Results of Finding Multiple Pieces of Text within a Text Buffer.- Making ToString Generate Structured Output.- C# and Code Related Solutions.- Inheritance can be Used Effectively (instead of Interfaces only).- (Almost) Everything You Ever Wanted To Know About Implementing Interfaces.- Defining a Namespace, Class, and Interface Naming Convention.- Understanding the Overloaded Return Type and Property.- Null Is Not Always A Null.- Architecture, and Pattern Related Solutions.- Abstract Class Bridge Pattern Variation.- Nested Private Class Bridge Pattern Variation.- How to Effectively Deal with Placeholder Interfaces or Base Classes.- A Null Value is Not Always a Null State.- All the Essentials You Ever Wanted To Know About The Factory Pattern.- Don't Expose the Internal State of a Class.- Designing Consistent Classes.- Immutable Types are Scalable Type.- Understanding and Using Functors.- Avoiding Constructors Parameters without Identity.- Understanding and Implementing Singletons.- Testing Hard To Test Classes Using Mock Objects.

Kunden Rezensionen

Zu diesem Artikel ist noch keine Rezension vorhanden.
Helfen sie anderen Besuchern und verfassen Sie selbst eine Rezension.

Google Plus
Powered by Inooga