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
RantPack - A utility library
Posted
over 5 years ago
by
JaredPar MSFT
1
Comments
I often post code examples, samples and snippets on this blog. Many of these samples are a part of a utility library I've been writing and maintaining for many years now. Essentially since I got involved in DotNet programming. I write a lot of code...
jaredpar's WebLog
Properly Implementing Equality in VB
Posted
over 5 years ago
by
JaredPar MSFT
6
Comments
Many developers want to implement equality functions for their objects. DotNet made equality a deep part of the framework and added support all the way up to System.Object with Equals and GetHashCode . In addition to the strongly enforced...
jaredpar's WebLog
Me, MyBase, MyClass and MyPost on the subject
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
Recently we had a good discussion on an internal alias about the use of Me, MyClass and MyBase in VB. Me, MyBase and MyClass are all ways to access instance member data in a VB class or structure. There was a little bit of confusion on the actual workings...
jaredpar's WebLog
Gotcha: CComAutoCriticalSection and copy constructors
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
While investigating a crash during a suite run I found the stack walk included the destructor for a CComAutoCriticalSection . This is a fairly reliable class so I immediately suspected my code. I did a couple of quick checks for a double free and didn...
jaredpar's WebLog
Get-TfStatus
Posted
over 5 years ago
by
JaredPar MSFT
4
Comments
Been far too long since I blogged about a new PowerShell script. This is not to say I've stopped using PowerShell, more that I've been too busy playing with other tools to spend a significant amount of time updating my scripts. This is a simple, yet straight...
jaredpar's WebLog
Immutability and ReadOnlyCollection<T>
Posted
over 5 years ago
by
JaredPar MSFT
1
Comments
I am a huge fan of read only/immutable collections and data. Hopefully the increased exposure through the blogosphere alerted users to the advantages of this type of programming for the appropriate scenarios. I wanted to discuss ReadOnlyCollection<T>...
jaredpar's WebLog
Thread Local Storage template
Posted
over 5 years ago
by
JaredPar MSFT
1
Comments
Thread local storage is another method of synchronization between threads. It is different that most synchronization cases because instead of sharing state between threads it enables developers to have independent, thread specific pieces of data which...
jaredpar's WebLog
What's the purpose of this blog?
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
I've had a couple people ask me this question about my blog. The simple answer is: to explore my adventures in code, coding, patterns and pretty much anything else related to programming. I realize from a readers perspective my topics may...
jaredpar's WebLog
Gotcha: Generic overload resolution when called generically
Posted
over 5 years ago
by
JaredPar MSFT
1
Comments
Both VB and C# have a feature of generic overload resolution that is fairly helpful and yet a source of gotchas. Lets say you have two methods with the same number of arguments. One method has arguments with generic types and the other does not. For Example...
jaredpar's WebLog
Design Guidelines: Provide type inference friendly Create function for generic objects
Posted
over 5 years ago
by
JaredPar MSFT
3
Comments
Really this guideline is a bit longer but putting it all in a blog title seemed a bit too much. The full guideline should read: "If a generic class constructor arguments contain types of all generic parameters, provide a static method named...
jaredpar's WebLog
Have an IComparer<T> but need an IComparable<T>?
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
Previously we discussed the opposite problem. This is a lesser but often more frustrating problem because there is no, AFAIK, built in solution for the BCL. However it's problem that can be solved once and reused with a generic solution. IComparable<T>...
jaredpar's WebLog
Gotcha: CComPtrBase<T> assignment
Posted
over 5 years ago
by
JaredPar MSFT
2
Comments
Today what started out as a crash due to a pure virtual call turned into finding a gotcha in CComPtrBase<T>. Essentially the code in question boiled down to the following. Can you spot the problem? void GetAStudent(CComPtrBase<T> &spStudent...
jaredpar's WebLog
BinaryInsert Part2
Posted
over 5 years ago
by
JaredPar MSFT
7
Comments
Previously I discussed a potential missing API in List(Of T).BinaryInsert. One of the items I mentioned was it had better performance because it was O(Log N) vs Insert and Sort which is O(NLogN). Several users correctly pointed out this was incorrect...
jaredpar's WebLog
Reference values in C++
Posted
over 5 years ago
by
JaredPar MSFT
2
Comments
Reference values are a powerful feature of C++ but I find they have one significant detractor. A developer can not look at an API call and determine if a parameter is being passed by reference or value (VB has the same problem). IMHO this is one item...
jaredpar's WebLog
Have a IComparable(Of T) but need an IComparer(Of T)?
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
IComparable(Of T) is an interface saying "I can compare myself to other objects of the same type". And IComparer(Of T) is an interface saying "I can compare two objects of this type.". Often API's which need to perform...
jaredpar's WebLog
Short Post
Posted
over 5 years ago
by
JaredPar MSFT
0
Comments
In an effort to post more often and with greater effect, I've been trying to divide my posts into short, targeted posts and longer in depth posts. Thus far my short posts aren't nearly as short as I'd like them to be and end up being much closer to my...
Page 1 of 1 (16 items)