C# in Depth: Puzzles, Gotchas, Questions at Interviews (The Course)
$19.00
Minimum price
$19.00
Suggested price

This Course is part of the following Tracks:

Course Info

This course includes 1 attempt.

This is an advanced C# course.

Build a solid foundation in C# learning odd cases related to how the language is designed

This course contains mostly practical puzzles learning which you get a better C# developer. You can find out on the Internet tons of impractical puzzles which don’t make you a better C# developer. This is not about this course. Yes, of course, even impractical puzzles sometimes are helpful especially if you’re preparing for a C# interview. However, I bet on puzzles which teach you the thing you absolutely need to understand. Indeed, this course deepens your understanding of C#. Apart from that, you’ll learn some very important things like the problem of types substitution. You’ll learn about the fundamental problems related to processing date and time values. Believe me, you’ll be astonished! 

This course is built in a manner of a game. I’ll show you code examples in Visual Studio and ask to answer the question related to that code example. You’ll have some time to come up with your own answer and after that we continue. Puzzles, gotchas and cautionary tales are presented here to frighten and inspire you! Regardless of your current skills, you’ll remember things you’ve forgotten, learn things you didn’t know and become a more robust programmer. 

So, this course is "must see" for anyone who wants to improve his knowledge of C#.

Here is my Teaching Approach

No fluff, no ranting, no beating the air. I esteem your time. The course material is succinct, yet comprehensive. All important concepts are covered. Particularly important topics are covered in-depth. For absolute beginners, I offer my help on Skype absolutely free, if requested.

Take this course, and you will be satisfied.

Content and Overview 

This course is aimed at all kind of developers. It provides solid theoretical base reinforced by the practical material. 

In short, this advanced C# course covers the following topics: 

  • The evilness of the mutable structures. You’ll see several examples when mutable structures demonstrate the unexpected behavior. 
  • Generics and arrays including specializations, constraints on generics, variance and covariance, Liskov substitution principle and more 
  • The pitfalls in arithmetic: how floating-point numbers are implemented, how to compare them, how arithmetic overflow behaves with different types, how rounding works, the difference between decimal and money 
  • Collections and LINQ: how to alter an existing list, the deferred execution of LINQ expressions, the peculiarities of closures within for and foreach loops, list conversion 
  • Methods and Overloading: overloading base methods, method hiding, when to prefer property over method; the reasons on why to avoid optional parameters, implementing abstract classes 
  • Date and Time puzzles: concepts related to dates and times including how a computer stores time, UTC and GMT, time zones, global and local perspectives; time-zone related puzzles, roundtrips, arithmetic on dates, how to calculate the age. 
  • FAQ at C# Interviews: abstract classes versus interfaces, how to implement the Dispose pattern, what is the difference between encapsulation and information hiding, encapsulation in practice, strings interning, constant versus read-only fields, lock versus monitor, how to rethrow exceptions, when to use StringBuilder instead of string 
  • And yet a short section of miscellaneous puzzles Enroll and start an exciting journey learning C# puzzles

Share

Course Material

  • About the Course
  • Intro to the Course
  • Mutable Structures
  • Outline
  • Mutating Through Readonly Fields
  • Mutating Through Arrays
  • Mutating Within Using
  • Conclusion
  • Generics, Arrays, LSP and Variance
  • Outline
  • Specialization
  • Constraints
  • Variance and Generics
  • LSP
  • LSP Demo
  • More on Variance and Contravariance
  • Conclusion
  • Math Puzzles
  • Outline
  • Floating Point Numbers
  • Arithmetic Overflow
  • Check for Arithmetic Overflow
  • Rounding
  • Decimal and Money
  • Conclusion
  • Collections and LINQ
  • Outline
  • Altering List
  • LINQ-Deferred Execution
  • LINQ-Closures
  • Generics Conversion
  • Conclusion
  • Methods and Overloading
  • Outline
  • Overloading Base Method
  • Method Hiding
  • Property vs Method
  • Impl Abstract Classes
  • Conclusion
  • DateTime Puzzles
  • Outline
  • Concepts
  • General Puzzles
  • DateTime Roundtrip Puzzle
  • Arithemic on Dates
  • Calculating the Age
  • Conclusion
  • FAQ at Interviews
  • Outline
  • Abstract Class vs Interface
  • Implementing Dispose Pattern
  • Encapsulation and Information Hiding
  • Encapsulation in Practice
  • Interning
  • Const vs Readonly
  • Lock vs Monitor
  • Rethrowing Exceptions
  • StringBuilder vs String
  • Conclusion
  • Miscellaneous Puzzles
  • Weirdness of Nullable Comparisons
  • Out Arguments

Instructors

    • I'm thankful enough for that I love what I do.

      I began my career as a postgraduate student participating in Microsoft ImagineCup contest.

      I've been working with .NET platform since 2003. I've been professionally architecting and implementing software for more than 10 years, primarily based on the .NET platform. I'm passionate about building rich and powerful applications using modern technologies. I'm a certified specialist in Windows Applications and Service Communication Applications by Microsoft. I'm one of the coordinators of the MskDotNet User Group in Moscow.

      "If it's work, we try to do less. If it's art, we try to do more." - Seth Godin.

      What I can say is that software is my art.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub