C# in Depth: Puzzles, Gotchas, Questions at Interviews | Elias Spock | Skillshare

C# in Depth: Puzzles, Gotchas, Questions at Interviews

Elias Spock, Chance favors the prepared mind.

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
53 Videos (4h 39m)
    • 00 Promo

      5:17
    • 01 Outline

      2:05
    • 02 Mutating Through Readonly Fields

      4:01
    • 03 Mutating Through Arrays

      3:58
    • 04 Mutating Within Using

      6:21
    • 05 Conclusion

      0:48
    • 01 Outline

      2:05
    • 02 Specialization

      4:15
    • 03 Constraints

      7:17
    • 04 Variance and Generics

      8:22
    • 05 LSP

      5:09
    • 06 LSP Demo

      8:01
    • 07 More on Variance and Contravariance

      5:38
    • 08 Conclusion

      2:59
    • 01 Outline

      2:05
    • 02 Floating Point Numbers

      17:13
    • 03 Arithmetic Overflow

      9:07
    • 04 Check for Arithmetic Overflow

      5:58
    • 05 Rounding

      6:22
    • 06 Decimal and Money

      9:36
    • 07 Conclusion

      6:00
    • 01 Outline

      2:05
    • 02 Altering List

      7:17
    • 03 LINQ Deferred Execution

      2:59
    • 04 LINQ Closures

      5:00
    • 05 Generics Conversion

      5:09
    • 06 Conclusion

      1:49
    • 01 Outline

      2:05
    • 02 Overloading Base Method

      4:14
    • 03 Method Hiding

      4:33
    • 04 Property vs Method

      6:41
    • 05 Impl Abstract Classes

      7:29
    • 06 Conclusion

      1:49
    • 01 Outline

      2:05
    • 02 Concepts

      9:16
    • 03 General Puzzles

      6:46
    • 04 DateTime Roundtrip Puzzle

      6:14
    • 05 Arithemic on Dates

      4:06
    • 06 Calculating the Age

      6:33
    • 07 Conclusion

      6:00
    • 01 Outline

      2:05
    • 02 Abstract Class vs Interface

      5:11
    • 03 Implementing Dispose Pattern

      12:04
    • 04 Encapsulation and Information Hiding

      9:57
    • 05 Encapsulation in Practice

      9:18
    • 06 Interning

      6:09
    • 07 Const vs Readonly

      3:14
    • 08 Lock vs Monitor

      3:23
    • 09 Rethrowing Exceptions

      2:52
    • 10 StringBuilder vs String

      2:19
    • 11 Conclusion

      1:22
    • 01 Weirdness of Nullable Comparisons

      4:25
    • 02 Out Arguments

      1:36

About This Class

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!

7

Students

--

Projects

0

Reviews (0)

Elias Spock

Chance favors the prepared mind.

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 nearly 7 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 Communicati...

See full profile