object oriented programming: looking for good tuto

2019-03-13 20:00发布

I am tired of tutorials that just enumerate the concepts with examples. How about some tutorials that show the wrong way of doing and then the correct way of doing things? It would be great to learn things like interfaces, delegates, abstract classes, singleton ...etc that way.

It would be great to read some clean code online as well but its hard to find...

any recommendations??

I develop in C# , .net , MS technologies...

标签: c# oop
8条回答
The star\"
2楼-- · 2019-03-13 20:44

Have you read Design Patterns: Elements of Reusable Object-Oriented Software by the "Gang of Four"?

That was the book which made me glad that I'd learned a programming language that supported object-oriented programming.

It doesn't show the wrong way to do things, but part of the "pattern description" are the "forces" or circumstances for which each pattern is a useful solution.

The code examples are small (but clean).

查看更多
小情绪 Triste *
3楼-- · 2019-03-13 20:44

Object-Oriented-Design-Heuristics is great and appropriate for your needs IMHO. Head First Design Patterns is wonderful also, with interesting examples of incorrect and correct practices for certain cases.

查看更多
登录 后发表回答