Articles tagged .NET Framework

18 October 2012
18 October 2012

Syntactic Sugar and the Async Pill

0
6
Asynchrony is essential for scalability and performance on the server side. Although it has always been possible to write asynchronous code, there has, up to now, been a downside: it is difficult to understand and maintain. Now, with the async/await. keywords, the whole approach is radically simplified for the programmer.… Read more
11 July 2012
11 July 2012

.NET Memory Management Basics

0
123
.NET memory management is designed so that the programmer is freed from the chore of consciously having to allocate and dispose of memory resources. It is optimized to work best with the most common patters of usage. However, the more conscious you become of scalability and performance, the more useful an understanding of NET memory management becomes.… Read more
23 April 2012
23 April 2012

Practical PowerShell: Pruning File Trees and Extending Cmdlets

0
9
One of the most radical features of PowerShell is amongst the least known. It is possible to extend the buit-in Cmdlets to provide extra functionality. One can add or remove parameters to make subsequent scripting simpler. Michael shows how this is done to meet a practical requirement:, excluding entire subtrees from a recursive directory trawl for automating source control. … Read more
26 March 2012
26 March 2012

MongoDB Basics for .NET by Example

0
68
MongoDB is one of the more intriguing 'NoSQL' databases to emerge from 'Cloud' computing. Sometimes, the best way of understanding a rather different technology is to get stuck-in and try it out, so Jeremy Jarrell shows how to get started with a simple ASP.NET MVC project that uses MongoDB.… Read more
19 March 2012
19 March 2012

TortoiseSVN and Subversion Cookbook Part 6: Snapshots

0
214
Moving backwards in time in Subversion is like time travel in science fiction. It's fine to look around, but If you change anything it can have unforseen consequences, and you always have to return to the present. Snapshots enable you to navigate in source control to examine or compile the code as it existed at a point in time; to access a particular build.… Read more
19 March 2012
19 March 2012

A Generic ASP.NET MVC Template

0
13
When you start an ASP.NET MVC project, you choose one of a number of project templates or starter kits. The ones that Visual Studio provide are very useful, but you can create your own if you want, and Dino finds that the generic one that he presents in this article works well to rapidly create MVC applications.… Read more
08 March 2012
08 March 2012

On Writing Unit Tests for C#

0
54
Is it realistic to keep to principles of 'Test-First' and 100% coverage for unit tests when in the heat of developing commercial C# applications? Does rigorous unit-testing lead naturally to good design by enforcing testability, low coupling and high cohesion? Patrick Smacchia gives his opinion based on hard-won experience. … Read more
16 January 2012
16 January 2012

TortoiseSVN and Subversion Cookbook Part 3: In, Out, and Around

0
10
Subversion doesn't have to be difficult, especially if you have Michael Sorens's guide at hand. After dealing in previous articles with checkouts and commits in Subversion, and covering the various file-manipulation operations that are required for Subversion, Michael now deals in this article with file macro-management, the operations such as putting things in, and taking things out, that deal with repositories and projects.… Read more
05 January 2012
05 January 2012

Unit Testing Myths and Practices

0
201
We all understand the value of Unit Testing, but how come so few organisations maintain unit tests for their in-house applications? We can no longer pretend that unit testing is a universal panacea for ensuring less-buggy applications. Instead, we should be prepared to actively justify the use of unit tests, and be more savvy about where in the development cycle the unit test resources should be most effectively used.… Read more
09 December 2011
09 December 2011

ASP.NET MVC Routing Extensibility

0
76
You develop an ASP.NET MVC application by extending it; customising any default logic that you wish to change with your own implementation. Simone starts a tour of the extensibility points of ASP.NET MVC, by looking at the beginning of the pipeline, the Routing Module, and gives a practical example of writing an extension, with source code: a way of 'watermaking' images 'on the fly'.… Read more
14 November 2011
14 November 2011

5 Tips for Understanding Managed-Unmanaged Interoperability in .NET

0
81
Interop doesn't have to be taxing. Interoperability between managed and unmanaged code happens under the hood in .NET. When you are doing Interop in your .NET applications, there are a few things to beware of, and Michael McLaughlin gives a brief introduction of how interop is used in .NET before explaining the five points to watch out for.… Read more
10 October 2011
10 October 2011

Adding a Graphical Front End to your PowerShell Scripts

0
30
Even if you know PowerShell inside and out, there will be those times where you won't be the end user for your script, even within your organisation. You need a straightforward GUI. Thankfully, Jonathan Medd has provided workthoughs for three tools - PowerGUI, PrimalForms, and SQL Scripts Manager - to help apply some GUI goodness to your scripts.… Read more