Strong Typing
-
ewwww! Declare the variables as close to their first use as possible. I have spoken.
cheers, Chris Maunder
CodeProject.com : C++ MVP
Well I started programming in Java and we were told to put all our declarations up the top (which i think is the Java coding standard), and i like it this way. Makes all your declarations easy to find. However, sometimes i need a variable at that scope which will only be used further down, so i put it there. It all comes down to the scope of you're variable and where it's used in that scope as to where it should go
Customer in computer shop: "Can you copy the Internet onto this disk for me?"
-
But then you have to go back to where you were. Sure you could take note of the position but it would still be annoying.
in the old vb6 days ctrl-f2 used to take you to a definition and ctrl-shift-f2 used to take you back to where you were before. I'm sure this must be implemented in .net but i've never found out how to do it. I used to use it all the time. Russ