8

My C# class loves to come up with weird/unrealistic scenarios to teach a specific language feature... I feel like the more effective way to teach would be to mention a real life scenario where it makes more sense to use the feature and give it some context rather than coming up with some arbitrary series of classes to represent departments and employees and then say "write extension methods for them to write them out"

If you tell me that I'm going to go, ok this works, but is there a specific reason I should do this instead of using a for or foreach to do the exact same thing? Don't get me wrong I see the appeal of extension methods as well as LINQ but this class never gives any sort of context as to why we're doing stuff. This class could be good, I've had classes that focus on language specific features taught in ways that make sense... My Java prof did a great job...

Also all the slides are terribly written...

Like I attached an example of the description for extension methods... The slides then go on to explain how the syntax for them works and gives an example...

Like ok I guess technically you told me what they are and how to use them, but gave zero context...

On the opposite end of the spectrum, I go to MSDN for their definition of extension methods, and it is much more clearly written and gives context to where/why they're used... and this is supposed to be a 5th semester course...

Comments
  • 2
    This is one of the reasons when anyone asks me how to become a programmer, I always recommend buying a book or online tutorials. :/

    Funny, though. I started using extension methods for the first time a few weeks ago in real-world scenarios.
  • 0
    @ZethMatthews

    Makes sense, gives them some example scenarios to learn from. Wait are there people who just try and dive right into documentation?
Add Comment