(Alex Homer) I don’t work on a Sunday. My boss doesn’t work on a Sunday. Therefore, I don’t see why my business objects should work on a Sunday either. Of course, there will always be someone trying to access my application on a Sunday, but it’s easy to make use of the Policy Injection Application B
Tag: Development
Null Object Refactoring
(Brian Mains) Martin Fowler wrote a book called “Refactoring: Improving the Design of Existing Code,” and in the book he discusses the “Introduce Null Object” refactoring. Instead of assigning a null value to a reference-type property, a nullable object can be used to represent a null value, instead
Implementing Real-World Data Input Validation using Regular Expressions
(Francis Norton) This article explains how to use .NET regular expressions to enforce the kind of logically complex input validation requirements that we sometimes confront in real specifications. This will allow us to start with basics and go on to exploit some fairly advanced features.
Frequently Asked Questions in .NET 2.0
(Uday Denduluri) The questions and answers discussed in this article are the common questions programmers encounter in interviews. Most of the questions are basic questions of .NET and some of them are from ASP.NET 2.0.
Reflections on Reflection
(Mike Repass) Are your goals of clean componentization frustrated by the need to share too much type information across libraries? Perhaps you want the efficiency of strongly typed data storage, but it’s costly to update your database schema whenever your object model evolves and so you’d like to in
The Daylight Savings Time change and the .NET Framework
(Ed Tittel) In 2005, the U.S. Congress passed the Energy Policy Act of 2005. Among its many articles, it included a change to the start and end dates for Daylight Savings Time starting this spring. For those of you who didn’t notice, daylight savings took effect three weeks earlier and will end one
The Basics of Using the Prototype Pattern with PHP 5
(Alejandro Gervasio) The prototype class lets you use many instances of a specific class, without copying objects to different variables. This article, the first of a two-part series, demonstrates the basic functionality provided by this pattern.
LINQ To Objects – Part 2
(Ged Mead) By the end of Part 1 we set the stage and looked at a couple of new features coming up in Orcas, but hadn’t done anything particularly exciting and new with LINQ To Objects. In this Part I’ll hopefully whet your appetite for LINQ a little bit more as we run some queries that are (a) ver
Use Transformations to Draw Your Own Great Graphs
(Rod Stephens) Visual Studio comes with a huge number of pre-built components and controls, including controls for entering and displaying text, letting the user pick options and make choices, displaying values graphically, interacting with databases, displaying dialogs, and containing and arranging
Using Generics and Inheritance to Simplify Development
(Brian Mains) Inheritance is a common Object Oriented Programming (OOP) concept that can be both well used and overused in application development. In combination with Generics, a new feature in .NET 2.0 that supports strong typing, using both inheritance and generics, can be a powerful combination
