jaybaz [MS] WebLog
We believe in nothing.
Browse by Tags
All Tags
»
Development Practices
(RSS)
C# Edit and Continue
Personal
Refactoring
Visual Studio
properties vs. fields... again
08 February 07 01:14 PM
Eric Gunnerson just posted Properties vs public fields redux... It's no secret that I agree with Eric whole-heartedly on this matter. I've posted about this before as well: http://blogs.msdn.com/jaybaz_ms/archive/2004/04/29/123333.aspx . Fundementally,
Read More...
random debugger tip: catching COM exceptions
17 January 07 04:25 PM
I was cleaning out some old mail and came across this tip. You can tell it was a long time ago, because it really only matters if you're writing COM objects, something I haven't done in a long, long time. Some parts of Visual Studio use COM as a layer
Read More...
The next Accidental Difficulty in software
13 October 06 11:13 AM
First, go read this article by Joel: Book Review: Beyond Java . He mentions this list, of great advances that have address some accidental difficulties in software: Assemblers Algebraic languages (including Fortran) Structured languages (Algol-60 and
Read More...
Finding the correct source
21 August 06 12:57 PM
From a previous comment: > A copy of the source tree that exactly matches that test VS. Why IDE unable to keep track versions of sources for me ? Why not embed meta-information in PDB's on how and there to retrieve correct source file version ? Actually,
Read More...
slack
19 April 05 06:56 PM
Discovering slack
Read More...
What I'm doing these days
28 January 05 01:52 PM
Gee, this blog has been pretty quiet. Why? Could I have lost interest in the connection with all the C# developers in the world? No! My responsibilities have drifted somewhat, to areas that make less sense to blog about. Dev Lead I'm the development lead
Read More...
Thoughts on bit fields.
11 January 05 09:09 AM
In C there is a long tradition of using bit fields to store a collection of boolean values: enum { TF_KEYWORD = 0x0001, TF_MEMBER = 0x0002, TF_IDENTIFIER = 0x0004, TF_STRINGLITERAL = 0x0008, TF_CHARACTERLITERAL = 0x0010, } TOKENFLAGS; DWORD dwTokenFlags
Read More...
Performance of 'for' vs. 'foreach'
23 December 04 02:19 PM
I saw someone ask if 'for' or 'foreach' is faster. I was surprised. My code is often slow when I first write it, but it's never something that could have been fixed by a microoptimization like that. So I wrote this: In my code, I find that the most important
Read More...
'switch' in C#
15 November 04 06:02 AM
On Eric's blog, a discussion about 'switch' statements in C# & why they require 'break' inspired this post. One of my favorite principles in the design of C# is that it forces you to be explicit when that removes confusion. The best example is the
Read More...
Safely firing an event, Part 3
16 September 04 04:52 PM
Take another look at Safely firing an event . According to Grant , there’s another issue here. The JITter may optimize away locals in situations where you think want them for thread safety. So the recommendation to make a local copy is not as valuable
Read More...
Won't Fix or Postponed?
16 September 04 10:42 AM
In our bug database, when resolving a bug, you have to select a “Resolution”. Obviously you can resolve as “Fixed”. Other options include: By Design - this isn’t a bug, we meant it to work this way. Not Repro - you were mistaken, this bug doesn’t exist.
Read More...
Separating out unit tests
09 September 04 02:33 PM
This question came up on a customer chat today. It’s probably interesting to a wider audience, so I’m posting it here. I'm currently doing TDD with NUnit. With the upcoming testing tools in Whidbey, how do you see the separation of tests from production
Read More...
A Factory pattern
01 September 04 02:49 PM
The idea popped in to my head, so I wrote it down. I’m not sure what it’s good for, but here it is: class C { private C() { } public static class Factory { public static C New() { return new C (); } } } class Program { static void Main ( string [] args)
Read More...
How do you ship software?
30 August 04 11:33 AM
I surely don't need to tell you that we've been working on Whidbey for a while now. You probably wish we would hurry up & ship the thing. Me, too. However, we still have some bugs left to fix. Most were found by our QA, but many came from Ladybug
Read More...
Some good feedback on the Range post.
20 August 04 10:06 AM
Dithermaster says “it's *much* easier to find out of they DON'T overlap” and proposes: ! ( (end2 < start1) || (start2 > end1) ); If we apply DeMorgan’s Law, we get: (! (end2 < start1) && !(start2 > end1) ); And (end2 >= start1)
Read More...
More Posts
Next page »
This Blog
Home
Links
Tags
Admin vs. Normal User
C# Edit and Continue
Development Practices
Personal
PowerShell
Refactoring
Sailing
Visual Studio
Windows Home Server
Archives
November 2007 (2)
October 2007 (3)
September 2007 (2)
June 2007 (1)
April 2007 (2)
March 2007 (2)
February 2007 (1)
January 2007 (4)
October 2006 (2)
August 2006 (1)
May 2006 (1)
October 2005 (2)
August 2005 (5)
May 2005 (2)
April 2005 (6)
January 2005 (3)
December 2004 (6)
November 2004 (4)
October 2004 (3)
September 2004 (9)
August 2004 (14)
July 2004 (28)
June 2004 (54)
May 2004 (26)
April 2004 (16)
March 2004 (23)
February 2004 (11)
January 2004 (2)
December 2003 (3)
Syndication
RSS 2.0
Atom 1.0
See also my
Personal blog
.