Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Hub FS
Full List

Browse by Tags

All Tags » VB   (RSS)
Speaking at Dev Connections in Las Vegas Next Week
Next week I will be speaking at Dev Connections in Las Vegas.  I will be running the following sessions VMS02: Future Directions for Visual Basic VMS04: Microsoft Visual Basic IDE Tips and Tricks Both of these talks will spend a bit of time talking Read More...

Posted Tuesday, November 03, 2009 11:51 AM by Jared Parsons | 1 Comments

Filed under:

Why is LINQ absent from debugger windows?
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 Read More...

Posted Wednesday, August 26, 2009 8:00 AM by Jared Parsons | 9 Comments

Filed under: , , , , ,

Extension Methods and ByRef targets
One of the seldom used, and often unknown, features of VB extension methods is that the argument of the extension method (the first parameter) can be passed by reference.  This gives extension methods the power to change the reference that was used Read More...

Posted Thursday, December 11, 2008 8:00 AM by Jared Parsons | 7 Comments

Filed under: , ,

Properly handling a WinForms Timer event
The WinForms Timer class allows the user to perform a particular action at a set interval.  Timer objects fire a Tick event at the set time which users can easily respond to.  This is very useful if a developer wants to check for a particular Read More...

Posted Monday, October 27, 2008 8:00 AM by Jared Parsons | 4 Comments

Filed under: , ,

VB Catch ... When: Why so special?
The VB Catch syntax has a particular feature not present in C#: When. It allows users to filter expressions based on something other than their type. Any arbitrary code can enter a When block to decide whether or not to handle an Exception Sub Sub1() Read More...

Posted Thursday, October 09, 2008 8:00 AM by Jared Parsons | 5 Comments

Filed under: ,

First MSDN article
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 Read More...

Posted Monday, August 18, 2008 8:00 AM by Jared Parsons | 2 Comments

Filed under: ,

Making Equality easier
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 Read More...

Posted Tuesday, June 03, 2008 8:00 AM by Jared Parsons | 2 Comments

Filed under: ,

Equality isn't easy
After my recent postings on the rules of Equality , I thought it would be a good idea to post a simple example of equality. The class in question, Example, has only one field of type Integer name m_field1. Two instances of Example are equal if m_field1 Read More...

Posted Monday, May 12, 2008 8:00 AM by Jared Parsons | 1 Comments

Filed under:

IEquatable(Of T) and GetHashCode()
This is a bit of a follow up to a previous post we discussed how to properly implement equality in VB. Several users commented/asked that IEquatable(Of T) could be used in place of overriding Equals(). Since IEquatable(Of T) doesn't define a GetHashCode() Read More...

Posted Friday, May 09, 2008 8:00 AM by Jared Parsons | 0 Comments

Filed under: ,

Properly Implementing Equality in VB
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 Read More...

Posted Monday, April 28, 2008 8:04 AM by Jared Parsons | 6 Comments

Filed under: ,

Me, MyBase, MyClass and MyPost on the subject
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 Read More...

Posted Friday, April 25, 2008 11:09 AM by Jared Parsons | 0 Comments

Filed under:

BinaryInsert Part2
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 Read More...

Posted Monday, April 07, 2008 3:09 PM by Jared Parsons | 7 Comments

Filed under:

Have a IComparable(Of T) but need an IComparer(Of T)?
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 Read More...

Posted Wednesday, April 02, 2008 9:33 PM by Jared Parsons | 0 Comments

Filed under: ,

Missing API: List(Of T).BinaryInsert
One API that seems to be missing from List(Of T) is a BinaryInsert method.  Especially since there is already a BinarySearch method. Binary insert is a method for inserting a value into an already sorted list.  Since the list is already sorted Read More...

Posted Monday, March 31, 2008 10:26 AM by Jared Parsons | 3 Comments

Filed under: ,

Dealing with Exceptions in a Future
Besides waiting, the another important issue when dealing with Futures is how to deal with exceptions thrown by the user specified code.  Option 1: Ignore the Exception Don't take any actions in the future code and force users to write exception Read More...

Posted Monday, February 11, 2008 11:36 AM by Jared Parsons | 7 Comments

Filed under: , ,

More Posts Next page »
Page view tracker