Any recommendations for katas covering generics and delegates in C#?
Most of the member on my team can 开发者_运维知识库code generics and delegates, but always require a quick look at the documentation or an example to jump start our brains on them. So I thought that for our daily kata we would cover these aspects for a couple of weeks until we can read and write them by instinct.
This would make it easier for us to use these tools in our coding retreats for design patterns.
Thanks in advance for any recommendations...
You may think this terribly vain of me to suggest, but how about doing the same sort of exercise as I've been engaging in for the last month or so? Namely reimplementing LINQ to Objects. My posts aren't in kata form, but you might find them useful to suggest an ordering, and they could give you hints if you get stuck.
LINQ to Objects is all about delegates and is based on generic sequences (with plenty of generic methods involved) so between the tests and the implementation you'll get a lot of practice in - and get to know LINQ better at the same time!
If you're only doing it for a specific exercise you could always ignore some of the trickier operators (like OrderBy etc).
精彩评论