INTELLIGENT.TECHNICAL.ARCHITECTURE.TRAINING

 
 
Blogs:
 
 

Posts Tagged ‘NuGet’

Performing the Gilded Rose kata

November 20, 2011 / No Comment
AUTHOR:
CATEGORY: C#

I ran across the Gilded Rose kata and had to try it. I cloned the repo and recorded the result. I hope you enjoy it.

Toji – custom brewed psake goodness

November 9, 2011 / No Comment
AUTHOR:
CATEGORY: .Net, ALM, Headlines

I have use psake a few times, and I wanted to see what I extract to be more productive. With the rate at which I spin off OSS and side projects, I need something that just works out of the box and is fast to set up. Borne of this need, I created Toji, and it is available as a NuGet package.

I must have my build set up with compiling, testing, packaging, and deployment. I have some xunit, nunit, nuget, msbuild helpers in the project to get projects up quickly. The lack of a xunit [...]

read more

Parallel.For where i does not go to i++

April 25, 2010 / 1 Comment
AUTHOR:
CATEGORY: .Net, Headlines, LINQ

A problem was recent posed that I hadn’t thought to do using Parallel.For in C#. How do you parallelize a for loop variable increased by something other than i++? Typically, I would simply iterate over a enumerable collection and run against the data in parallel using Parallel.For and Parallel.ForEach.

It turns out that there is no support for this in the PFX API. Parallel.For does not support incrementing other than one and it does not support reverse iteration. Also, Enumerable is a static class – which means we can’t do extension methods on Enumerable. However, we can use a custom iterator to generate the sequence for us. By using a Func<int, int> allows us to use our familiar i+= syntax for the increment function. We can quickly create a very simple iterator that will help us out.

read more

 

IntelliTect Corporation
3024 S. Bannen Ct.
Spokane Valley, WA  99037

Phone: (509) 720-8842
Email: info@intelliTect.com

  COPYRIGHT © 2010 INTELLITECT. ALL RIGHTS RESERVED.