jaredpar's WebLog

Code, rants and ramblings of a programmer.
Posts
  • jaredpar's WebLog

    Missing API: List(Of T).BinaryInsert

    • 3 Comments
    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...
  • jaredpar's WebLog

    ActiveObject

    • 0 Comments
    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...
  • jaredpar's WebLog

    API Problems: CComObject::CreateInstance

    • 2 Comments
    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...
  • jaredpar's WebLog

    Part of being a good programmer is learning not to trust yourself

    • 8 Comments
    ... 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...
  • jaredpar's WebLog

    Making PInvoke Easy

    • 3 Comments
    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...
  • jaredpar's WebLog

    PipeSingleReaderNoLock

    • 0 Comments
    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...
  • jaredpar's WebLog

    PipeSingleReader

    • 6 Comments
    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...
Page 1 of 1 (7 items)

March, 2008