A place to discuss Development techniques, .NET, XNA, NHibernate or anything else that tickles your fancy

Tuesday, April 14, 2009

Blackest Night...

There's a consultant that I've had to work with at my company, who's legitimately a nice guy, or tries to be. But regardless of that, he's a terrible coder. What he checks in is some of the most bug addled, overly complex, difficult to read and debug code I've ever seen.

I'll see if I can't get some permission from my employer to submit a couple of the "Golden nuggets" of his handy work, but for now, enjoy this brief glimpse at an enum I found of his for doing an item import. Honestly, I hope I never have to figure out how this works, but hey, at least it's commented for me...


   1:  Enum ItemField

   2:          Photo = 9999    'positive #'s are reserved for characteristics

   3:          Disgard = 0

   4:          LocalItemCode = -1    'negative #'s are reserved for Item table values

   5:          CompanyItemCode = -2

   6:          Name = -3

   7:          Description = -4

   8:          Vendor = -5

   9:          Bilingual = -6

  10:          Complete = -7

  11:  End Enum




Update: I have permission to post some of his code :) Prepare!

1 comments:

5x1llz said...

dang..

might be time to implement pair coding ( but only for him ) lol.. no unsupervised programming if your name is ________.

Post a Comment