.NET Puzzles, Gotchas & Cautionary Tales
Puzzles, gotchas and cautionary tales to frighten and inspire you! Puzzles are “unit tests” that will remind you of things you’ve forgotten, teach you things you didn’t know and make you a more robust programmer.
What you'll learn
Puzzles, gotchas and cautionary tales to frighten and inspire you! Puzzles are “unit tests” that pose a problem many good .NET programmers can’t answer. Pull out Visual Studio and explore, or go straight on to the next clip where you’ll learn why the .NET framework, C#, and Visual Basic behave that way. Regardless of your current skills, you’ll remember things you’ve forgotten, learn things you didn’t know and become a more robust programmer.
Table of contents
- Introduction 0m
- Floating Point Puzzle 2m
- Floating Point Answer 5m
- Division Puzzle 1m
- Division Answer 3m
- Divide by Zero Puzzle 1m
- Divide by Zero Answer 1m
- Bonus: Floating Point Types 6m
- Rounding Puzzle 1m
- Rounding Answer 1m
- Bonus: Floating Point Equality 4m
- Top of the Type Puzzle 1m
- Top of the Type Answer 4m
- Bonus: Floating Point Range 2m
- Bonus: Floating Point Special Values 2m
- Summary 2m
- Introduction 1m
- Date Arithmetic Puzzle 1m
- Date Arithmetic Answer 3m
- Overloads Puzzle 2m
- Overloads Answer 1m
- Generic Overloads Puzzle 1m
- Generic Overloads Answer 1m
- Base Class Overloads Puzzle 1m
- Base Class Overloads Answer 3m
- Bonus: HideBySig vs Override 10m
- Named Parameter Overloads Puzzle 1m
- Named Parameter Overloads Answer 2m
- Bonus: Optional Parameters 2m
- Summary 5m
- Introduction 0m
- Alter List Puzzle 1m
- Alter List Answer 6m
- LINQ Evaluation Puzzle 3m
- LINQ Evaluation Answer 4m
- Multiple Column Sort Puzzle 3m
- Multiple Column Sort Answer 5m
- Set Puzzle 3m
- Set Answer 1m
- Bonus: Collection Performance 1m
- Bonus: Choosing a Collection 4m
- Bonus: Big O Notation 3m
- Bonus: Contains, Any and Where Performance 5m
- Bonus: Union Performance 2m
- Summary 3m
- Introduction 0m
- Protected Internal Puzzle 1m
- Protected Internal Answer 1m
- Visibility of Privates Puzzle 1m
- Visibility of Privates Answer 0m
- Interface Implementation in Base Puzzle 2m
- Interface Implementation in Base Answer 5m
- Bonus: Explicit Interface Implementation 2m
- Nested Type Puzzle 1m
- Nested Type Answer 5m
- Bonus: Reasons for Nested Classes 5m
- Summary 3m