Freigeben über


jaredpar's WebLog

Code, rants and ramblings of a programmer.

Regular Expression Limitations

I'm struggling with an introduction line to this blog post so I'm just going to go for...

Author: JaredPar MSFT Date: 10/15/2008

PInvoke and bool (or should I say BOOL)?

Boolean value types are a constant source of problems for people attempting to generate PInvoke...

Author: JaredPar MSFT Date: 10/14/2008

stackoverflow: a new addiction

If you haven't visited stackoverflow.com yet I encourage you to take a trip. It's a great tag based...

Author: JaredPar MSFT Date: 10/10/2008

VB Catch ... When: Why so special?

The VB Catch syntax has a particular feature not present in C#: When. It allows users to filter...

Author: JaredPar MSFT Date: 10/09/2008

Functional C#: Providing an Option Part 2

In my previous post I discussed creating an Option style construct for C#/.Net.  This post is a...

Author: JaredPar MSFT Date: 10/08/2008

Unfold

F# has a handy method called Unfold.  Think of it as the logical opposite of an Aggregate...

Author: JaredPar MSFT Date: 10/07/2008

When is a LONG not a long?

Answer: When PInvoke is involved. I ran across a common error today on stackoverflow regarding...

Author: JaredPar MSFT Date: 10/02/2008

Unfortunately when creating Live Search, the live team did not use a term which could easily be...

Author: JaredPar MSFT Date: 10/01/2008

Euler #2

Problem #2 came quite a bit faster. The yield syntax in F# is very similar to the C# iterator syntax...

Author: JaredPar MSFT Date: 09/11/2008

PInvoke Interop Assistant on Channel 9

Beth Massi dropped by my office a couple of months ago and we did a channel 9 video on the PInvoke...

Author: JaredPar MSFT Date: 09/11/2008

Debugging F# list's

One of the lacking's of the latest F# CTP is debugger visualization support for the built-in list...

Author: JaredPar MSFT Date: 09/10/2008

Euler and F#

I've been looking for some new problems to work on in F# to get more comfortable with the...

Author: JaredPar MSFT Date: 09/08/2008

Where does the * go?

This is a more amusing than functional debate I enter into from time to time. On a line where you...

Author: JaredPar MSFT Date: 09/04/2008

F# CTP First Impressions

I had a little bit of time this weekend to download the F# CTP.  The IDE portion of the CTP is...

Author: JaredPar MSFT Date: 09/03/2008

A Lesson in Serialization

A few days ago, I recklessly added a [Serialization] attribute to a few of my immutable collection...

Author: JaredPar MSFT Date: 09/02/2008

F# CTP Released

A new version of the F# CTP was released today. There are a lot of new improvements to the language...

Author: JaredPar MSFT Date: 08/29/2008

Disabling JIT optimizations while debugging

If you've ever been debugging a managed app, only to be unable to evaluate any of the locals or...

Author: JaredPar MSFT Date: 08/29/2008

5 things Hollywood thinks computers can do

Reading another Jtenos' blog, I came across this article about things Hollywood thinks can be done...

Author: JaredPar MSFT Date: 08/27/2008

Comments

If only people spent as much time writing comments as they did speaking to the evils of...

Author: JaredPar MSFT Date: 08/26/2008

Simple class for tests involving a SynchronizationContext

Recently I had to test a class which heavily depended upon a SynchronizationContext.  This...

Author: JaredPar MSFT Date: 08/25/2008

CLR Changes in 3.5 SP1

If you haven't come across this post yet about inlining changes in 3.5 SP1 it's a good read. The...

Author: JaredPar MSFT Date: 08/22/2008

Don't speak geek to your family

In planning my recent vacation an email thread was started about who would be picking up the...

Author: JaredPar MSFT Date: 08/20/2008

ImmutableStack in F# Part 2

I'm a bit busier than I thought I would be after returning from vacation.  But I had a little...

Author: JaredPar MSFT Date: 08/19/2008

First MSDN article

The August issue of MSDN magazine will be carrying an article I wrote this spring.  In it I toy...

