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
  • Data type mismatch in criteria expression.

    help
    2
    0 Votes
    2 Posts
    7 Views
    S
    So, what forum did you think this was again? ---- It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery. --Raymond Chen on MSDN
  • A fond memory of assembly language

    performance
    29
    0 Votes
    29 Posts
    169 Views
    D
    :laugh: @ Britland
  • One advantage of Cobol

    4
    0 Votes
    4 Posts
    23 Views
    M
    COBOL was my first pro language, and I used to take great joy in writing code in "English" (the 88 lines were the thing; they were more-or-less equivalent to enumerations, but they msde it possible to write code in linguistically-parseable sentences). And it's not a dead language; my COBOL '99 and ME are as popular as ever.
  • Hilarious BugFix By Developer

    com help lounge
    4
    0 Votes
    4 Posts
    23 Views
    F
    After all, does he have to support it? Probably not
  • What did i miss?

    question
    8
    0 Votes
    8 Posts
    35 Views
    C
    Yep! cheers, Chris Maunder CodeProject.com : C++ MVP
  • is it good way for download ?

    sysadmin question learning
    2
    0 Votes
    2 Posts
    10 Views
    V
    It does not sound logical. One can just entrap querystring and then manually build the path, defeat the download statistics routine or an optional logon check. You should pass some ID and read the file on serverside and stream it. The file should be away from virtual folder. Vasudevan Deepak Kumar Personal Homepage Tech Gossips
  • Best way of handling querystring [modified]

    csharp collaboration
    4
    0 Votes
    4 Posts
    19 Views
    E
    Actually it sends them back to the page that referred them to the current page (which isn't a good idea because Norton and McAfee like to change your settings so referrer information is not passed with the request). Request.UrlReferrer
  • Using Else with blank If

    linux help
    24
    0 Votes
    24 Posts
    135 Views
    D
    Shouldn't it be: bool b = (x == y); ---------- bool b = (x = y); would set x to y and then b to x --- The sum of the intelligence of the world is constant. The total number of people is always increasing.
  • I think I need a bigger hammer...

    com tools architecture question
    20
    0 Votes
    20 Posts
    71 Views
    M
    It isn't just american kids Hesse.. The spoiled brats are EVERYWHERE
  • Seriously

    c++ com architecture help question
    13
    0 Votes
    13 Posts
    47 Views
    F
    I thought he was talking about the link in his message. When you click it, it first returns page not found, click go and it loads. ie.7 by the way. Freddie L Richard
  • Create exception handling

    java
    2
    0 Votes
    2 Posts
    10 Views
    V
    :mad: Vasudevan Deepak Kumar Personal Homepage Tech Gossips
  • 100% Bug Free - 0% Logic

    c++ collaboration help question
    7
    0 Votes
    7 Posts
    42 Views
    V
    Parthi_Appu wrote: ...::OnMouseMove(...){ and just say return; That would enhance performance too by not creating objects. Isn't it? :) Vasudevan Deepak Kumar Personal Homepage Tech Gossips
  • Variation of bad boolean check.

    18
    0 Votes
    18 Posts
    71 Views
    H
    I have to disagree. Amongst beginners tertiary operators are notoriously hard to read. Anybody who adds them superflously does deserve the hall of shame.
  • Hall of Shame I think

    tutorial question workspace
    3
    0 Votes
    3 Posts
    21 Views
    L
    LOL! This is a good one!:laugh: Those things give me headaches. Whenever I'm visiting at my father's place, I have to unset an alarm on one of those. Otherwise it will wake me up at 6 am. I never got the hang of it. And my father insists that I leave the alarm on because he sometimes forgets to set it (when I'm not there).:doh: So if I do learn how to unset I'll have to set it back when I leave. Every time I go visiting, I have to ask him to set it and unset it for me and it ends up in all kinds of jokes about me being a programmer and not being able to use a simple alarm clock.:)
  • Funny Redirection

    com
    8
    0 Votes
    8 Posts
    37 Views
    N
    dan neely wrote: https://www.mysite.com will become httpss://www.mysite.com Yes exactly, and more over site won't load. Because each time it will redirect to the same page printf("Navaneeth!!") www.w3hearts.com
  • ASP.NET Server-side text change notification?

    2
    0 Votes
    2 Posts
    10 Views
    N
    varnk wrote: while (Textbox3.Text == "") { } What a shame ....!!!! :mad: printf("Navaneeth!!") www.w3hearts.com
  • Versionitis

    3
    0 Votes
    3 Posts
    17 Views
    J
    I shiftily passed it on to IT support saying it had 'mysteriously stopped working', whereupon they somehow divined the problem, booted from an install CD, and managed to have that 'ahh programmers' look while putting the original library back in place.
  • if else galore

    7
    0 Votes
    7 Posts
    43 Views
    K
    I don't know about you but one of the first things I do when a new version of a language comes out is look up what's new. But I suspect many don't bother with that. Kevin
  • VS 2003 SP1 Install

    3
    0 Votes
    3 Posts
    13 Views
    K
    From this: http://blogs.msdn.com/heaths/archive/2006/10/06/VS-2005-SP1-Takes-a-While-to-Install.aspx[^] I didn't realise there were other options when running in quiet mode. start /wait VS80sp1-KB918525-X86-Beta-ENU.exe /quiet /L*v+ VS80sp1-KB918525-X86-Beta-ENU.log Just as well it went smoothly for me.:) Kevin
  • No QA for language in GUI [modified]

    9
    0 Votes
    9 Posts
    35 Views
    P
    Like the sig.:-D Deja View - the feeling that you've seen this post before.