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
  • Facepalm of the day.

    database com question
    24
    0 Votes
    24 Posts
    0 Views
    G
    very cool (aka :cool: ) 'g'
  • 0 Votes
    5 Posts
    0 Views
    N
    :doh: :doh: :doh: In code we trust !
  • What is null equal to?

    question
    23
    0 Votes
    23 Posts
    0 Views
    R
    Q.E.D. (Sorry, it was just sitting there waiting for it). "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
  • How to Turn $5 into $15,000 with PayPal ?

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • ThreadPool explosion

    architecture
    6
    0 Votes
    6 Posts
    0 Views
    R
    If anything, this is a very good description on how we work here. ~RaGE(); I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Entropy isn't what it used to.
  • LOST LOVE,MARRIAGE,BINDING,DIVORCE SPELLS AND CHARMS +27730066655

    help wpf wcf com
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Function name choice

    10
    0 Votes
    10 Posts
    0 Views
    O
    It's Scala actually and both Forogar and PIEBALDconsult are right about the function purpose. It is taken from a small example that reads a text file and prints it out displaying each line's length before it and the function makes sure that all lines are aligned/tabulated correctly.
  • Kill me

    c++ css
    2
    0 Votes
    2 Posts
    0 Views
    G
    See my sig. Software Zen: delete this;
  • 0 Votes
    13 Posts
    3 Views
    B
    I'm never sure about that one. Yes, it has a marginal effect on security, but it has a big effect on user annoyance, and I think the trade-off is worth it in most cases to let a user know that they mistyped their username.
  • The Sandbox

    adobe game-dev performance help
    4
    0 Votes
    4 Posts
    0 Views
    C
    According to your magical fairy tail you had 64 machines each with 500 GB of ram and each with 8 cores, which you called desktops- a desktop is currently around 16GB of RAM no where close to 500. 64 bit limitation is 18,446,744,073,709,551,616 so if you had 64 TB which is probably only 64 GB it wouldn't matter you would get the whole thing not a magical 32 TB. The current limitation for Linux is 1 TB of RAM. It's 64 GB with a G is probably the truth. and FYI we are getting 200 GB's in one machine so the guy is going through a crap load of work that windows does not natively support.
  • Interesting...

    tutorial database com debugging question
    12
    0 Votes
    12 Posts
    0 Views
    M
    Means that 99.9% of all the servers on the internet have porn ;P
  • Wow, Just Wow

    help
    14
    0 Votes
    14 Posts
    0 Views
    M
    Looks like someone has just read something about Domain Driven Development and was fiddling around a bit. :-D
  • SetProperty!!!

    csharp com graphics design game-dev
    14
    0 Votes
    14 Posts
    0 Views
    T
    I can imagine a use for something like this when implementing Undo/Redo. Tom Clement articles[^]
  • 0 Votes
    39 Posts
    0 Views
    N
    The 8207 is the character that has a graphical image of "/" You are wrong this has nothing to do with "/" Here is the same bug without "/" but with 8207. String str1 = "test"; String str2 = "test‏"; Moreover, a char is not ASCII but a 16 bit unicode character, contrary to C/C++.
  • Android gravity constants

    html android com hardware question
    7
    0 Votes
    7 Posts
    0 Views
    K
    Brisingr Aerowing wrote: What do you get when you cross a joke with a rhetorical question? I think the answer to your question is "EXACTLY"!
  • The lasting effects of the Unix epoch

    2
    0 Votes
    2 Posts
    1 Views
    R
    Its almost worth joining just to have fun with that ;-) "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.
  • Resistant to Change

    graphics regex
    64
    0 Votes
    64 Posts
    0 Views
    C
    Anything that someone derives meaning from and is explained by that person - is a fact by definition
  • The first time, and the first time 2.

    13
    0 Votes
    13 Posts
    0 Views
    P
    A database I access where I am has a bunch of DONOTUSEblahblahblah tables. :sigh:
  • More great naming

    database regex
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Having enough data

    database csharp asp-net debugging architecture
    2
    0 Votes
    2 Posts
    0 Views
    P
    :omg: First I've heard of that. Should I send some tequila over? You'll never get very far if all you do is follow instructions.