?

Log in

No account? Create an account

Previous Entry | Next Entry

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?

Comments

( 2 comments — Leave a comment )
(Deleted comment)
jfd62780
Apr. 9th, 2011 02:30 am (UTC)
....um-whaaaaa?!?!

Don't listen to this spambot. :(
atkelar
Apr. 9th, 2011 07:37 pm (UTC)
Not listening... deleted as spam as it should. :)
( 2 comments — Leave a comment )

Latest Month

September 2018
S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Tags

Page Summary

Powered by LiveJournal.com
Designed by Katy Towell