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
  • Microsoft, as an engineer, you make me ask WHY

    csharp apache visual-studio design
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Who needs security through obscurity?

    com security tools question
    7
    0 Votes
    7 Posts
    0 Views
    B
    Sadly, that seems to be the default setting with Apache. I've seen it often with directory listings.
  • C++ expression(s)

    c++ question
    13
    0 Votes
    13 Posts
    2 Views
    C
    Oh my god... The MFC MESSAGE_MAP... How could i miss this rape on #define-macros and the whole C++ Language...
  • It's alive.....!

    question
    6
    0 Votes
    6 Posts
    0 Views
    P
    I was more thinking about the Bride of Pinbot, but that works with The Thing, too :) I never finish anyth
  • Amazon's rules, Amazon's fail

    help com collaboration learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Is this the worst code in the world?

    css help question learning
    18
    0 Votes
    18 Posts
    1 Views
    B
    that just made me laugh out loud
  • Man-in-the-middle SSL-Streams

    sysadmin csharp security cryptography question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • WTF

    question com adobe architecture
    6
    0 Votes
    6 Posts
    0 Views
    L
    Loved the author's photo, btw.. "CS student and .NET programmer extraordinaire, currently starting out in the corporate world." Ah yes, we all looked like that when we were "currently starting out". After 20 years though, it all ends up the same way[^].. Lesson for today's youth: love your hair while you've still got it! :laugh: How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
  • #if NOT_USED

    help
    14
    0 Votes
    14 Posts
    4 Views
    J
    It only confuses stupid people.
  • Wtf JS?

    javascript help java sales tools
    7
    0 Votes
    7 Posts
    0 Views
    I
    That's probably part of the reason why Allman style is not very popular in JS. And I agree: The optional semicolon is just terrible.
  • hhg

    11
    0 Votes
    11 Posts
    0 Views
    J
    X| "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
  • Do you need work Papers

    com question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Do you need work Papers

    com question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • if...else if.. & bad casting

    css question announcement career
    3
    0 Votes
    3 Posts
    0 Views
    R
    :thumbsup: :) Thanks, Robin.
  • Comedy code comment misdirection

    10
    0 Votes
    10 Posts
    1 Views
    P
    Think bigger: whales.Save(); If you're having a bad day, stare at your feet and smile.
  • Fun with pointers in C++

    c++ question
    33
    0 Votes
    33 Posts
    5 Views
    L
    You can't read C++ code without knowing the types. Who knows if equals was overridden, everything could happen. Even then you should read, GetA() return something, then operator = is called on this something.
  • I blame San Andreas - it's his default...

    5
    0 Votes
    5 Posts
    0 Views
    L
    That is rather helpful; it explains that the DataManager is merely a wrapper round a connection, and that it probably should be deleted from the project and simply replaced by an IDbConnection and a factory :-\ Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)
  • And you thought some of the CodeProject questions were bad...

    c++ com help
    11
    0 Votes
    11 Posts
    0 Views
    M
    My favorite part is: - Perhaps you should create a spreadsheet. - Hey! Can you help creating a spreadsheet? I'm new into programming. :|
  • Fun with touchpads

    com json help lounge
    8
    0 Votes
    8 Posts
    2 Views
    G
    I terminated the touch pad on my laptop (with extreme prejudice) via the BIOS. Software Zen: delete this;
  • Smiles, headache sometimes

    javascript database visual-studio com json
    2
    0 Votes
    2 Posts
    0 Views
    S
    Thank God the code didn't use mooning :)