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.


January 2008 - Posts

Active Objects and Futures
Herb Sutter gave one of my favorite and inspiring presentations.  It is called "The Free Lunch is Over".  The original article can be found here .  My first encounter though came from his PDC presentation and highly recommend Read More...

Posted Monday, January 28, 2008 11:57 PM by Jared Parsons | 5 Comments

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 | 1 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: , ,

A smarter Select-StringRecurse
Previously I blogged about a recursive select-string function. Recently I've extended it a bit. I found the function to be very useful but when I encountered problems searching large directories that contained binary files. Namely searching them usually Read More...

Posted Monday, January 21, 2008 7:15 PM by Jared Parsons | 1 Comments

Filed under:

CLR Memory Model
Internally and externally I see a lot of questions about the .Net Memory Model. I think a lot of the confusion comes from the specs. Mainly that there are really two of them. The first is the ECMA CLI Memory Model (Partition 1, Section 12). This standard Read More...

Posted Thursday, January 17, 2008 12:16 PM by Jared Parsons | 1 Comments

Filed under: ,

Mixing SEH and C++ Exceptions
Recently I had a half day adventure trying to catch a SafeIntException in code I was writing. The particular function involved a bit of math with user controlled values. Writing a bunch of IfFailGo's with several TryAdd style API's was getting tiresome Read More...

Posted Friday, January 11, 2008 5:18 PM by Jared Parsons | 1 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: ,

ISynchronizeInvoke ... now
ISynchronizeInvoke is an interface which allows you to execute a delegate synchronously or asynchronously. The implementer of the interface can control how the delegate is executed. In particular the implementer controls on which thread the delegate is Read More...

Posted Monday, January 07, 2008 9:25 PM by Jared Parsons | 1 Comments

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