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
  • 0 Votes
    4 Posts
    3 Views
    P
    :omg: pretty much sums it up, here too. Andrew Rissing wrote: do some reviews for SQL injection vulnerabilities Yes, they should. They ought to do a search on this site for Colin Mackay's article on such topic :) "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
  • stdcall_api

    c++ ruby question
    5
    0 Votes
    5 Posts
    2 Views
    R
    Hello thoru, Although I was sure that this issue should not make any error :omg: . I gave it a try in my installed VS2008 in my machine. I made a new C++ project with a precompiled headers and non-empty project, every thing went good :cool:. Redwan Al-Bougha
  • A horror in release code

    csharp help announcement
    9
    0 Votes
    9 Posts
    6 Views
    S
    even worse, it's a poor man's floppy dongle! Best regards, Steven A. Lowe CEO, Innovator LLC www.nov8r.com
  • And Another One

    json question
    5
    0 Votes
    5 Posts
    3 Views
    R
    I do not consider renumbering the values in Resource.h to be a whole heap of work. Besides, I always leave gaps around arrays of control identifiers just in case I have to add more so this is very rarely an issue for me and when it arises it is easy to deal with.
  • Someone please help me ....

    c++ ruby help
    23
    0 Votes
    23 Posts
    8 Views
    B
    For those who don't know The International Obfuscated C Code Contest (IOCCC) is located at: http://www.ioccc.org/main.html[^] Bill W
  • You *must* focus!

    6
    0 Votes
    6 Posts
    3 Views
    C
    :confused:... :wtf: ... :omg: ... :doh:
  • 0 Votes
    15 Posts
    5 Views
    L
    lmao To those who understand, I extend my hand. To the doubtful I demand: Take me as I am. Not under your command, I know where I stand. I won't change to fit yout plan. Take me as I am.
  • Formwhat?

    question
    10
    0 Votes
    10 Posts
    4 Views
    C
    Jeff Dickey wrote: it violates the Thirty Second Rule (a single line of code shouldn't take that long to parse in your head) Ummmm List tablica = dc.vArtiklCjeniks.Where(sg => sg.StrankaID == s.StrankaID || (sg.StrankaID == null && dc.vArtiklCjeniks.Where(sg1 => sg1.ArtiklID == sg.ArtiklID && sg1.StrankaID == s.StrankaID).Count() == 0)).ToList(); How about that? :D Does this qualify as coding horror? :) -- www.domagoj.net
  • The Loop

    7
    0 Votes
    7 Posts
    4 Views
    P
    Yuck. :rolleyes: "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
  • Worst database design I've ever seen.

    database design
    12
    0 Votes
    12 Posts
    3 Views
    G
    Indexes - pwah! Real men use table scans in their queries - indexes are for cheats :rolleyes: :laugh: Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
  • Hi.

    csharp hardware
    14
    0 Votes
    14 Posts
    5 Views
    P
    Dude, do you have the slightest frigging clue what this forum is for? It is for sharing coding horrors one has found while working, not for programming questions. Geeze :mad: "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
  • how many seconds?

    question
    9
    0 Votes
    9 Posts
    5 Views
    B
    I understand that not everyone can be an expert at higher math, but that is really bad. Bill W
  • If True = False Then

    28
    0 Votes
    28 Posts
    5 Views
    S
    Gotcha... :)
  • Coding

    business help tutorial career
    6
    0 Votes
    6 Posts
    3 Views
    B
    If you are trying to say that these requirements are a horror, I have to disagree. Those requirements are quite resonable for a homework assignment. Also this is a "coding horror" forum not a requirements horror forum. Bill W
  • Looking at this math is making me num...

    question lounge
    10
    0 Votes
    10 Posts
    4 Views
    B
    I totally agree. I have had requirements change far more often than not. Even for things that I was originally told that it would never change. So I always write things in such a way as to allow for easy changes in the future. Bill W
  • Worst app ever!

    database sql-server tools performance help
    15
    0 Votes
    15 Posts
    3 Views
    B
    Only there? :omg: Daily WTF Memes
  • Fun with decompiled code.

    csharp asp-net com announcement
    13
    0 Votes
    13 Posts
    4 Views
    B
    There is way too much code like that, with direct SQL concats. I am only briefed to add two reports to the system, not secure it. Hell, if I were to decode all the decompiled code and use parametrised queries, I could probably buy a new car with the earnings. Daily WTF Memes
  • Why is the app so slow

    ruby help learning
    10
    0 Votes
    10 Posts
    2 Views
    B
    Graham Bradshaw wrote: Shouldn't ReDim nFoo(j - 1) be ReDim Preserve nFoo(j - 1)? As the code is, you reinitialise nFoo. Yes, you are correct. Thanks for pointing it out, must have slipped through my fingers while typing it over from the real code. :-O Note to myself: Learn to use Copy-Past ;) Learn from the mistakes of others, you may not live long enough to make them all yourself.
  • who wrote wrote this C program?

    question database com business
    10
    0 Votes
    10 Posts
    3 Views
    B
    More proof that just knowing the syntax of a language is not enough to write high quality code. Bill W
  • We need more ITT Tech programmers

    c++ delphi database docker data-structures
    22
    0 Votes
    22 Posts
    9 Views
    B
    I used to work at a place where many of those things were done and no one saw anything wrong with it. I switched to a better job. ;) Bill W