The C# code-base I work on has hundreds of places where I have felt a boolean expression could have been used to simplify the code substantially.
Archive for the ‘.Net Details’ Category
Boolean Expressions
Friday, March 5th, 2010Rethrowing Exceptions in C#
Monday, May 4th, 2009A colleague recently mentioned to me that he thought that re-throwing an exception with ‘throw ex’ was a Bad Thing… and as I was not aware of this I did some comparisons of different options to at least try to understand what I was losing out on by using ‘throw ex’.
Gentle.Common.Error.NoProperty
Thursday, September 4th, 2008Yes - this is a post about an error - one that I could find nothing on Google about. It’s a quick one, about the Gentle persistence framework for .Net programming.
Answers to the Test
Saturday, February 9th, 2008My previous post posed some C# questions based on some code with incomplete output. This post provides the answers… don’t cheat now…
Test Yourself on C# Types
Saturday, February 9th, 2008I’ve been thinking about writing a technical test for my employer, and thought that I would start by following-up on my last post, and create a basic test on types and how they are passed as parameters.
Reference and Value Types
Sunday, February 3rd, 2008Today I’m going to cover some basics in C# - the difference between Reference and Value types.
Some Basic Object Ideas
Saturday, January 26th, 2008I’ve been thinking about some basic ideas recently related to the design of a Object Layer for the C#/.Net project that I’m working on. Actually, it’s not a proper OL really, more of a set of enhancements to the Data Access Layer generated with MyGeneration for the Gentle framework. Of course, this is all rather old-hat for anyone who’s utilised Datasets in .Net 2 or later, but there you go.
Coding Styles - A Fine Line Between Clever and Stupid
Tuesday, May 8th, 2007I’ve been thinking a lot about coding style recently. I must admit that I have probably always tended to code in a way that would be considered to be verbose by many programmers. Although I learnt to program by myself, I benefited from an extensive professional programming course in PL/I (which doesn’t date me too much, but it does date the machines I was working with!)
Oracle and C# Tutorial Posted
Thursday, April 19th, 2007Just a quick note to say that I have just written and released a tutorial on getting C# .Net v2 to work with an Oracle database. It has its own page which is here.
The Solution for Oracle ODAC Installation Errors
Sunday, April 8th, 2007During the last week, I’ve attempted to install Oracle Data Access Components 10.2.0.2.20 several times, and to describe it as a headache would be an understatement. I think that a number of the problems I experienced may have been caused by my computer’s registry being a bit of a manky state, possible historic installs of things like their development suite, and so on.
Anyway, this post is intended as a note-to-self of the problems I encountered and the eventual solutions; most of which I did find on the web but somehow the final puzzle pieces evaded easy web-search finds. And again, because I have recently tried to stop my normal usage of an Admin level account, this may have contributed further problems - it certainly added hassle factor to the whole process.
(more…)