Skip to content

The Weird and The Wonderful

It was the best of code, it was the worst of code. Coding Horrors, Worst Practices, and flashes of brilliance

This category can be followed from the open social web via the handle the-weird-and-the-wonderful@forum.codeproject.com

1.8k Topics 20.7k Posts
  • One enum to rule them all...

    14
    0 Votes
    14 Posts
    0 Views
    I
    Not in MY systems, but in third-party ones... Ugh... Yes. Proud to have finally moved to the A-Ark. Which one are you in? Author of the Guardians Saga (Sci-Fi/Fantasy novels)
  • Security through, er, idiocy?

    security question
    9
    0 Votes
    9 Posts
    0 Views
    L
    erm. the password to 'something in our network' (I wn't say what just in case!!!) is actually "correcthorsebatterystaple" PooperPig - Coming Soon
  • Tests failing?

    question
    8
    0 Votes
    8 Posts
    0 Views
    L
    It's like Taste Failing. :laugh:
  • Yet ANOTHER piece of MS Office Brilliance

    question lounge
    8
    0 Votes
    8 Posts
    0 Views
    P
    The sad thing is I immediately knew when I saw the subject and the dates.
  • Weird, and definitely not wonderful

    com functional
    9
    0 Votes
    9 Posts
    0 Views
    R
    Well, having one stored procedure for each possible search parameter would be a REAL horror, IMHO. You can get to the hundreds of procedures really fast. I would likely have more than one parameter in the sproc, and default values, so I could write: EXEC GetClientDepartments @accountNumber = 'xxxxxxxx'; -- or... EXEC GetClientDepartments @catId = 'xxxx'; t-SQL code can get really, really messy if you don't pay attention. But, other than that, the code is not really an horror (t-SQL code quality is a lot lower than what you're expecting). My 2c.
  • Resharper not as Sharp as Usual

    question code-review
    7
    0 Votes
    7 Posts
    0 Views
    R
    I wouldn't mind, but it consistently puts up a squiggly line under the code, and I've conditioned myself to treat those as warnings - i.e. something to be eliminated. "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
  • mmmm Salty passwords

    asp-net database csharp algorithms cryptography
    3
    0 Votes
    3 Posts
    0 Views
    L
    ..in the case of humor the salt would be randomly pulled from a pre-seeded table, also containing Bacon and CListCtrl. Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
  • frustrated user that doesn't know where to turn!!

    com
    7
    0 Votes
    7 Posts
    0 Views
    N
    More like wrong site. While there may be some of us that know how to deal with a virus etc. there are probably many sites/fora that are dedicated to helping solve issues with that kind of thing ;-)
  • Web/Java Application Developer Cover Letter

    career java css database design
    10
    0 Votes
    10 Posts
    5 Views
    L
    Member 11323763 wrote: I suspect my knowledge of hardware roughly equates to A+ certification, but I’ve never had a reason to be tested and maintain certification Excellent. Elephant elephant elephant, sunshine sunshine sunshine
  • Another piece of MS Office Brilliance

    database
    9
    0 Votes
    9 Posts
    1 Views
    L
    Ah, but he is the first president in the room since he last checked.. Come on Microsoft, can't you see I have the right stuff to be CEO? Just mail me! :laugh: How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
  • Floorwise appplication

    tools
    15
    0 Votes
    15 Posts
    0 Views
    J
    Easy! Just do a text search in the code for something like if (floor == 2) { } and you'll locate the problem in a second! :doh:
  • I fix it!!!111

    help tutorial question announcement code-review
    14
    0 Votes
    14 Posts
    1 Views
    B
    Indeed it is javascript :)
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • New record...

    com architecture help question
    9
    0 Votes
    9 Posts
    0 Views
    T
    :thud: :thud: :thud: Please somebody help me counting layers.... :sigh: "When you don't know what you're doing it's best to do it quickly"- SoMad
  • 10600 lines

    javascript php question
    15
    0 Votes
    15 Posts
    1 Views
    N
    Well... Good luck in figuring out what it currently does :laugh:
  • Unreachable code detected

    com functional tutorial question learning
    12
    0 Votes
    12 Posts
    0 Views
    R
    I fundamentally disagree, but it does depend on the language. In C++ and many other languages I use RAII instead to ensure nothing is ever missed. "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
  • It's the way we've always done it!

    sales collaboration help question announcement
    9
    0 Votes
    9 Posts
    4 Views
    W
    I might ask him about the potty training. :laugh: Quote: If they had proper obfuscation, that would be hard True, the key word being 'if'. ;P In this case it's kinda good that they didn't have it, BUT also quite worrying in general.
  • We have to save it to generations...

    com question
    5
    0 Votes
    5 Posts
    0 Views
    B
    I see this sort of nonsense over and over, and am certain everyone else does, too. They always look like someone got a school assignment they want someone else to do or they've just started somewhere after lying in the interview about their own brilliance. Some sites don't appreciate sarcasm, but I smiled heartily at Member 10641698 wrote: "plz tel me its urgent" Answer: It's urgent. As Siskel & Ebert said ... :thumbsup::thumbsup::thumbsup::thumbsup: I thought I was in love with that response, then saw the name was feminine and thought I was in love with the poster. Then I clicked on her profile. It is love, but don't tell my wife to whom I've been married longer than the poster has been alive. I drive a Silverado and she thinks that's my mid-life crisis. cat fud heer
  • 13th Month ?

    question
    13
    0 Votes
    13 Posts
    0 Views
    I
    Actually there is a good reason for that. Depending on your locale, some calendars have 13 months. This is especially true for cultures that have the lunar calendar, thus adding an extra month once every so many years.