Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
This article explains about Template Method Pattern in C#
This article discusses the best practices involved using CLR profiler for studying memory allocation.
This article discusses how we can use performance counter to gather data from an application. So we will first understand the fundamentals and then we will see a simple example from which we will collect some performance data.
In this article I am trying to compare the speed difference of Lambda expressions with traditional programming. The results are mind-blowing.
This chapter discusses the nitty-gritty part of marshaling process. It is the base for the rest of discussion about marshaling. It is about marshaling simple data types.
In this article I will explain the method I prefer for implementing an audit trail. Next, I will introduce a script to automate the implementation of the audit trail in the database.
Learn how to improve your code using Magic Numbers refactoring.
This article explains about benefits of using StringBuilder instead of string.
In this article we will first understand the concept of generations and then we will see the finalize dispose pattern. I am sure this article will change your thought process regarding destructor, dispose and finalize.
This article shows how to retrieve system properties in a webpage on just singleclick of mouse.
This article explains about Implementation of Loosely Coupled Collections in C#.
The attached white paper with this article discusses .NET best practices.
A brief story about using TryParse instead of Convert to make life easy.
The keyword default plays several and important roles in the C# language, therefore, I will enumerate some cases where the default keyword is used.
In the previous article , we demonstrate how to create a custom section with custom attributes using the ConfigurationSection class and IConfigurationSectionHandler interface.
This article tells you how to retrive information of configuration file which is applied to the entire application.
This article explains you the order of compilation in an asp.net application.
This article tells you how to run visual studio command prompt from inside the visual studio.
We all are well aware about functions. In conventional way, we create object and we call object.method(). We know that they perform some given task and returns results based on the parameters we passed to them.
This article will give you some tips about .Net. This could be helpful for you especially when you prepare for interviews.
This article gives you an overview of best practices to attain .Net performance.
This article discusses some performance tuning tips for those who use ASP.NET as front-end and Microsoft SQL Server as back-end to develop their applications.
Programmers new to C# can encounter less than ideal performance and even unexpected results due to boxing and unboxing of value types.
Using string might degrade the performance of your application. This article explains about what precautions you should take when you are going to use strings in your application.
Commenting and following a uniform naming guidelines in your code is one of good programming practices to make code more useful.
The FACTORY METHOD PATTERN comes under the classification of Creational Patterns. The creational patterns deals with the best way to create objects.
In this article, I will compare some performance issues of values and references types during boxing and unboxing operations.
To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
OK, I've received couple of emails people asking me how can they use a common data provider to access various types of data sources without loosing the power and flexibility of native data provider libraries.
Another way to solve this problem is to utilize the System.Activator class and a factory pattern to create the concrete provider classes as was pointed-out in Dan Fox's article Design an Effective Data-Access Architecture (.netmagazine, vol. 2, no. 7).
Everything on Coding Best Practices, not only its articles: the Coding Best Practices page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article