Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

David Rush

@David Rush
About
Posts
15
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C# is for bed-wetting nancy types. C++ is the One True Language
    D David Rush

    Chris Maunder wrote:

    Though VBScript is still the Prince of Languages...

    Prince of Darkness? ;P

    The Lounge csharp c++ architecture

  • Do you use the cue rest in a game of pool (aka the spastic stick)?
    D David Rush

    It has its place in the game. I will use a mechanical bridge if I am otherwise unable to attempt the shot while keeping at least one foot on the floor.

    The Lounge game-dev json question

  • Ever experienced this
    D David Rush

    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.

    The Weird and The Wonderful help database collaboration beta-testing regex

  • Unnecessary try / catch block
    D David Rush

    I feel you pain. Old habits do die hard, so the trick is learning the right habbits. Asking yourself "Do we have a backup?" is the best habbit to have. Beyond that is a functional understanding of what the compiler is doing to your source, regardless of the language. Unfortunately too many people try to compare a medium-level language like C or C++ to a high level language like C# based on the syntactical similarities alone.

    The Weird and The Wonderful algorithms question

  • Unnecessary try / catch block
    D David Rush

    I agree with the use of conditional statements for this purpose, but they are not there and this is supposedly debugged code. I can also see re-throwing if there is a finally block cleaning up, regardless of the use of conditionals. What I didn't show was that there are typically three or four lines of code inside the try block...

    The Weird and The Wonderful algorithms question

  • Unnecessary try / catch block
    D David Rush

    Whilre reviewing the code from some contract developers, I have found a common construct: public void SomeMethod() { try { // some code here... } catch (Exception exception) { throw exception; // Just re-throw } } Why just catch and re-throw an exception? This just adds to the complexity of the execution without doing anything in return.

    The Weird and The Wonderful algorithms question

  • Bit operations in VBScript
    D David Rush

    That reminds me of a previous boss who made us initialize all C++ pointers to null TWICE (just to make sure)

    The Weird and The Wonderful c++ com architecture

  • Program Auto-Updated
    D David Rush

    What you want to do is called "late binding". Search on that term and you will find several articles.

    C# question csharp visual-studio help announcement

  • Program Auto-Updated
    D David Rush

    Is this what you want to create? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/updaterv2.asp?frame=true[^]

    C# question csharp visual-studio help announcement

  • parenthesis in a string
    D David Rush

    String asdf = "("; Same escape sequence rules in C, C++, C#, and Java.

    C# csharp question

  • parenthesis in a string
    D David Rush

    Must be something else you are doing. That should work. The only tricky character is the backslash. It is the escape character for non-printing and control characters, so you have strange constructions like: string abcd = "\"\\\""; That translates to a string containing double-quote backslash double-quote.

    C# csharp question

  • RSS Feed
    D David Rush

    Famous last words... "It works for me"

    The Lounge com question

  • RSS Feed
    D David Rush

    It may be working for you, but not for me: Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons)...

    The Lounge com question

  • RSS feed is down?
    D David Rush

    I'm seeing the same thing... If you look at one of the feed URLs in a browser you get an (unspecified) runtime error. I understand there are some hardware and configuration changes underway on the site. Looks like they missed this.

    The Lounge question

  • Microsoft newsgroup
    D David Rush

    msnews.microsoft.com

    The Lounge sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups