Atkelar (atkelar) wrote,
Atkelar
atkelar

  • Mood:
  • Music:

Fun with code...

This post is a bit on the geekier coding side, so...

I was asked to migrate an ancient (i.e. loved and cherished) management utility to support Exchange 2010 and to run in a web environment instead of on the desktop. Well, not a real big issue as the tool only had one funciton: create user accounts with a set of templates.

But I was again remainded why "migrate" and "migrane" are sooo close together.

The original was written in VB.NET and the migration should be in C#. Not much difference. But hey, "why write clean code in VB????"

The current highlight: The event handler for the "Cancel" buttons sets the variable "bCancel" to "FALSE" and closes the form whereas the "OK" buttons set the same "bolCancel" variable to "TRUE" and close the form. ARGH! Reverse logic can be fun, no?
Oh, it turns out that the buttons are labelled wrong to go with it: the "OK button" is labelled "Cancel" and the "Cancel Button" is labelled "Cancel". Obscure enough?

Tags: coding, headdesk, stupid
Subscribe

  • Videos and other stuff...

    As you might have noticed, I decided to keep up my YouTube video production at an every-other-week schedule as close as possible. So far, since…

  • SX-64 Restoration Project

    This is going to be a rather long story about me and my very first computer... or rather not "mine" as in "owning" but rather "my first" as in "the…

  • The End of YouTube

    That's it... I've been tolerant with policy changes around YouTube for quite a long time now. But the recent decision to "improve the commenting…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments