Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Hub FS
Full List

Browse by Tags

All Tags » Tuple   (RSS)
Tuples Part 8: Finishing up
There are only a few missing features from our tuple implementation.  Mainly FxCop compliance, debugging support and test case code.  The actual functional work is complete.  The one issue with FxCop compliance is the chosen names.  Read More...

Posted Sunday, January 27, 2008 9:37 PM by Jared Parsons | 2 Comments

Filed under: , , , ,

Tuples Part 7: Mutable Tuples
Part 6 left us with comparable tuples.  At this point, the Tuple class is functionally complete.  There will be a little more done with the debugability and overall fit into larger projects.  But otherwise it is sound.  Now the focus Read More...

Posted Wednesday, January 23, 2008 2:56 AM by Jared Parsons | 1 Comments

Filed under: , , ,

Tuples Part 6: Comparing
Part 5 produced equality tests for Tuples. This section will add comparison support through the IComparable<T> interface. Implementing comparable is very similar to adding equality support. Once again there is a generic class available to make all Read More...

Posted Tuesday, January 22, 2008 1:56 AM by Jared Parsons | 3 Comments

Filed under: , , ,

Tuples Part 5: Equality
Part 4 left us with a reusable, abstract and inference friendly Tuple class.  The next step is to be able to test for Tuple equality.  For the Tuple implementation, two tuples will be defined as equal if all of their members are equal.  Read More...

Posted Tuesday, January 22, 2008 1:31 AM by Jared Parsons | 2 Comments

Filed under: , ,

Tuples Part 4: Interface
Now we have a decent tuple generation script which produces a very usable set of tuple classes. After awhile I ended up getting stuck because the tuples are not flexible enough. It's not possible to use a 2 pair tuple where a 1 pair is expected even though Read More...

Posted Thursday, January 10, 2008 3:59 PM by Jared Parsons | 1 Comments

Filed under: ,

Tuples Part 3: Type Inference Friendly Constructor
Last time we were left with a constructor that required us to explicitly specify generic parameters. This is not always easy or possible. We'll now alter the script to generate a constructor which utilizes type inference to create a Tuple. In addition, Read More...

Posted Monday, January 07, 2008 11:38 AM by Jared Parsons | 1 Comments

Tuples Part 2: Basic Structure
Part 1 of the series outlined the basic structure of the tuple. This entry will produce a PowerShell script that will generate N tuple classes containing 1-N name value pairs. The first step is to get a few script variables defined. All of the names used Read More...

Posted Friday, January 04, 2008 3:42 PM by Jared Parsons | 3 Comments

Filed under: ,

Tuples Part 1
A tuple in computer science can be described as a set of name/value pairs. In some cases it can be described as simply a set of values that are accessible via an index [1]. Previously I discussed how to create a Tuple inside of PowerShell . This series Read More...

Posted Thursday, January 03, 2008 11:25 AM by Jared Parsons | 6 Comments

Page view tracker