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
  • Database rats nest

    database xml performance tutorial
    4
    0 Votes
    4 Posts
    38 Views
    S
    Good pickup :) I dont know about the Calender but the dev was definitely not of this Earth :)
  • Unnecessary try / catch block

    algorithms question
    8
    0 Votes
    8 Posts
    74 Views
    B
    Actually, this code has a somewhat subtle behavior, since it is catching by-value, prior to throwing. If a derived exception is thrown, it will be "clipped" to the base class when it is thrown. This could be potentially different from invoking throw, which would throw the derived class.
  • VB.NET

    csharp
    12
    0 Votes
    12 Posts
    83 Views
    G
    Haha. I hate to say this, but in my career, I keep coming across projects that are mostly C# with a small percentage of awful VB.Net code. (I do find GOOD VB.Net code on the 'net.) For example, in my first job out of college, 95% of the code was in C#. There was one group of dlls written in VB.Net where the developer had all methods take a single array of objects as THE argument. Even weirder was that almost all of the values being passed on the stack belonged as object-level fields. The code was an example of how NOT to use weak typing. It was very clear to me that the original developer spent a few months on the code... I re-wrote it all (from scratch) in 3 days!
  • Ever experienced this

    help database collaboration beta-testing regex
    4
    0 Votes
    4 Posts
    40 Views
    D
    I can fully understand your reasons for leaving. Makes you thing that no one has ever heard of structured coding. The worst I have seen was while extending a DLL written in C. Apparently the orignial developer did not understand how to pass parameters, instead using about 2000 global variables. Fortunately I was able to put my foot down and get rid of all but one or two globals.
  • First real one...

    csharp c++ python asp-net com
    6
    0 Votes
    6 Posts
    55 Views
    P
    Code Complete has real-world statistics on which techniques spot the most defects. Code Reviews win (with the suggestion that just reading code by different people do the trick for defect finding). And empirical evidence that Increasing QA cost does usually not increase overall cost. Developers, Developers, Developers, Developers, Developers, Developers, Velopers, Develprs, Developers! We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP Linkify!|Fold With Us!
  • .NET Framework? What .NET Framework? Part Deux

    csharp dotnet question
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • Use Appropriate Development Tools

    css tools
    4
    0 Votes
    4 Posts
    37 Views
    D
    VBA/Excel03 still has the same performance penalties over modern languages. >30min to ~1s (timed from button click to completed dialog appeared, so a decent chunk of that second was form loading) X| -- Rules of thumb should not be taken for the whole hand.
  • They want us to do WHAT?

    database hardware architecture question workspace
    6
    0 Votes
    6 Posts
    56 Views
    S
    Hey, I also almost bought a new case. I, however, refrained from doing so when I learned the price of the case I had laid my eyes on. However, my case is now printed neon red with neon green stripes and purple-metallic dots. PRETTY! Cheers, Sebastian -- Contra vim mortem non est medicamen in hortem.
  • SQL Join? na I know a better way.....

    database question
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Third!

    collaboration career
    3
    0 Votes
    3 Posts
    36 Views
    I
    ahhh...jus like me....
  • Synchronizing threads

    java regex
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Second!

    com tools question
    2
    0 Votes
    2 Posts
    17 Views
    I
    Great...Keep it up.... why not now use manuscript :laugh: Recently I heard a babyscript developed too... How i wish I'd one copy of it. X|
  • Object identifiers [modified]

    database sysadmin data-structures security debugging
    1
    0 Votes
    1 Posts
    11 Views
    No one has replied
  • Interclass communication.

    csharp wpf wcf
    4
    0 Votes
    4 Posts
    32 Views
    L
    Mark Salsbery wrote: You could have used sockets! :laugh: █▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██
  • Internal Error.

    sales help
    5
    0 Votes
    5 Posts
    54 Views
    V
    Logically Thinking -- True. But sometimes, throws exceptions. :) Vasudevan Deepak Kumar Personal Homepage Tech Gossips
  • WT? In the .NET Framework

    csharp dotnet com question announcement
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • Better efficiency?

    database question code-review
    9
    0 Votes
    9 Posts
    75 Views
    V
    scott_hackett wrote: Is that a serious post... for real? Couldn't get you? Vasudevan Deepak Kumar Personal Homepage Tech Gossips