Chris Maunder wrote:
Though VBScript is still the Prince of Languages...
Prince of Darkness? ;P
Chris Maunder wrote:
Though VBScript is still the Prince of Languages...
Prince of Darkness? ;P
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.
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.
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.
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...
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.
That reminds me of a previous boss who made us initialize all C++ pointers to null TWICE (just to make sure)
What you want to do is called "late binding". Search on that term and you will find several articles.
Is this what you want to create? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/updaterv2.asp?frame=true[^]
String asdf = "("; Same escape sequence rules in C, C++, C#, and Java.
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.
Famous last words... "It works for me"
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)...
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.