in

dotnet.org.za

South African .NET Developer Portal

Adam Heunis tech talk

Software mostly, but other techie stuff as well. I primarily use Notepad, Visual Studio, the Command Prompt, XmlSpy, SQL Server, MySQL and Photoshop. I speak
C# (incl. OO), XML, XSL, ASP.NET, VB.NET, VB6, SQL, UML and XForms.

Browse by Tags

All Tags » C# (RSS)
  • Multiple domains with the ASP.NET 2.0 HttpHandler

    Here is my problem: I own many domain names (too many my wife says ) and I want to be able to do serve .NET pages for potentially each of them, but I don't want to have an account for each domain name. Essentially I want the users not to know that they are using the same application on a server for different domains. I don't want to redirect either as the urls will give it away. I'm sure many other domain junkies must have this same issue. To achieve this I do the following: Firstly I...
    Posted Jul 23 2006, 11:32 AM by attie with | with 4 comment(s)
    Filed under: ,
  • MySQL 5 may ship in November - whoohoo!

    According to a CIO article published 5 days ago, New MySQL Database May Ship Next Month . This is something that the open-source and software community as a whole has been waiting for for what seems like eternity. Even MySQL themselves are calling version 5 its most significant upgrade yet. The BIG improvement that everyone is very aware of is that MySQL 5 will have proper stored procedures. It has other long sought features like triggers, views and better (or more recognised) error-handling as well...
    Posted Oct 17 2005, 08:04 PM by attie with | with 1 comment(s)
    Filed under:
  • Database table & column naming conventions

    When designing databases I use the following table & column naming conventions: Tables: Pascal case for entity based tables. Example: Organisations, AuditScheme. "Connector case" for connector tables. This means Pascal case joined by an underscore. Example: Organisation_AuditScheme, Partnership_Organisation. [Tablename]_AU for System Audit tables. I'll post more on these in due course. Columns: Primary key is always Id. Many people use [Tablename]Id, but I prefer just Id. This also works well...
    Posted Jul 14 2005, 05:10 PM by attie with | with 11 comment(s)
    Filed under: ,
  • SharpDevelop: the open source solution for C# coders

    Anyone who reads this blog will know that I am a supporter of open source & open standards etc. In this light I'd like to mention SharpDevelop from the guys at ic#code . Once again my learned friend, Phil Armitage, first introduced me to SharpDevelop a couple of years ago. This is a very useful open-source IDE that you can use to code C# to your heart's content. It is very easy to use (has a similar feel to VS.NET) and does most things that VS.NET can do. In fact, I think Microsoft "lent" some...
    Posted Jun 15 2005, 05:37 PM by attie with | with no comments
    Filed under: ,
  • Visual Studio.NET IDE matures with 2005

    I find 2005 an absolute pleasure to work with sofar. Apart from some expected (this is only Beta 2) bugs I think they have done really well in maturing what was already there as well as adding some new very useful IDE enhancements. Just some of the stuff that I'm very happy with: One of my pet hates was the awful way in which VS.NET used to reformat HTML when you switch from "HTML" mode to "Design" mode. They have now seen the light and leave your timeously formatted HTML excactly as it was! The...
    Posted May 26 2005, 11:53 PM by attie with | with 2 comment(s)
  • Improve XSLT transform performance with XPathDocument

    Provided you know XSL, there is hardly an easier way to transfrom xml to more xml, text or html than using XSLT. If you're doing this in .NET there are some things that you should keep in mind: Don't use XmlDocument as the source of an XSLT transformation; rather use XPathDocument . Basically you can't do much with XPathDocument other than calling its CreateNavigator (implements IXPathNavigable.CreateNavigator ) method. This method will return a read-only cursor model based on the XPath data model...
    Posted Apr 25 2005, 03:03 PM by attie with | with 4 comment(s)
    Filed under: , ,
  • Why AJAX? The benefits of AJAX explained.

    While reading the comments on Armand's AJAX Wrapper DLL post , I got the impression that readers weren't quite sure about the benefits of AJAX. AJAX has two huge benefits: Speed and invisibility (ala smart client) makes for a very slick user experience. The smaller server resources footprint helps server scalability (seriously!). I'll explain. If you post using AJAX, only the data (or parameters) that the server function requires is posted. In a login scenario, only the username and password strings...
    Posted Apr 12 2005, 05:07 PM by attie with | with 31 comment(s)
  • To refactor or not to refactor?

    In the world of Extreme Programming (XP), refactoring has become the new buzzword. Business usually doesn't quite understand what it means and, in my experience, sees it as having little or no benefit. As a software consultant, I have to say that in most cases refactoring has a very important role to play . Although most of the benefits are medium to long term (maintainability & extensibility), there are short term benefits (usually performance) as well. I'm currently refactoring a big project that...
    Posted Apr 05 2005, 12:41 PM by attie with | with no comments
    Filed under: ,
  • Resharper from Jetbrains

    Resharper is a very useful Visual Studio.NET add-in by Jetbrains . It has a lot of really neat features that I suppose Visual Studio should have, but doesn't. It integrates quite well with VS. The main areas are: Error highlighting Error quick fixes Refactoring But it has other useful stuff as well. A handy utility that removes all your unused references and "using" statements with a single click, for instance. Its only huge downside is that it costs $99 per developer. There is a trial version available...
    Posted Apr 04 2005, 07:08 PM by attie with | with 4 comment(s)
    Filed under:
  • C# Design Patterns

    I've just implemeted another Design Pattern. This time is was the Strategy Pattern . A lot of people I talk to say that they "...don't get design patterns". In my opinion Design Patterns aren't difficult once you understand what they're for. The most difficult thing about Design Patterns is to figure out when to use which pattern. The fact that there are 23 "mainstream" patterns don't make things any easier either! I'm now a huge fan of designing code using patterns. Initially I actually struggled...
    Posted Mar 28 2005, 09:50 PM by attie with | with 10 comment(s)
    Filed under:
Powered by Community Server (Commercial Edition), by Telligent Systems