Author: JaredPar MSFT Date: 08/18/2008

ImmutableStack in F#

When learning a new language I find it very instructive to re-code certain structures from my well...

Author: JaredPar MSFT Date: 08/15/2008

Learning a new Language: F#

Time again to learn a new language.  I enjoy picking up a new language every now and...

Author: JaredPar MSFT Date: 08/14/2008

Vacation

I'm embarking upon another cross country road trip this week followed by a much needed...

Author: JaredPar MSFT Date: 07/29/2008

RantPack Update 2.0.0.2

Version 2.0.0.2 released. Summary: RantPack is a utility library I maintain and actively use. The...

Author: JaredPar MSFT Date: 07/23/2008

Live Mesh accepting more users

If you haven't tried out live mesh yet I really encourage you to try. It's an amazing well designed...

Author: JaredPar MSFT Date: 07/17/2008

Don't mix using statements and lambda expressions

Title pretty much says it all but what good is a rule without any explanation. The main issue here...

Author: JaredPar MSFT Date: 07/16/2008

Yet another rule for Equality

"If you implement equality in a child class, including operators, you must implement the equality...

Author: JaredPar MSFT Date: 07/11/2008

Book Review: The Pragmatic Programmer

Finished reading The Pragmatic Programmer a few weeks ago.  I've been slacking off on the book...

Author: JaredPar MSFT Date: 06/25/2008

To name a tuple value: A or Item0?

One of the parts of a Tuple implementation for RantPack I struggled the most with was naming. ...

Author: JaredPar MSFT Date: 06/23/2008

Making code display better on your blog

My blogging tool is Windows Live Writer and I use the "Insert From Visual Studio" plug-in...

Author: JaredPar MSFT Date: 06/19/2008

Enums vs. Adapters

I like Enums and use them frequently for options and behavior.  To an extent I use Enum's to...

Author: JaredPar MSFT Date: 06/18/2008

PInvoke Interop Assistant now on CodePlex

I'm happy to announce that the PInvoke Interop Assistant tool is now available on CodePlex. ...

Author: JaredPar MSFT Date: 06/17/2008

Bit by void*

Recently I got bit by void* again because of another C++ quirk I didn't think through.  I had a...

Author: JaredPar MSFT Date: 06/16/2008

Using PowerShell to make sure your XP machine is defragmented

Quick script you can run at login to ensure that your XP machine is being defragmented. I chose 1:00...

Author: JaredPar MSFT Date: 06/13/2008

Is there anything in that pipeline?

One operation I frequently perform is use a powershell pipeline to filter out a large set of data....

Author: JaredPar MSFT Date: 06/12/2008

Book Review: Facts and Fallacies of Software Engineering

I finished reading Facts and Fallacies of Software Engineering a few weeks ago.  This is an...

Author: JaredPar MSFT Date: 06/11/2008

Code is not self documenting

Nothing revolutionary about that statement.  Yet I keep reading the opposite on various comment...

Author: JaredPar MSFT Date: 06/09/2008

Making Equality easier

Recently I've done a bit of posting about the difficulties of properly implementing equality in VB...

Author: JaredPar MSFT Date: 06/03/2008

RantPack Update

I released a new version of RantPack today.  Mostly this is a bug fix release with a couple of...

Author: JaredPar MSFT Date: 06/02/2008

Inkpot Color Scheme

I was reading Charlie's post on VS Color schemes and thought I would add my favorite to the...

Author: JaredPar MSFT Date: 06/02/2008

do {} while(0) what?

A recent check in of mine raised a few eye brows during reviews. I checked in a few macros which...

Author: JaredPar MSFT Date: 05/21/2008

Outdated Comments are better than no Comments

While investigating our locking infrastructure a few days ago I ran across an odd comment.  I...

Author: JaredPar MSFT Date: 05/20/2008

Switching on Types

One action I find frustrating in C# is where a particular action needs to be taken based off of the...

Author: JaredPar MSFT Date: 05/16/2008

<Previous Next>