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
  • [Solved] Why Do Computer Counts from Zero.

    com data-structures performance
    26
    0 Votes
    26 Posts
    1 Views
    K
    It was also handy back in the days when only single array indexes existed and you wanted dual indexes because everything mathematically matched up really handily without taking extra steps. for (i = 0; i < 10; i++)// Not at all like the format of older languages! { for (j = 0; j < 10: j++) { ind= i + j * 10; val[ind] = some value } } Or the other way around, find the two indexes from the current index: for (ind = 0; ind < 100; ind++) { j = ind/10; i = ind - (j * 10); }
  • Killing off the competition??

    css cloud question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Best Practices turned into Coding Horrors.

    database
    50
    0 Votes
    50 Posts
    1 Views
    P
    Because it was a coding horror.
  • 0 Votes
    4 Posts
    0 Views
    T
    This forum isn't for programming questions. If you've an ASP.NET question, ask your question here (Quick Answers)[^] or here (ASP.NET forum)[^] The quick red ProgramFOX jumps right over the Lazy<Dog>. My latest article: Understand how bitwise operators work (C# and VB.NET examples)[^]
  • 0 Votes
    4 Posts
    0 Views
    P
    Wrong forum.
  • Direct me to USB

    com design architecture
    4
    0 Votes
    4 Posts
    0 Views
    P
    C-P-User-3 wrote: Design And Architecture That forum is for application design and application architecture. I was brought up to respect my elders. I don't respect many people nowadays. CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
  • Logical thinking could get very complicated

    database css announcement
    10
    0 Votes
    10 Posts
    0 Views
    T
    The old one had been in production for a long while. Users knew that it returned correct results but just took too much time to run. They got timeout messages from time to time. Instead of fixing it, it was easier and quicker to write a new one. TOMZ_KV
  • Unambiguously Ambiguous

    com question
    5
    0 Votes
    5 Posts
    0 Views
    D
    1. May be the poor soul was forced to do VB and was just frustrated. 2. Coding finished. Comments never implemented. 3. Finished may be an event and the handler was never implemented. 4. It's a clue to treasure. Could be anagram. I can think of mine, eleventh and prism as the words. 5. May be it's Dave showing off his CCC skills. "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]
  • Tired and Sick of Programming?

    css database csharp delphi html
    11
    0 Votes
    11 Posts
    1 Views
    J
    In some point, two or three years ago, I discovered that coding as primary job is a dead end. Then I switched to project management and scrum mastering. Benefits: 1. Still working in "application development" and having contact with new technologies 2. Finally having time to code for fun (when and what I want!) If you're sick of it - think about something else to do. It will not pass or get better. :(
  • 0 Votes
    4 Posts
    0 Views
    L
    That just makes me angry.. :mad:
  • That was weird...

    help visual-studio winforms
    3
    0 Votes
    3 Posts
    0 Views
    B
    There were 2 projects in the solution, neither one had any real code (I like to lay out my projects before I start working). From what I dug up, it is a VS bug that has been there for a while. (Too lazy to pull up a link) Gryphons Are Awesome! ‮Gryphons Are Awesome!‬
  • External System's Table's View's Table's View ('s Tables?)

    com question
    2
    0 Votes
    2 Posts
    0 Views
    B
    throw new BrainNotFoundException(); Gryphons Are Awesome! ‮Gryphons Are Awesome!‬
  • Things that make you go WTF...

    14
    0 Votes
    14 Posts
    0 Views
    G
    BobJanova wrote: it can only be called in the dispatch thread (e.g. it's in an event handler Got it in one. I explained this fact to the guy a number of times, and it still didn't seem to sink in. Software Zen: delete this;
  • Shiva Lingam

    com discussion
    31
    0 Votes
    31 Posts
    2 Views
    S
    Sorry, but I never knew someone had all the time in the world to write an article on a phallus, embellished with pseudo-theology . ;P
  • Found this a few minutes ago

    sharepoint
    9
    0 Votes
    9 Posts
    0 Views
    S
    Wow, talk about doing it the hard (and wrong) way. I suspect that this is a symptom of the state of on-the-job training in the programming world. It usually goes like "hey here's a new programmer, do this." But I still don't see how one becomes a programmer without learning the basics of SQL. No one likes code reviews, but it's useful for things like this. Also, I love how @@FETCH_STATUS is global. I once saw an expensive production system blow-up due to a legacy code time bomb in the form of a SP using a global variable like this.
  • For your next job interview

    career performance
    15
    0 Votes
    15 Posts
    0 Views
    G
    I've worked on a lot of different things in that time. For the most part it's been a pretty fun ride. Software Zen: delete this;
  • REMOVED

    7
    0 Votes
    7 Posts
    0 Views
    D
    In that case, it works does not mean you should use it. This is totally unreadable at first. In the professional World, when any day you can be out of project(read job, as worst case) and some other poor sod has to maintain it, this is one of the things that leads to rants and posts in this very forum. :) "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]
  • Data Types And Convenience Methods are Overrated

    com
    17
    0 Votes
    17 Posts
    3 Views
    P
    Easier isn't always better.
  • Enhancing the bugs

    help question
    6
    0 Votes
    6 Posts
    0 Views
    S
    Mangement likes what you've done to address the issue, however, they would like to know if you could enhance the feature by using more colors? :laugh: It was broke, so I fixed it.
  • Sometimes I wonder about code comments

    c++
    16
    0 Votes
    16 Posts
    1 Views
    W
    And on laptops the stone age isn't over, really. Try getting a laptop nowadays with that resolution. Luckily I got mine 2 years ago. Wout