Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Awesome C# Code to learn design patterns and best practices from? [closed]

Anyone know any open source c#/asp.net projects that are well documented, use design patterns appropriately and contain the best practices? I want to read high quality code, learn from it and apply it to my job.

like image 383
burnt1ce Avatar asked Oct 03 '09 00:10

burnt1ce


People also ask

How many C++ libraries are there?

C++ comes with two standard libraries: the old C library (libc. lib), and the new C++ library (libcp.

Is there a Web framework for C?

facil.io is an evented Network library written in C. facil.io provides high performance TCP/IP network services by using an evented design that was tested to provide an easy solution to the C10K problem.

Is there any framework for C++?

The leading framework for C++ development is Qt which is the most popular C++ framework for (not only) GUI development.

What is in the C standard library?

The C standard library provides macros, type definitions and functions for tasks such as string handling, mathematical computations, input/output processing, memory management, and several other operating system services.


3 Answers

I highly recommend reading through Framework Design Guidelines (by Cwalina and Abrams).

alt text

They designed large chunks of the .net base classes, and talk a great deal about API usability. The book is a fairly easy read; it highlights many do's and don'ts in the .net framework. If you are short on cash, then you can get some free guidelines from msdn.

like image 78
Darwyn Avatar answered Sep 28 '22 11:09

Darwyn


In my experience, you will not learn what you want by reading code, even if it's good quality code. If nothing else, the comments in such code will more likely be about what the code is trying to accomplish, and less about how the code properly used the design pattern.

If you want to learn design patterns, then you need to look at something that intends to teach you design patterns. It's possible that there is some body of code which has this purpose in mind, and perhaps someone can point you to it. It just seems unlikely to me that a piece of code that is good at one thing will also happen to be good at teaching you design patterns and best practices.

like image 23
John Saunders Avatar answered Sep 28 '22 11:09

John Saunders


Read books , read blogs and write code that is how you will learn design patterns and programming in general

like image 27
Hannoun Yassir Avatar answered Sep 28 '22 11:09

Hannoun Yassir