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
Vim Emulator Editor Extension Released
Posted
over 4 years ago
by
JaredPar MSFT
17
Comments
I just released version 0.5.0 of VsVim: a vim emulation editor extension for Visual Studio 2010 Beta1 written in F#. This is a hobby project I’ve been working on for awhile now. I expect to continue updating this release as time goes on as I use it on...
jaredpar's WebLog
Why is LINQ absent from debugger windows?
Posted
over 4 years ago
by
JaredPar MSFT
9
Comments
As the owner of the VB.Net portion of the overall debugging experience, I frequently hear the request from customers to add LINQ support into the Watch / Immediate and Locals window. Virtually every other type of expression is available in the debugger...
jaredpar's WebLog
Code Smell: Psychic classes
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Psychic classes have the appearance of ignoring data provided to it in an attempt to provide you with an answer they predict is better for the situation. It’s impossible to look at a the data provided to an instance of the class and understand...
jaredpar's WebLog
Test-ItemProperty utility function
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
I was playing around in the registry the other day and found the PowerShell API lacking in a key area. There does not appear to be a good way to detect the presence of a Registry Name/Value pair. All of the operations such as New, Delete,...
jaredpar's WebLog
Can you @bing it?
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
Today Microsoft announced a new search engine called bing . I’ve been dogfooding this engine internally for some time now and from my experience it’s a step up from the previous engine in both functionality and appearance. It’s definitely...
jaredpar's WebLog
Understanding the is, was and will of programming
Posted
over 4 years ago
by
JaredPar MSFT
6
Comments
When using an API you must take care to understand not only what it returns, but also for how long the data returned will be valid. This is very important to consider because programs must make either be making decisions on valid and predictable...
jaredpar's WebLog
Questions not to hinge a C++ interview on
Posted
over 4 years ago
by
JaredPar MSFT
7
Comments
People love to chat about how to conduct a C++ interview on newsgroups . Eventually these topics will shift into a discussion about what questions a candidate must know in order for them to get a hire from a particular interview. Unfortunately...
jaredpar's WebLog
Immutable vs. Mutable Collection Performance
Posted
over 4 years ago
by
JaredPar MSFT
6
Comments
One argument I commonly hear against immutable collections is they are slow. I’ve held the opposite belief for some time but shamefully had yet to look at actual numbers on the CLR. Tonight I decided to change that by benchmarking one of my...
jaredpar's WebLog
Is it Serializable?
Posted
over 4 years ago
by
JaredPar MSFT
3
Comments
I’ve recently run across several APIs that have a dependency on only dealing with objects that are serializable (in the binary sense). Unfortunately determining if an object is serializable is a non-trivial task and rife with problems. These...
jaredpar's WebLog
Building a WeakReference Hashtable
Posted
over 4 years ago
by
JaredPar MSFT
9
Comments
Recently I ran into a situation on a personal project where I needed a hashtable like structure for a set of WeakReference values. When poking around for an existing implementation I saw found several versions which were very thin, type safe wrapper...
jaredpar's WebLog
A more usable API for a mutable thread safe collection
Posted
over 4 years ago
by
JaredPar MSFT
17
Comments
In my last post we discussed the problems with designing a safer API for mutable thread safe collections that employ only an internal locking system. The result was an API that was more difficult to mess up, yet pretty much unusable. Lets take a look...
jaredpar's WebLog
Why are thread safe collections so hard?
Posted
over 4 years ago
by
JaredPar MSFT
52
Comments
Writing a collection which is mutable, thread safe and usable is an extremely difficult process. At least that’s what you’ve likely been told all through your schooling. But then you get out on the web and see a multitude of thread safe lists, maps and...
jaredpar's WebLog
Simulating Closures in PowerShell
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Previously I blogged about PowerShell’s lack of closure support within a script block. This presents a significant hurdle in developing a LINQ like DSL for powershell which I’ve been working on. Imagine the following syntax $a = from it in...
jaredpar's WebLog
BclExtras Library
Posted
over 4 years ago
by
JaredPar MSFT
2
Comments
I published a .Net utility library on Code Gallery today called BclExtras . It’s a set of classes meant to be used in addition to the standard .Net base class libraries (BCL). The main focuses of the library are functional programming, multi...
jaredpar's WebLog
PowerShell LINQ: Take-Count and Take-While
Posted
over 4 years ago
by
JaredPar MSFT
2
Comments
The Take pair of functions are very similar to the Skip functions . The Take expression does essentially the opposite of the Skip functions. Skip is useful for getting elements further down the pipeline. Take is used for getting elements...
jaredpar's WebLog
If you implement IEquatable<T> you still must override Object’s Equals and GetHashCode
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
CLR 2.0 introduced IEquatable<T> which is an interface that allows for type safe equality comparisons. Previously, the best available method for comparing equality was the virtual Object Equals method. The method is loosely typed since...
jaredpar's WebLog
PowerShell LINQ: Skip-While
Posted
over 4 years ago
by
JaredPar MSFT
2
Comments
Next up in the PowerShell LINQ series is SkipWhile . This LINQ function takes an enumerable instance and a predicate. The function will skip the elements in the enumerable while the predicate is true. The argument to the predicate is...
jaredpar's WebLog
LINQ like functions for PowerShell: Skip-Count
Posted
over 4 years ago
by
JaredPar MSFT
2
Comments
The PowerShell pipeline, is fairly similar to C#/VB’s LINQ. Both filter a group of elements through a series of transformations which produce a new series of elements. The devil is in the details of course but I’ll get to that in a future...
jaredpar's WebLog
Dvorak keyboard … is it really faster ???
Posted
over 4 years ago
by
JaredPar MSFT
9
Comments
Most people discover I’m a Dvorak user because they’re in my office, attempt to drive during a conversation and find they are typing gibberish. I take the keyboard, hit CTRL+LEFT_SHIFT and they’re on their way again. Well at least until they open up a...
jaredpar's WebLog
Twitter
Posted
over 4 years ago
by
JaredPar MSFT
1
Comments
I broke down a few weeks ago and joined Twitter . If you’re not familiar with Twitter, it’s a lot like sitting in a room with a bunch of people and thinking out loud. Only, it’s done in IM form. It’s interesting and I find myself musing...
jaredpar's WebLog
Script Blocks and Closures (or lack there of)
Posted
over 4 years ago
by
JaredPar MSFT
0
Comments
Script blocks are a concise way of representing an expression or statement group in Powershell. It’s the C#/F#/VB lambda equivalent for PowerShell. One difference between C#/F#/VB lambda expressions and a scriptblock is the lack of lexical...
jaredpar's WebLog
Script Blocks and Arguments: Figuring it out for myself … again
Posted
over 4 years ago
by
JaredPar MSFT
4
Comments
Script blocks are a powershell construct for storing an expression or group of statements inside an expression. It’s the equivalent of a C#/F#/VB Lamba expression. Recently I needed to use a script block but found I had forgotten how to read...
jaredpar's WebLog
Case Sensitive vs. Case Insensitive Languages
Posted
over 4 years ago
by
JaredPar MSFT
10
Comments
Just had a random thought while I was looking at some code today. It’s yet another argument in the case sensitive vs. case insensitive language battle. Do you really want this to be able to compile? class C1 { int M1; int m1; } Yes...
jaredpar's WebLog
Count-Object
Posted
over 5 years ago
by
JaredPar MSFT
1
Comments
With all of the great built-in commands for processing pipelines the absence of a good command to count the number of elements in a pipeline seems to stand out. The best built-in way to count the number of objects in a pipeline is to convert the...
jaredpar's WebLog
NotImplementedException vs. NotSupportedException
Posted
over 5 years ago
by
JaredPar MSFT
5
Comments
In responding to a recent blog post , one of the readers, Jeremy Gray, noted that I was using a NotImplementedException where I should have been using a NotSupportedException . At first I did not agree. There was a method on an interface which...
Page 3 of 13 (317 items)
1
2
3
4
5
»