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
  • Dalek Dave

    com question
    5
    0 Votes
    5 Posts
    0 Views
    L
    da-leak is d bigst horor! :-D
  • Brand new horrors post Halloween :)

    career wpf csharp collaboration json
    6
    0 Votes
    6 Posts
    0 Views
    F
    Leave my balls alone, would you... (You're all thinking it, I just had the balls to say it) I wasn't, now I am, then I won't be anymore.
  • The world of acronyms

    collaboration
    22
    0 Votes
    22 Posts
    3 Views
    K
    Draw a red circle whit a slash through it (the classic 'No' symbol), and put TLA in the middle. Karl
  • MessageBoxes Don’t Belong In Drivers

    com
    2
    0 Votes
    2 Posts
    0 Views
    B
    Although I am not primarily a driver developer, I have written a few. The 1st rule is don't put any MessageBoxes in the driver not even while debugging. :sigh: Just because the code works, it doesn't mean that it is good code.
  • VS 2010 and CTRL+Backspace fun

    csharp visual-studio wpf tools help
    3
    0 Votes
    3 Posts
    0 Views
    S
    I guess Microsoft keep that bug as a signature of tradition :)
  • 0 Votes
    76 Posts
    8 Views
    M
    a Stored procedure is given a name and called from code, while ad query writes it's own query (select, update, insert, delete). Is there anything else we need to know about?
  • When the CEO becomes a developer II

    database mysql question announcement
    16
    0 Votes
    16 Posts
    0 Views
    D
    Charvak Karpe wrote: but in the real world probably 90% of the population can tell what you're doing if you do 24 * 60 * 60 You haven't worked with some of the developers I work with now. No, they couldn't tell you what that code was doing... seriously. A guide to posting questions on CodeProject[^] Dave Kreskowiak
  • ALWAYS USE A STRINGBUILDER! [modified]

    performance csharp xml help
    14
    0 Votes
    14 Posts
    0 Views
    P
    The comment I added was much much tamer.
  • The non-blocking command line parameter

    design sales json workspace
    3
    0 Votes
    3 Posts
    0 Views
    F
    Perhaps a better way would have been to use the start command. Do they not know DOS? :)
  • Range Checking

    csharp database com question
    13
    0 Votes
    13 Posts
    0 Views
    B
    I have seen people use ints with 1s and 0s because they learned programming with a language that did not have a boolean type. I say that is what you get when you have someone whose degree is not in programming write the software :sigh: What is really scary is when folk with a real programming degree do the same thing! :omg: Just because the code works, it doesn't mean that it is good code.
  • When the CEO becomes a developer IV

    php database mysql question announcement
    6
    0 Votes
    6 Posts
    0 Views
    OriginalGriffO
    Is there any chance you could get him a job with Paypal? Please? Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
  • Range-Checking (not)

    help
    6
    0 Votes
    6 Posts
    0 Views
    R
    I unfortunately must disagree.. no amount of language feature or design constraint can save you from a programmer lacking in programming skills. The only solution for THAT problem is good code review and a team willing to point out ways to improve (and enforce them) to the souls who are in this occupation but shouldn't be. And.. your original post is hilarious and sad at the same time. For the same reasons.
  • When the CEO becomes a developer III

    database mysql
    5
    0 Votes
    5 Posts
    0 Views
    I
    Yes, and the whole software even more. As I wrote in another part of this 'series' he managed to do really everything wrong which is possible - in fact he wrote the How-Not-To of programming. I don't know where to start, so much he did wrong. E.g. there is no checking and no escaping of parameters, GET and POST parameters are written directly in the query. Depending on the PHP configuration is is possible to delete whole tables via SQL-injection. And, pretty nice, every user has an account with virtual money. But this will be part 4..
  • It's not the most horrible code but it is pointless

    com
    8
    0 Votes
    8 Posts
    0 Views
    R
    LOL!!!!!
  • When the CEO becomes a developer I

    php database help
    2
    0 Votes
    2 Posts
    0 Views
    R
    I **really** like the second one.
  • Well it made me laugh anyway

    question
    5
    0 Votes
    5 Posts
    0 Views
    M
    dont you mean... // s == "r you creazy ?" ;) Life goes very fast. Tomorrow, today is already yesterday.
  • It's the small things that matter.

    data-structures debugging performance help question
    9
    0 Votes
    9 Posts
    0 Views
    P
    I think I'll take CIDiv's advice next time....you're probably not missing something...
  • Ugly, ugly, ugly!

    c++ help
    3
    0 Votes
    3 Posts
    0 Views
    L
    jamie550 wrote: unnecessarily complicated In OOP they call it "extendable". :rolleyes: Greetings - Jacek
  • Best use of exception handling

    ruby
    15
    0 Votes
    15 Posts
    1 Views
    R
    LOL!!! Oh man.. you just made my week.
  • Does C++ long for VB?

    c++ delphi question
    11
    0 Votes
    11 Posts
    3 Views
    R
    A new low in obfuscation. Why use just the comparison operators when you can involve the rest in the task!! I'm curious what this person was thinking in doing this? Of course, there is the attendant fear of discovering what they were thinking.. I retract my question.