jaybaz [MS] WebLog
We believe in nothing.
Test-Driven Debugging
So, you're doing TDD. You're pretty happy with the results. You have confidence. You're refactoring....
Author: MSDN Archive Date: 06/07/2004
Test-Driven Development & Code Coverage
On an internal email discussion, someone asked for some help applying Code Coverage tools to...
Author: MSDN Archive Date: 06/07/2004
2 wheels good, 4 wheels easy
3 days before our wedding we bought a then-new 1996 Saturn SL2. It has served us very well,...
Author: MSDN Archive Date: 06/07/2004
Your expectations of Refactoring.
Your expectations of Refactoring. Cyrus posts about what you expect from Refactoring. The particular...
Author: MSDN Archive Date: 06/04/2004
everything is an object
I’m really enjoying reading Object Thinking. I’m only reading about a page a day, but...
Author: MSDN Archive Date: 06/04/2004
Jay on wheels
I used to be an avid bicycle commuter. That is, I rode my bike to high school every day, refused to...
Author: MSDN Archive Date: 06/04/2004
What is TDD?
It took me a while to figure this stuff out. Maybe most people already know this, in which case...
Author: MSDN Archive Date: 06/02/2004
enum->class Refactoring the OO way
This one was pretty much TheoY’s. I coded it up, which probably means I corrupted his idea....
Author: MSDN Archive Date: 05/31/2004
Generic Enum helper dud
I hoped I could write a generic helper class that you could use when Refactoring your enum to a...
Author: MSDN Archive Date: 05/31/2004
Refactor enum->class: Answer 1
This is the follow up to the enum->class refactoring post. So, one approach is to try to decode...
Author: MSDN Archive Date: 05/31/2004
Advanced bug reporting
A commenter asks about reporting crashes when working in a private network. There's another way to...
Author: MSDN Archive Date: 05/28/2004
Please send in crash reports
Cyrus blogs about the “Watson” technology we use. I want to second his request. When a...
Author: MSDN Archive Date: 05/28/2004
Refactor enum->class
Every so often, I see a C# user say they’d like to add a method to an enum. Maybe it’s...
Author: MSDN Archive Date: 05/27/2004
EnableRTLMirroring
Rovert asks: “What is RTLMirroring?” The answer comes from Marin who is responsible for...
Author: MSDN Archive Date: 05/27/2004
Time off
In a comment on the Perfect Software Project, 2 of Todd's items are: - Training days. The company...
Author: MSDN Archive Date: 05/27/2004
The perfect software project
What do you love about how software development is done where you are? What do you hate, and how...
Author: MSDN Archive Date: 05/26/2004
Update C# 2.0 Specification
The updated spec has been posted.
Author: MSDN Archive Date: 05/24/2004
rethrow for debugging
A question came up on an internal email list. You will get this error in the following code, as per...
Author: MSDN Archive Date: 05/21/2004
An update on C# Edit and Continue
There has been a lot of discussion, both here and on Andy's blog about C# E&C. Some folks really...
Author: MSDN Archive Date: 05/17/2004
A new C# team blogger
There's a new blogger from the C# team. Cyrus works for me on the IDE. He is being quite prolific on...
Author: MSDN Archive Date: 05/17/2004
Cleaning up 'using' directives
A suggestion arrived in email, and here is my response. (None of this is on the feature list for...
Author: MSDN Archive Date: 05/10/2004
Generate Method Stub
Chris got his wish: We have Generate Method Stub in Whidbey. There is a command & key binding in...
Author: MSDN Archive Date: 05/10/2004
The new new lazy loader
Cyrus then incorporated the Weak/Strong reference stuff into the LazyLoader. He also refactored the...
Author: MSDN Archive Date: 05/07/2004
Cyrus likes Weak & Strong references
Then Cyrus decided he wanted to support weak references. A weak reference is one that the GC can...
Author: MSDN Archive Date: 05/07/2004
Cyrus enhances Optional<>
Cyrus just can’t stop! First he Refactored Optional<>, basically to use a singleton for...
Author: MSDN Archive Date: 05/06/2004
The new LazyLoader
Finally, the LazyLoader class. Credit goes to Kevin & Cyrus (who doesn't have a blog). delegate...
Author: MSDN Archive Date: 05/06/2004
Lock/NoLock code
There was a comment that the LazyLoader was not thread safe. We decided to add thread safety &...
Author: MSDN Archive Date: 05/06/2004
Cyrus’s Optional
While Refactoring the LazyLoader, we produced the code below. It’s useful any time you want to...
Author: MSDN Archive Date: 05/06/2004
Re-ZBB coming
2 weeks ago we hit ZBB. We do some funky stuff to describe the goal. For example, we only counts...
Author: MSDN Archive Date: 05/05/2004
Default references list in the VS IDE
When you install VS (or rather the .NET Redist), you get a C# compiler (csc.exe + cscomp.dll), which...
Author: MSDN Archive Date: 05/02/2004
Unbound type smart tag
One of the things we're trying to do for Whidbey is a feature we call the “unbound type smart...
Author: MSDN Archive Date: 05/02/2004
String colorization
In VS, you can have your strings colorized. This feature has been around for a long time. However,...
Author: MSDN Archive Date: 05/02/2004
ASP.NET in Whidbey
Kevin is someone I make tea with pretty often. Oh yeah, we also work together. He has written his...
Author: MSDN Archive Date: 05/01/2004
Scott’s lazy loader
Scott Wisniewski posted a lazy loader implementation on his blog. He coded it blind, without the...
Author: MSDN Archive Date: 04/30/2004
Properties? Not my bag, baby.
Eric recently posted a blog: “Property or backing store from inside a class?”, and I...
Author: MSDN Archive Date: 04/29/2004
CCC2: InitializeComponent()
Call it a Clearest Code Challenge: What should InitializeComponent() look like? What’s the...
Author: MSDN Archive Date: 04/28/2004
Winforms designed code and C# partial classes
In Whidbey, the WinForms designer takes advantage of a new C# language feature called “partial...
Author: MSDN Archive Date: 04/28/2004
What's he got in his pocketssess?
In my passwords post, several people mentioned carrying a USB drive with encrypted passwords on it....
Author: MSDN Archive Date: 04/27/2004
I h8 passw3rdz
I'm sick of passwords. I want to be secure: Never reuse a password, month-to-month or site-to-site...
Author: MSDN Archive Date: 04/27/2004
Puffin’ along
I quit smoking years ago, so that’s not what this is about. This is about a steam powered boat...
Author: MSDN Archive Date: 04/25/2004
E&C Category added
If you're bored on a Friday night, what better to do than read my blog? Especially exciting and...
Author: MSDN Archive Date: 04/24/2004
ZBB
Perhaps you've seen Shaykat and Eric talk about ZBB. Now it's my turn. I'm the dev lead for the team...
Author: MSDN Archive Date: 04/22/2004
How much is enough?
How many computers do I need to get my job done? When I was new to Microsoft, I new that my first...
Author: MSDN Archive Date: 04/19/2004
Whidbey Refactorings: Rename (part 2)
Michael suggests: ...do the refactoring inline. It is WAY smoother and more productive that way I...
Author: MSDN Archive Date: 04/16/2004
Whidbey Refactorings: Rename
Let's start by talking about Rename. I view Rename as being one of the “Tier 1”...
Author: MSDN Archive Date: 04/08/2004
English Breakfast
My favorite drink is English Breakfast tea. Filtered water. Brewed exactly 3 minutes. 2 lumps. A...
Author: MSDN Archive Date: 04/07/2004
What Refactorings are in Whdibey?
If you didn't go to the last PDC or VSLive, and you're not an MSDN subscriber, you probably don't...
Author: MSDN Archive Date: 04/07/2004
Upcoming Chat with Ron Jeffries
15th April: Join Microsoft Press author Ron Jeffries in a chat about Extreme Programming Adventures...
Author: MSDN Archive Date: 04/05/2004
Books
I just created a section of links for what I'm reading these days. I also recently read Test Driven...
Author: MSDN Archive Date: 04/01/2004
Formatting code in blogs
In a comment, Steve asks how I format code in my blog. Here's the answer: Write the code in Visual...
Author: MSDN Archive Date: 03/30/2004