Browse by Tags

All Tags » Quick Tips » Rants (RSS)

The problem with APIs like System.IO is that people ask questions like "How do I copy a StreamReader?"

The basic layout is generally that the user wants to pass a particular StreamReader instance to some method that does some processing. Upon return they find that their StreamReader in the local scope is now not where it was when they first called the...

XSLT used to get all the girls, now it is just a washed up junkie ;-)

Don't flame me yet. I don't think XSLT is really a washed up junkie, but I do have to say that people have really chosen to make extended use almost any other XML technology just to avoid using XSLT. Or do they just not realize how powerful XSLT really...

Neat JIT performance improvement when using BR or BR_S

If you had your choice of how IL got JIT'ed down to the host processor assembly language, how would your JIT handle unconditional branching with regards to how the IL is laid out? I would think the JIT'er would be a two step processor myself. It would...

Installer Products and why I'm not sure I like them very much...

So I've had the chance to play with InstallShield DevStudio 9 quite a bit over the past few weeks and I can't say that I'm very happy with the product. I think they've made a classic mistake with their design in that they've targeted their product towards...
Posted by Justin Rogers | 4 comment(s)
Filed under: ,

Want faster regular expressions? Maybe you should think about that IgnoreCase option...

Let me start with a disclaimer. RegexOptions.IgnoreCase is a very powerful option that allows you to match ignore character casing during matches irregardless of the currently running culture. In other words, this will allow you to take into account other...

The new face of the GC in Whidbey... I'm not sure this is a pretty face...

Brad Abrams commented several months ago about some changes in the GC that allows you to tune your application for GC collection when working with unmanaged objects. The two concepts he talks about are a small managed object that is hiding a much larger...

Books and reference lists: It isn't easy to track down all of the references, now is it...

I've been thinking about the problem of tracking down references in books for quite some time. At least a couple of years now, as my library of game programming books has begun to breach the 50+ mark. Now, each book has a series of references to secondary...
Posted by Justin Rogers | with no comments
Filed under: , ,

Rotor FUBAR of the day (compliments Christoph Nahr): Queue.Clone returns invalid results...

So the method in question is Queue.Clone(). Ideally, Queue.Clone() would return an exact copy of the Queue being cloned. IMO that should mean array density and size, current head/tail pointers, and current versions. However, the Clone method does a couple...
Posted by Justin Rogers | with no comments

On the new Longhorn SDK, a designer asks, "Does size matter"...

So the debate rages on Hari Sekhar's blog http://weblogs.asp.net/harisekhar/archive/2004/02/10/70864.aspx about the related trade-offs between downloading 3GB of help content in one big lump sum, allowing select pieces to be downloaded, and have nice...
Posted by Justin Rogers | 2 comment(s)
Filed under: , ,

Are KB articles allowed to have poorly written code? (KB: 320348)

If you take a look at KB article 320348 you might think it was the holy grail if you were trying to figure out how to compare binary files using the .NET Framework. However, the code isn't really written all that well and to the less astute programmer...
Posted by Justin Rogers | 9 comment(s)
Filed under: ,
More Posts Next page »