Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Pragmatic Programmer

Pragmatic programming at it's best. The book is a light read and worth the time

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.


March 2008 - Posts

Missing API: List(Of T).BinaryInsert
One API that seems to be missing from List(Of T) is a BinaryInsert method.  Especially since there is already a BinarySearch method. Binary insert is a method for inserting a value into an already sorted list.  Since the list is already sorted Read More...

Posted Monday, March 31, 2008 10:26 AM by Jared Parsons | 3 Comments

Filed under: ,

ActiveObject
I've been busy lately and neglected my series on Active Objects .  It's been a fairly busy time for me both in and out of work.  Enough excuses, back to the fun. With the basic PipeSingleReader class, we now have the last piece necessary to Read More...

Posted Sunday, March 30, 2008 12:39 PM by Jared Parsons | 0 Comments

Filed under: , ,

API Problems: CComObject::CreateInstance
CComObject::CreateInstance is a light weight method for creating instances of COM objects in your code. Unfortunately the design of the API makes it easy to introduce subtle errors into your code. The two problems are it encourages manually ref counting Read More...

Posted Friday, March 28, 2008 7:38 PM by Jared Parsons | 2 Comments

Filed under: , ,

Part of being a good programmer is learning not to trust yourself
... and to actively guard against yourself. Over the years I've found that I can be my own worst enemy when I code. Part of the problem stems from paranoia Early in my college days, a professor of mine, Jim Greenlee, instilled in me the virtue of paranoid Read More...

Posted Monday, March 24, 2008 12:28 PM by Jared Parsons | 8 Comments

Filed under:

Making PInvoke Easy
I very excited to announce we recently released a tool I've been working on to MSDN that will greatly help with using PInvoke in managed code. The tool is called the "PInvoke Interop Assistant" and is included as part of a MSDN article on marshalling Read More...

Posted Friday, March 14, 2008 12:58 PM by Jared Parsons | 3 Comments

Filed under:

PipeSingleReaderNoLock
Previously we discussed a multi-thread safe queue like data structure using locks as an internal synchronization mechanism. This time we'll look at a version requiring no locks. In the previous version, locks were used to synchronize access to an underlying Read More...

Posted Monday, March 03, 2008 12:46 AM by Jared Parsons | 0 Comments

Filed under: , ,

PipeSingleReader
Before we can get to building an Active Object implementation, there are some more primitive structures we need to define. Active Objects live on a separate thread where every call is executed in a serialized fashion on that thread. The next primitive Read More...

Posted Sunday, March 02, 2008 12:53 PM by Jared Parsons | 6 Comments

Filed under: , ,

Page view tracker