PeterRitchie

Stories submitted by friends of PeterRitchie

Exploring Code Contracts: Taking a look at Object Invariant Conditions(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 10 months ago

Taking a look at the new Code Contracts library which is out of MS Research and will be part of .Net 4.0/Vs2010. Contracts allow for many different ways to perform language agnostic code validation and in this episode we are going to focus on how to utilize the Object Invariant checking to maintain an objects state. read more...

add a comment |category: |Views: 160

tags: another

Creating Custom Functions w/ NAnt(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 10 months ago

Taking a look at how to create a custom function for your NAnt script. After you have the basics of NAnt down you may quickly find out that there are features you need, but they are not part of the core library. The good news for you is that in very little effort or coding you can create your own custom assembly which will expose your newly created NAnt functions read more...

add a comment |category: |Views: 129

tags: another

Exploring how to use Expressions w/ Spark(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Exploring how to use Expressions w/ Spark. We are going to take a look at the various different ways you can use Looping Expressions with the Spark View engine. read more...

add a comment |category: |Views: 144

tags: another

Learning the Decorator Pattern (dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking at how we can use the Decorator Pattern in our application. The decorator pattern is a structural pattern which allows you to attach new or additional actions to an object dynamically. Using the decorator pattern provides a very clean and flexible alternative to subclassing (via inheritance) your object and thus creating an unwanted inheritance tree read more...

add a comment |category: |Views: 484

tags: another

Exploring how to use Expressions w/ Spark(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking a look at the various different ways you can use Expressions with the Spark View engine. We are going to review simply scenarios such as math based expressions and move up to looking at nested if-then-else statements. read more...

add a comment |category: |Views: 148

tags: another

Exploring Code Contracts: Taking a look at Pre/Post Conditions(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking a look at the new Code Contracts library which is out of MS Research and will be part of .Net 4.0/Vs2010. Contracts allow for many different ways to perform language agnostic code validation and in this episode we are going to focus on how to setup pre and post condition validation. read more...

add a comment |category: |Views: 269

tags: another

Code Contracts Primer – Part 3: Providing Support for Unit Tests(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

In this post we are going to take a look at how you can setup your unit tests to handle violations from your contracts. If you do not provide any additional support in your code and you violate a contract at test time you will see a dialog like the one below: read more...

add a comment |category: |Views: 8

tags: another

Code Contracts Primer – Part 2: Handling Legacy Code(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

So the one of the first questions that many people ask when talking about using the Code Contracts library is ‘what do I do about my legacy code?’. Asking this is a very valid question. If your team has already subscribed to the design-by-contract or fail-fast concepts then maybe you have already added in your own checks. If this is the case the contracts team has thought of you and has already provided a simple answer. read more...

add a comment |category: |Views: 12

tags: another

Exploring how to use Global Variables and ViewData (Strongly typed and(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking a look at how to utilized both global variables and local variables. We will also take a look at how to create and use both strongly typed viewdata and weakly typed view data. read more...

add a comment |category: |Views: 266

tags: another

Learning Hudson: Setting up to run and report Unit Test results(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

We will be taking a look at how we can use Hudson to report our Unit Tests results after each build. We will be looking at both reporting NUnit and MSTest results and will also show how you can convert MSTest results into NUnit results in order to report all tests in a single screen. read more...

add a comment |category: |Views: 223

tags: another

Code Contracts Primer – Part 1: Introduction (devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

If you are not familiar with the Code Contracts library which is coming out of Microsoft R&D labs, you need to check this pretty cool little library out. As of Vs2010/.Net 4.0 this library will be making the jump out of the R&D labs. This is the first in a series where we will walk though various parts of the contracts library. read more...

add a comment |category: |Views: 16

tags: another

Learning how to add IntelliSense for the Spark View Engine(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Learning how to add IntelliSense for the Spark View Engine inside Visual Studio read more...

add a comment |category: |Views: 392

tags: another

How to Create a Custom Performance Counter(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking a look at how to create custom performance counters for usage in your application Part of the core .net framework allows you to create code which can hook into the underlying performance counters which the windows OS has. We will show how you can easily create hooks to take advantage of these counters. read more...

add a comment |category: |Views: 361

tags: another

Saying Hello to the Spark View Engine(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years, 11 months ago

Taking a introductory look at the Spark View engine. The Spark is a view engine for Asp.Net Mvc and Castle Project MonoRail frameworks. The idea is to allow the html to dominate the flow and the code to fit seamlessly. read more...

2 comments |category: |Views: 419

tags: another

Learning the Observer Pattern w/ Callbacks(dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 3 years ago

Taking another look at how we can use the Observer Pattern in our application, but this time we will implement the pattern using call backs and events. The Observer pattern allows you to define a one-to-many relationship inside your application where the parent object (the one) has the ability to notify the child objects (the many) of any state change. You can utilize this pattern to make sure that a set of objects are keep in order when there behavior needs to change based on the state of your application. read more...

add a comment |category: |Views: 322

tags: another

How Do You Deal With Exceptions?(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years ago

A little post on my ideas about handling exceptions within applications. How do you handle them? read more...

add a comment |category: |Views: 748

tags: another