jaredpar's WebLog

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

    First MSDN article

    • 2 Comments
    The August issue of MSDN magazine will be carrying an article I wrote this spring.  In it I toy around with using the deferred execution and lazy evaluation properties of LINQ to create more responsive UI code.  You can view the article here...
  • jaredpar's WebLog

    ImmutableStack in F#

    • 10 Comments
    When learning a new language I find it very instructive to re-code certain structures from my well used libraries into the new language.  It gives a great basis for comparison in terms of ease of implementation, expressiveness of the language and...
  • jaredpar's WebLog

    Learning a new Language: F#

    • 2 Comments
    Time again to learn a new language.  I enjoy picking up a new language every now and again.  It's a great way to branch out your skill set and usually leads to new programming techniques in languages that are a part of professional or hobby...
  • jaredpar's WebLog

    Vacation

    • 1 Comments
    I'm embarking upon another cross country road trip this week followed by a much needed vacation.  I will be actively blogging during this time (lots of backlogged material to get through) but without a decent internet connection the live blog will...
  • jaredpar's WebLog

    RantPack Update 2.0.0.2

    • 1 Comments
    Version 2.0.0.2 released. Summary: RantPack is a utility library I maintain and actively use. The main themes of this library are functional programming, patterns, immutable/pressitent collections, future and other threading primitives. I've placed the...
  • jaredpar's WebLog

    Live Mesh accepting more users

    • 1 Comments
    If you haven't tried out live mesh yet I really encourage you to try. It's an amazing well designed product and incredibly useful. It's still classified as a tech preview but now they are taking on additional users (doubling the current user base in size...
  • jaredpar's WebLog

    Don't mix using statements and lambda expressions

    • 15 Comments
    Title pretty much says it all but what good is a rule without any explanation. The main issue here is that at the core, using statements and lambda expressions both alter variable lifetimes. Unfortunately they alter the lifetime in different directions...
  • jaredpar's WebLog

    Yet another rule for Equality

    • 6 Comments
    "If you implement equality in a child class, including operators, you must implement the equality operators in the base class." Unfortunately this is another case of learn the hard way but makes sense when you think about it. The below code snippet is...
  • jaredpar's WebLog

    Book Review: The Pragmatic Programmer

    • 1 Comments
    Finished reading The Pragmatic Programmer a few weeks ago.  I've been slacking off on the book review but better late than never.  This is a good book for people desiring to be a more pragmatic programmer.  At ~270 pages it's a quick read...
  • jaredpar's WebLog

    To name a tuple value: A or Item0?

    • 1 Comments
    One of the parts of a Tuple implementation for RantPack I struggled the most with was naming.  I tend to struggle with names quite a bit and there's really no reason for it.  It's a combination of pickiness and ... well there's really no good...
  • jaredpar's WebLog

    Making code display better on your blog

    • 5 Comments
    My blogging tool is Windows Live Writer and I use the "Insert From Visual Studio" plug-in to get pretty looking code into my postings.  The generated code uses the <pre> tag for formatting the elements.  Unfortunately my blog...
  • jaredpar's WebLog

    Enums vs. Adapters

    • 9 Comments
    I like Enums and use them frequently for options and behavior.  To an extent I use Enum's to control behavior.  For example enum Kind { Kind1, Kind2, Kind3 } class Example { private Kind m_kind; public int SomeAction() { switch...
  • jaredpar's WebLog

    PInvoke Interop Assistant now on CodePlex

    • 4 Comments
    I'm happy to announce that the PInvoke Interop Assistant tool is now available on CodePlex.  This includes the binaries, source code and the dev authored unit tests.  It is hosted on the more general CLR Interop Tools page.  http://www...
  • jaredpar's WebLog

    Bit by void*

    • 6 Comments
    Recently I got bit by void* again because of another C++ quirk I didn't think through.  I had a class which wrapped a void* which could be one of many different structs.  The structs were POD and didn't have any shared functionality hence I...
  • jaredpar's WebLog

    Using PowerShell to make sure your XP machine is defragmented

    • 0 Comments
    Quick script you can run at login to ensure that your XP machine is being defragmented. I chose 1:00 AM every evening but you can quickly alter that in the script. I have this script run as part of my regular set of configuration scripts to ensure that...
  • jaredpar's WebLog

    Is there anything in that pipeline?

    • 0 Comments
    One operation I frequently perform is use a powershell pipeline to filter out a large set of data. Typically I don't care what is in the result but rather is there actually anything left in the pipeline. I can't find a good powershell built-in to perform...
  • jaredpar's WebLog

    Book Review: Facts and Fallacies of Software Engineering

    • 2 Comments
    I finished reading Facts and Fallacies of Software Engineering a few weeks ago.  This is an excellent book and I recommend it for anyone who's been in the industry for a few years.  Typically I don't enjoy books of this type because I feel they...
  • jaredpar's WebLog

    Code is not self documenting

    • 17 Comments
    Nothing revolutionary about that statement.  Yet I keep reading the opposite on various comment threads and message boards so I thought it a good idea to explore it again. Code is not self documenting. The "code is self document" argument...
  • jaredpar's WebLog

    Making Equality easier

    • 2 Comments
    Recently I've done a bit of posting about the difficulties of properly implementing equality in VB (and DotNet in general). While most of the problems can be fixed with a standard snippet the one really hard to implement issue is GetHashCode(). The rules...
  • jaredpar's WebLog

    RantPack Update

    • 0 Comments
    I released a new version of RantPack today.  Mostly this is a bug fix release with a couple of minor new features. https://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=RantPack&ReleaseId=1119 Features Added a way to shim Immutable...
  • jaredpar's WebLog

    Inkpot Color Scheme

    • 0 Comments
    I was reading Charlie's post on VS Color schemes and thought I would add my favorite to the list.  InkPot is a color setting for vim which I adapted to VS awhile back.  Very easy on the eyes.  You can download it here
  • jaredpar's WebLog

    do {} while(0) what?

    • 3 Comments
    A recent check in of mine raised a few eye brows during reviews. I checked in a few macros which ended with/contained a "do{}while(0)" and people were curious as to why. In my experience there are two main uses for it. Insert an empty statement...
  • jaredpar's WebLog

    Outdated Comments are better than no Comments

    • 4 Comments
    While investigating our locking infrastructure a few days ago I ran across an odd comment.  I was looking at a particular usage of a lock and the comment said that "Using lock type X because we must pump messages here."  Contrarily...
  • jaredpar's WebLog

    Switching on Types

    • 9 Comments
    One action I find frustrating in C# is where a particular action needs to be taken based off of the type of a particular object. Ideally I would like to solve this with a switch statement but switch statements only support constant expressions in C# so...
  • jaredpar's WebLog

    Using Live Mesh to Synchronize Favorites

    • 3 Comments
    I'm a huge fan of customizing my environment.  As a developer my productivity is tied to access to my favorite tools, documentation, scripts, plug-ins and generally being happy with the look and feel of my computer.  This runs against me using...
Page 6 of 13 (320 items) «45678»