Design patterns for c#

by Sander Gerz September 23, 2003 16:51
Design patterns are a fascinating subject. Although I've read the book from 'the gang of four', I'm still a bit uncomfortable when to use what pattern, and if I use them correctly. So I've found a site that offers codesamples in c# for most patterns. I'll be sure to check it every now and again. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

70-300: Passed!

by Sander Gerz September 22, 2003 12:43

So now I can call myself MCSD for .NET. Actually, I'm not sure what the official title is. Is it just MCSD or is it with 'for .NET'. I was an MCSD (for VB6/VC++) already. It looks like I'm collecting certification titles. As of now it's: MCSE for NT4, MCSE for WK2, MCDBA, MCSD and MCSD for .NET. Oh, and MVP, but that's not a certification.

Anyway, this last exam proved a bit easier than the 70-100. Maybe it's because I've gained more experience, perhaps the questions were simpler. It was more a 'close reading' exam than a 'you-have-to-know-the-facts' exam.

And another nicety, I'm going to the PDC!

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

A star is born

by Sander Gerz September 16, 2003 19:12

well, that may be a bit presumptuous. But last weekend our daughter, Michelle Karen, was born. Photos can be viewed at http://sanderenanja.com.

What does this have to do with .NET? Well, it'll mean that I won't be spending the usual amount of time on it. At least for the time being.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Avoid Oracle

by Sander Gerz September 10, 2003 09:39

I'm currently working on a project were a client app is querying an Oracle database. We started development however on a Sql Server database, since we have more control over the schema. That is, we run our own Sql Server somewhere, whereas all Oracle databases are centrally managed.

So I knew in advance that the application needed to be 'database' independent. Using a db-independent data access layer and conforming to as much ansi sql as I could think of, I thought that should not be much of a problem. Well it is. Consider this: there's a field in our database 'description' which is a varchar (50 or something long, but that's not relevant). This field may contain a date, us-style formatted. And when it is a date, I would like to treat it as such. In my original query (for the sql server), I had the following code:

SELECT DISTINCT CAST(YEAR(PH.DESCRIPTION) AS VARCHAR) AS THEYEAR FROM
.....

Sql Server is appearantly clever enough to evaluate any string it can convert as a date and treat it as such. Not so in Oracle. Here's the new query:

SELECT

DISTINCT TO_CHAR(TO_DATE(SUBSTR(PH.DESCRIPTION,1,INSTR(PH.DESCRIPTION,' ')),'FMmm/FMdd/yyyy'),'yyyy') AS THEYEAR
FROM .....

That took me about an hour to figure out. Agreed, I don't have much experience with Oracle, and with statements like this, I prefer to keep it that way.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Mp3 splitter for .NET Rocks

by Sander Gerz September 01, 2003 08:29

Jon Galloway points us to an commandline util that splits MP3 files. I've been downloading the .NET Rocks shows since a couple of weeks and play the files them on my car stereo. But from home to work takes me about 30 minutes, so I have to stop listening right in the middle. And on my way home, I have to press the forward button for about 10 minutes to get back where I left off. That's pretty dangerous. So you might call this tool a lifesaver ;-)

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen | Modified by Mooglegiant