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.


November 2007 - Posts

Calling Extension Methods on Null Objects
One of the gotchas for Extension Methods is that it's legal to call them on Null References. This isn't really surprising when you think about the feature. Boiled down to a fundamental level, extension methods are just syntactic sugar for calling a static Read More...

Posted Friday, November 30, 2007 12:19 PM by Jared Parsons | 1 Comments

Filed under: , ,

Tuples in PowerShell
Tuples in computer science are usually light weight record objects with simple name value pairs. In scripting languages it is very handy to create them on the fly. For quite some time I was using associative arrays in PowerShell to do just that. PS>$a Read More...

Posted Thursday, November 29, 2007 2:47 PM by Jared Parsons | 6 Comments

Filed under:

Piping elements of a String
Quick script that will allow you to pipe each char in a String into the PowerShell pipeline. function PipeStringChar() { param ( [string]$toPipe ) for ( $i = 0; $i -lt $toPipe.Length; $i++ ) { write-output $toPipe[$i] } } Alternatively you can do this Read More...

Posted Wednesday, November 28, 2007 6:22 PM by Jared Parsons | 0 Comments

Filed under:

Type Inference and IEnumerable
This is somewhat of a follow up on a previous post I did on the difference between IEnumerable(Of T) and the IEnumerable interfaces. I've seen several people type in the following code and wonder if there was a fundamental bug in the type inference code. Read More...

Posted Monday, November 26, 2007 5:32 PM by Jared Parsons | 2 Comments

AutoSize and DockStyle.Fill don't mix
The title of this post essentially says it all.  AutoSize and DockStyle.Fill don't mix well together.  Both properties exist to describe the size relationship relative to the rest of the control but they do so in conflicting ways. AutoSize is Read More...

Posted Wednesday, November 21, 2007 12:29 AM by Jared Parsons | 1 Comments

Filed under: ,

VS2008 Ships
Orcas has shipped :) http://msdn2.microsoft.com/en-us/vstudio/default.aspx Read More...

Posted Monday, November 19, 2007 10:41 PM by Jared Parsons | 1 Comments

Filed under:

Lambda Unexpected Behavior
One item you strive to avoid when you design and implement a feature is unexpected behavior.  Unfortunately there is one case we couldn't avoid with Lambda's in VB9.  I just ran into the this problem when coding up a handler.  I wanted Read More...

Posted Monday, November 19, 2007 10:38 PM by Jared Parsons | 1 Comments

Filed under: , ,

Extension Methods without 3.5 Framework
For a time I've been avoiding extension methods. Not because I'm opposed to using them but because of the 3.5 Framework. A lot of the tools I own are designed to be very light weight tools that only require the user to have 2.0 installed on their machine. Read More...

Posted Friday, November 16, 2007 3:37 PM by Jared Parsons | 10 Comments

Filed under: ,

Names of Anonymous Type Members
Recently I was asked how can you get a list of anonymous type member names given a query of anonymous types. The quick answer is that you can use a quick bit of reflection to get back the names. Public Function GetAnonymousTypeMemberNames( Of T)( ByVal Read More...

Posted Friday, November 09, 2007 7:46 PM by Jared Parsons | 0 Comments

Filed under: , ,

Page view tracker