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
  • Not a big one but...

    6
    0 Votes
    6 Posts
    0 Views
    P
    Well 128 is not valid for a signed byte... What would be the second problem ? Philippe Mori
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • PHP form processing: the easy way

    help php question
    14
    0 Votes
    14 Posts
    1 Views
    H
    Wow this is very nice code. I´ll zeropad it to fixed line length copy an inversion of it to the front, rotate counterclockwise 90 degrees, apply a color index substitution. Et voila, we´ve got a sprite for a space invaders clone.
  • code for browser

    com
    12
    0 Votes
    12 Posts
    2 Views
    A
    DerekTP123 wrote: "I want a website made. It must have all feature of Google and eBay. Shopping like Amazon would be good too. No time wasters."   And his bid limit for this task?   $250. Oh my god ! That's too costly :laugh: . I am eager to know what happen next :-\ Is that person, who bid, is known as Mark Zuckerberg ??? :confused:
  • It came out...

    visual-studio csharp ruby business
    18
    0 Votes
    18 Posts
    0 Views
    L
    Brad Barnhill wrote: He installs software for a living now "for a living"? Greetings - Jacek
  • The perfect teacher

    csharp java visual-studio tutorial question
    22
    0 Votes
    22 Posts
    1 Views
    B
    Properties man ... properties. Good lord. Brad Barnhill
  • Arrays are overrated, let's use over9000 variables instead!

    help com
    3
    0 Votes
    3 Posts
    1 Views
    B
    Ohh that makes my brain hurt. He uses arrays but cant pass an array. Either the language limits passing arrays or he is a moron. Let me just assume the answer to that and we will move on :) Brad Barnhill
  • Just wondering...

    question
    4
    0 Votes
    4 Posts
    0 Views
    T
    :thumbsup: The lounge is a perfect choice for .... damn! I can't remember... :omg: I never finish anyth...
  • Access granted!

    security question
    15
    0 Votes
    15 Posts
    0 Views
    M
    You'd have to physically find it first.
  • After All My Years

    asp-net csharp javascript html com
    4
    0 Votes
    4 Posts
    0 Views
    P
    Another thing to be aware is that style comment will be sent with the web page while server side comments (using <%-- --%>) are stripped. Philippe Mori
  • not finding perffect & relevant answers

    beta-testing code-review
    6
    0 Votes
    6 Posts
    0 Views
    OriginalGriffO
    I don't get a pairodoxies, so I wouldn't know... 5! Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."
  • ASP.NET Web application messagebox

    csharp help asp-net visual-studio debugging
    4
    0 Votes
    4 Posts
    0 Views
    L
    Even worse are the possibilities that if this code did actually work, you now have a modal dialaog box open on the server waiting for user input. How many of those do you think can be spawned before some kind of memory error occurs?
  • Now this is bad....

    21
    0 Votes
    21 Posts
    0 Views
    R
    :wtf: He must be suggested to join anti-if campaign. // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫
  • I Hate Clever Javascript Programmers [modified]

    javascript question
    33
    0 Votes
    33 Posts
    5 Views
    R
    He has joined the 'anti-if' campaign. // ♫ 99 little bugs in the code, // 99 bugs in the code // We fix a bug, compile it again // 101 little bugs in the code ♫
  • Step Right Up, Get Yer Session 'ere

    asp-net csharp javascript database com
    8
    0 Votes
    8 Posts
    1 Views
    R
    Isn't that the definition of legacy code?
  • VBA data storage the text box way

    data-structures question
    13
    0 Votes
    13 Posts
    1 Views
    R
    The degree bit is not relevant - I'm self-taught, but can read books too. This is really really basic.
  • Looks like a database call obsession to me…

    database design question announcement
    6
    0 Votes
    6 Posts
    0 Views
    R
    UserProfile selectedUser = null; selectedUser = Sql.GetUserDetails(username.Value); You might want to confirm that your KPI isn't based on the number of lines you write. "You get that on the big jobs."
  • try to throw and catch.

    csharp help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Logic

    com help question
    56
    0 Votes
    56 Posts
    4 Views
    M
    Fabio V Silva wrote: If you're working as C# developer I think you should RTFM. You, sir, are a disgrace. Not only are you inaccurate in your assertions, you display the two traits I detest most about *some* people who work in this profession - a lack of respect for those around you, and a blinkered solipsism bordering on egomania. Wise the f**k up son. Nobody's impressed. Smokie, this is not 'Nam. This is bowling. There are rules. www.geticeberg.com http://melpadden.wordpress.com
  • Bad, very bad, test unit test....

    testing beta-testing
    5
    0 Votes
    5 Posts
    0 Views
    A
    I agree it should be part of the spec. There's nothing to indicate in the message or sample that it's incorrect for it to be optional element which can be null. (Only that if it isn't null then it should have a length greater than zero).