Browse by Tags

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...
Postedby jaybaz_MS | 6 Comments    
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...
Postedby jaybaz_MS | 1 Comments    
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...
Postedby jaybaz_MS | 3 Comments    
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...
Postedby jaybaz_MS | 0 Comments    
slack
19 April 05 06:56 PM
Discovering slack Read More...
Postedby jaybaz_MS | 0 Comments    
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...
Postedby jaybaz_MS | 5 Comments    
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...
Postedby jaybaz_MS | 6 Comments    
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...
Postedby jaybaz_MS | 12 Comments    
'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...
Postedby jaybaz_MS | 20 Comments    
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...
Postedby jaybaz_MS | 15 Comments    
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...
Postedby jaybaz_MS | 5 Comments    
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...
Postedby jaybaz_MS | 4 Comments    
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...
Postedby jaybaz_MS | 7 Comments    
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...
Postedby jaybaz_MS | 7 Comments    
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...
Postedby jaybaz_MS | 15 Comments    
More Posts Next page »

This Blog

Syndication

Page view tracker