Sign in
jaredpar's WebLog
Code, rants and ramblings of a programmer.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
API Design
C#
C++
Closures
Debugging
DotNet
F#
Futures
Generics
Gotcha
Immutable
Lambda
LINQ
Misc
Orcas
Patterns
PInvoke
PowerShell
Rant
Threading
Tuple
Type Inference
VB
Visual Studio
VsVim
Archive
Archives
February 2013
(1)
August 2012
(1)
May 2012
(1)
July 2011
(1)
March 2011
(3)
January 2011
(3)
November 2010
(2)
October 2010
(2)
September 2010
(1)
July 2010
(5)
June 2010
(8)
May 2010
(2)
April 2010
(1)
March 2010
(2)
February 2010
(5)
January 2010
(2)
December 2009
(6)
November 2009
(3)
October 2009
(1)
September 2009
(1)
August 2009
(1)
June 2009
(2)
May 2009
(1)
April 2009
(3)
March 2009
(2)
February 2009
(3)
January 2009
(10)
December 2008
(6)
November 2008
(7)
October 2008
(20)
September 2008
(8)
August 2008
(11)
July 2008
(5)
June 2008
(13)
May 2008
(9)
April 2008
(16)
March 2008
(7)
February 2008
(11)
January 2008
(13)
December 2007
(6)
November 2007
(9)
October 2007
(10)
September 2007
(5)
August 2007
(8)
July 2007
(2)
June 2007
(2)
May 2007
(3)
April 2007
(3)
February 2007
(3)
January 2007
(8)
December 2006
(3)
November 2006
(2)
October 2006
(4)
September 2006
(1)
August 2006
(1)
July 2006
(2)
April 2006
(7)
November 2005
(3)
October 2005
(1)
September 2005
(1)
August 2005
(2)
July 2005
(8)
June 2005
(1)
May 2005
(7)
April 2005
(4)
March 2005
(4)
February 2005
(2)
January 2005
(2)
November 2004
(1)
September 2004
(3)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
jaredpar's WebLog
Don’t mix await and compound assignment
Posted
4 months ago
by
JaredPar MSFT
7
Comments
The 5.0 release of C# introduced the await keyword which makes it extremely easy to use Task<T> in a non-blocking fashion. This allows developers to replace either blocking calls to Task.Wait() or complicated combinations of ContinueWith and...
jaredpar's WebLog
Not all “true” are created equal
Posted
9 months ago
by
JaredPar MSFT
8
Comments
During a review of some low level bit manipulation logic a developer raised a question about the correctness of a piece of code which allowed any arbitrary byte to be seen as a bool. No one could recall if true was defined as not 0 or simply...
jaredpar's WebLog
Authoring a Utility Library for Visual Studio
Posted
over 1 year ago
by
JaredPar MSFT
2
Comments
As I’ve developed VsVim over the years I’ve authored quite a few reusable Visual Studio components. For the last 6 months I’ve had many of these factored out to a separate utility library and this last week I decided to publish them...
jaredpar's WebLog
VsVim 1.0 Released
Posted
over 2 years ago
by
JaredPar MSFT
9
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. [1] Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3...
jaredpar's WebLog
DebuggerDisplay attribute best practices
Posted
over 2 years ago
by
JaredPar MSFT
1
Comments
The DebuggerDisplayAttribute is a powerful way to customize the way values are displayed at debug time. Instead of getting a simple type name display, interesting fields, properties or even custom strings can be surfaced to the user in useful combinations...
jaredpar's WebLog
VsVim Update Released (Version 0.9.5)
Posted
over 2 years ago
by
JaredPar MSFT
12
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3-a4a3-46ca...
jaredpar's WebLog
Yet another way to defeat C++ const
Posted
over 2 years ago
by
JaredPar MSFT
2
Comments
One of my favorite C++ features, and one I feel is terribly underutilized in many code bases, is the const mechanism. It’s a great mechanism for defining dual roles for the same object type: a mutable and (ideally) non-mutable one. But as...
jaredpar's WebLog
Interesting Late Binding Scenario with ToString
Posted
over 2 years ago
by
JaredPar MSFT
4
Comments
Not to long ago I received an email from a customer who wanted to report a bug in the VB.Net debugger. They believed that there was a bug invoking ToString on Integer types in the immediate window and provided the following sample as evidence i...
jaredpar's WebLog
VsVim Update Released (Version 0.9.4)
Posted
over 2 years ago
by
JaredPar MSFT
3
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3-a4a3-46ca...
jaredpar's WebLog
Why the debugging difference between C# and VB.Net return values?
Posted
over 2 years ago
by
JaredPar MSFT
0
Comments
A feature which seems to be getting more requests recently is support for seeing the return value of a function in the debugger without the need to assign it into a temporary. C++’s had this feature for some time but it’s been lacking in managed...
jaredpar's WebLog
VsVim Update Released (Version 0.9.3)
Posted
over 3 years ago
by
JaredPar MSFT
9
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3-a4a3-46ca...
jaredpar's WebLog
Discriminated Unions in C++
Posted
over 3 years ago
by
JaredPar MSFT
4
Comments
Earlier this week I started writing a function which needed to represent three states in the return value, two of which had an associated value. In my mind I immediately came to the following solution type BuildAction = | Reset | LinkOneWithNext...
jaredpar's WebLog
Automatically loading DLL’s in the debugger
Posted
over 3 years ago
by
JaredPar MSFT
2
Comments
In a recent post I discussed the apparent flakiness of extension methods and the debugger being a result of whether or not the DLL containing the extension methods were loaded into the debugee process. Several users asked in the comment section...
jaredpar's WebLog
VsVim Update Released (Version 0.9.2)
Posted
over 3 years ago
by
JaredPar MSFT
2
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3-a4a3-46ca...
jaredpar's WebLog
Improving the display of F# seq<T>’s in the debugger
Posted
over 3 years ago
by
JaredPar MSFT
0
Comments
F#’s seq<T> expressions are a frustrating item to inspect at debug time. A seq<T> value is a collection and when users inspect such a value at debug time they want to see the contents of the collection. Instead they are often presented...
jaredpar's WebLog
Converting System.Func<T1..TN> to FSharpFunc<T,TResult>
Posted
over 3 years ago
by
JaredPar MSFT
3
Comments
Interop of delegate style types between F# and other .Net languages is a pain point that results from a fundamental difference in how delegates are represented in the F# language. Typical .Net languages like C# see a delegate as taking 0 to N parameters...
jaredpar's WebLog
Advanced Multitargeting in VB.Net
Posted
over 3 years ago
by
JaredPar MSFT
0
Comments
Multi-targeting is a feature introduced in Visual Studio 2008 which allows developers to use new versions of Visual Studio to target earlier versions of the .Net platform. It allowed users to target both the new 3.5 and 3.0 and the previous 2.0...
jaredpar's WebLog
Extension Methods and the Debugger
Posted
over 3 years ago
by
JaredPar MSFT
6
Comments
One source of confusion I find myself clearing up a lot is the use of evaluating extension methods in the debugger windows. Users report evaluation as working sometimes but not others for the exact same piece of code. Such flaky behavior can...
jaredpar's WebLog
Disable copy construction when the type is not copy safe
Posted
over 3 years ago
by
JaredPar MSFT
5
Comments
A couple of days ago I finished coding up a feature in our C++ code base, hit F5 and was met with a nasty memory corruption debugger dialog. After about an hour of investigation it appeared one of my types was living past the lifetime of it’s owning...
jaredpar's WebLog
VsVim Update Released (Version 0.8.2)
Posted
over 3 years ago
by
JaredPar MSFT
2
Comments
I just released an update to VsVim for Visual Studio 2010. This is available on the extension manager in Visual Studio or can be downloaded directly at the following link. Link: http://visualstudiogallery.msdn.microsoft.com/en-us/59ca71b3-a4a3-46ca...
jaredpar's WebLog
Do not throw a NullReferenceException when validing “this” in an extension method
Posted
over 3 years ago
by
JaredPar MSFT
3
Comments
One pattern I’ve started running into is developers explicitly throwing a NullReferenceException when validating the “this” parameter of an extension method. public static void ForEach<T>( this IEnumerable <T> enumerable, Action <T>...
jaredpar's WebLog
Avoiding automation bugs when implementing IOleCommandTarget
Posted
over 3 years ago
by
JaredPar MSFT
0
Comments
Shortly after Visual Studio 2010 shipped I wanted to experiment with the new VSIX format for traditional Package extensions. I fired up my copy of Visual Studio, ran through the new package project wizard. But instead of a nice shiny new project...
jaredpar's WebLog
Newlines in the immediate window
Posted
over 3 years ago
by
JaredPar MSFT
0
Comments
A question came up recently on stack overflow concerning the display of newlines in the immediate window. The author noted that any .ToString method which contained a newline printed incorrectly when evaluated in the immediate window. ...
jaredpar's WebLog
My next adventure
Posted
over 3 years ago
by
JaredPar MSFT
1
Comments
After 4+ years on the languages team it’s time for me to move onto the next adventure. I joined the languages team in the winter of 2006. Since then I’ve worked on pretty much every part of the language experience including the compiler, debugger...
jaredpar's WebLog
Using lambdas to create generic factories
Posted
over 3 years ago
by
JaredPar MSFT
4
Comments
One item I find to be limiting in C# is the new generic constraint. The syntax construct specifies that the type backing a given generic parameter contains a parameter less constructor. It allows methods to create instances of generic...
Page 1 of 13 (317 items)
1
2
3
4
5
»