explanation of Java style issues
Posted on 2002-03-17
I'm new to Java and I'm finding the coding style in both of the books I bought to be a little strange, as compared to VB.
I'm hoping for a clear and somewhat detailed reason that common Java style is to declare variables in the body of the code, rather than in a seprate area at the top of the routine as is the typical VB standard.
Connected to my frustration with the placement of variables is the lack of a standard nomenclature for scope or type. I understand the issues with Hungarian notation for Type. But not telling a reader whether a variable is local to a method/constructor or if it defined at the bottom of the class makes it very unclear where the variable came from and what it might contain when the routine is entered.