Browse by Tags
All Tags »
C# programming advice (RSS)
One thread of discussion going through our internal community is this: should the .Net namespace include the name of the IT team that created it? There are two camps: Camp 1: Declare the Owners of the Code We have a structure with about ten different
Read More...
As languages 'improve' over time, we see a first principle emerge: Move responsibility for many of the 'good practices' into the language itself, allowing the language (and therefore the people who use it) to make better and more consistent use of those
Read More...
We have a pretty good solution for portal code interface in our team. We've been using a home-grown portal for about a half-dozen years and it has grown to be fairly sophisticated. We have role-based-security, page auth, object auth, data item auth, row
Read More...
I guess it goes without saying that you cannot communicate in a language unless at least two people are using it. That was always the problem with Esperanto... interesting to learn, hard to find someone to converse with. WSDL is kinda like that. One of
Read More...
Earlier this week, I blogged on the evils of helper classes . I got a few very thoughful responses, and I wanted to try to address one of them. It is far easier to do that with a new entry that trying to respond in the messages. If you didn't read the
Read More...
First off, a definition: A helper class is a class filled with static methods. It is usually used to isolate a "useful" algorithm. I've seen them in nearly every bit of code I've reviewed. For the record, I consider the use of helper classes to be an
Read More...
Namespaces provide a mechanism for grouping code in a heirarchical tree, but there is precious little discussion about the taxonomy that designers and architects should use when creating namespaces. This post is my attempt to describe a good starting place for namespace standards.
Read More...
I've been an architect for a while now, but, as far as being an architect within the walls of Microsoft, today was day one. Already, I've run into an interesting issue: when it is better to forgo the code of the Enterprise Library and roll your own, vs.
Read More...
The marketplace of ideas is an amazing place. When Microsoft came up with the notion of Remote Scripting (many years ago), the Netscape folks scoffed. At the time, folks looked at MS and said, "This is a war, and I won't use a feature from the big bad
Read More...
A friend of mine pointed out an interesting post by Scott Hanselman that used a clever phrase: "having a High Bus Factor" which is to say: if the original developer of a bit of code is ever hit by a bus, you are toast. The example that Scott gave was
Read More...
We found an odd bug caused by copying all files in a project to make another project in the same solution. This post discusses the problem, how we found it, and how we fixed it.
Read More...
A refers to B, B refers to A, Why can't we all just get along? Every now and again, I see a posting on the newsgroups where someone has created a circular reference in their code structure, and they can't figure out how to get out from under it. I'm writing
Read More...
I run across this question from time to time: why is there no multiple inheritance in C# like there was in C++. Personally, I've never needed it, but I do see a value to it, and there are some times when it would appear to be handy. There is a workaround
Read More...
Do you understand what encapsulation means, but don't know why in the world you would want to use it? Do you see examples of inheritance in the frameworks and libraries, but have only just dabbled with inheritance in your own code? If you answered yes
Read More...
One common complaint about the .NET framework is that there is only one config file for the application, even if there are many assemblies (exes and dlls). This post contains advice for how the author of a DLL can keep the configuration settings for that
Read More...