VB Coding Code Guildlines

Some recently pointed out to me Cory Smith’s Coding Guildlines for VB.NET and wondered why they weren’t on the VB DevCenter.

Let me give you the easy answer.  Right now I am in the middle of this fun process called moving a wife, 3 kids (ages 5, 4, and 1), 2 dogs, and 3 cats from New Jersey to Washington.  As you can image fun tasks like having my septic tank pumped or dragging boxes of accumulated stuff that I can’t figure out why I saved to the dumpster in front of the house have consumed large amounts of my free time.  So as a cheap cop out I haven’t read up on the blogging world much in the past 24 hours.

Time pressures aside let me explain my deeper reasons.  While I agree with and practice about 90% or more of these guildlines, and would highly suggestion that you follow them if you are not, it is always a tough spot for a platform vendor.  At what point do we overstep our requirement to provide guidance on the platform and tools and become the code police?  At what point do people stop asking for more and start complaining we went to far?

 Intelligent people have vastly different views the farther out you go from the core guildlines, look no farther then the comment’s on Brad Abram’s similar C# Guidelines.  At the end of the day does it matter if you use 2, 3, or 4 spaces in your indent?  Most likely not.  IMHO some choices are best left up to the developer and the team, they know there needs the best.

While I congratulate Cory for an excellent job and I strongly encourage people to read and adapts these guidelines at the end of the day do what is right for environment and your team for readability and maintenance not because Microsoft or someone else told you to.

Comments (14)

  1. list box says:

    how to get values from list box

  2. yeath says:

    I do think you are right!!

  3. i want more codes about visual basic 6.0

  4. Ami says:

    uses of % and & sign

  5. Luis Vazquez says:

    I agree with you. We can all learn from looking at the code layout of others but in the end we must adopt what works for us and our team members. MS best Practices is about all the constraints we need.

  6. How can i use Data Environment or can make data report of MySql data base in Visual Basic 6 without using ODBC.

  7. azroy says:

    how to create a simple games such as hang man by using vb.net language?

  8. mahdi says:

    hello,i want to work with com port(9pin).

    i need to code of vbasic 6.0 to programing this port

  9. sharif says:

    i want more codes about visual basic 6.0

  10. muskan says:

    i want database connectivity detials with oracle 8

  11. g3 says:

    submit form on press enter key