Note: in VB a long is now an integer in .Net and a .NET long is much larger than it ever was before.
Never use the plus sign for string concatenation.
Use the Option Strict to enforce strict typing
Use the string’s length property to determine whether it’s empty
Bad: if strMyString = “” Then …
Good: If strMyString.Length = 0
Use positive variables for Boolean values
Examples: bIsUnderAge, bIsEndOfFile
Take advantage of the .NET array features like the use of hash tables and dictionary arrays.
No comments:
Post a Comment