You must Sign In to post a response.
Category: Windows
#769128
Hi,
Coding standard for other .Net Technologies and VB.NET wont differ much, but VB.NET have some few additional facilities and few restrictions when comparing to the other .net related technologies.
Option Explicit / Option Strict
If you are unable to have both of these set to "On", a comment should be given as to the reason for doing so.
Block Formatting:
All logical blocks should be formatted in such a way as to be clean and clear as to what's occurring. Every If/Then should have an End If.
Naming Conventions:
Classes that are there for interop wrappers (Declare statements) should follow the naming convention such as Nativemethods,UnsafeNative and SafeNative
Kindly check more details on below websites:
http://www.pbdr.com/vbstd/VB%20Coding%20Standards(1).htm
http://www.marktwainhouse.org/admin/assets/images/Pdf/1277732594-VB.NetCodingStandards.pdf
Thanks,
Mani
Coding standard for other .Net Technologies and VB.NET wont differ much, but VB.NET have some few additional facilities and few restrictions when comparing to the other .net related technologies.
Option Explicit / Option Strict
Option Explicit On
Option Strict On
If you are unable to have both of these set to "On", a comment should be given as to the reason for doing so.
Block Formatting:
All logical blocks should be formatted in such a way as to be clean and clear as to what's occurring. Every If/Then should have an End If.
Naming Conventions:
Classes that are there for interop wrappers (Declare statements) should follow the naming convention such as Nativemethods,UnsafeNative and SafeNative
Kindly check more details on below websites:
http://www.pbdr.com/vbstd/VB%20Coding%20Standards(1).htm
http://www.marktwainhouse.org/admin/assets/images/Pdf/1277732594-VB.NetCodingStandards.pdf
Thanks,
Mani
#769158
Hi,
Coding standards are not depend up on the technology, for all technologies it is common. based on your coding standards only application performance may vary. You have to think as a end user, how performance may improve, when you hit URL as a end user you may expect the result with in fraction of seconds right? to achieve that you have to try to overcome no of hits to the server, rather than go and get the data from server each and every time get the data at once this will reduce n no of contacts with server, in the similar passion you have to check each and every point like unwanted data to be removed, unwanted comments to be removed, unwanted namespaces to be removed etc...
Once you try to build the application you come to know what is the scrap, remove the scrap and maintain some basic standards that is more than enough.
Hope this helps you...
--------------------------------------------------------------------------------
Give respect to your work, Instead of trying to impress your boss.
N@veen
Blog : http://naveens-dotnet.blogspot.in/
Coding standards are not depend up on the technology, for all technologies it is common. based on your coding standards only application performance may vary. You have to think as a end user, how performance may improve, when you hit URL as a end user you may expect the result with in fraction of seconds right? to achieve that you have to try to overcome no of hits to the server, rather than go and get the data from server each and every time get the data at once this will reduce n no of contacts with server, in the similar passion you have to check each and every point like unwanted data to be removed, unwanted comments to be removed, unwanted namespaces to be removed etc...
Once you try to build the application you come to know what is the scrap, remove the scrap and maintain some basic standards that is more than enough.
Hope this helps you...
--------------------------------------------------------------------------------
Give respect to your work, Instead of trying to impress your boss.
N@veen
Blog : http://naveens-dotnet.blogspot.in/
Return to Return to Discussion Forum