VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Can Anyone....... Posted by sbogert on 20 Oct 2005 at 11:53 AM
Can anyone give me some tips, hints, or any kind of help for vb.net?
sbogert
Report
Re: Can Anyone....... Posted by rlc on 20 Oct 2005 at 5:43 PM
lol.... General questions usually don't get answered. But I am feeling nice tonight! Here are a few things to keep in mind.

- Use Try,Catch,Finally statements for error handling throughout your code.

- Use the Debug and Trace classes if your application is complex, or will require troubleshooting after implementation.

- Avoid late binding it KILLS performance (you may have to google that if you dont know what late binding is).

- Even if your just learning, make a design document. It can be as simple as a dataflow, and business logic. But it is a very good habit to make them before you start then update as necessary. If you want to do it right I HIGHLY recommend creating UIDs for all objects, process, etc... in design and commenting the UID in the code to relate it to the doc.

-Oh yeah comment everywhere, good habit, saves time in the future makes code. Doesn't have to explain the sytaxj ust what the goal of the line(s) is.

-use some naming convention for the variables, many people still use the Hungarian notation which is fine. However it is based on prefixing with the data type, which in VB.NET is not as useful since you should be using well defined objects. I personally use a scope prefix which to me is infinitely more useful.... Whatever you do be diligent to keep it uniform in your code.

prefix" Used for:
g_ Global
m_ Class,structure,interface member
p_ Public Property on class,struc,interface
l_ local member declared in a Sub or Funciton
v_ local Parameter passed by Value into a sub or function
r_ local parameter passed by reference into a sub of function

-Make all class members private and create Public properties if they need to accessed by another object.


~rlc
Report
Re: Can Anyone....... Posted by iwilld0it on 20 Oct 2005 at 6:04 PM
: Can anyone give me some tips, hints, or any kind of help for vb.net?
: sbogert
:

Read the book Professional Visual Basic.NET by Francesco Balena. It is prob. the best book on the VB.NET language itself, touching base on every important aspect of the .NET Framwork.
Report
Re: Can Anyone....... Posted by rlc on 20 Oct 2005 at 6:16 PM
That is great book, have it myself, if you are making more complex or commercial software check out "Designing Enterprise Applications w/ ms vb.net" by Robert Ian Oliver. Goes over alot of useful things, not a beginners book, but not overly complex either.

~rlc
Report
Re: Can Anyone....... Posted by compuwizjr on 21 Oct 2005 at 11:37 AM
: : Can anyone give me some tips, hints, or any kind of help for vb.net?
: : sbogert
: :
:
: Read the book Professional Visual Basic.NET by Francesco Balena. It is prob. the best book on the VB.NET language itself, touching base on every important aspect of the .NET Framwork.
:
: Where can I get the book?
Report
Re: Can Anyone....... Posted by rlc on 21 Oct 2005 at 12:24 PM
Go to a Book store like Barnes & Noble or Borders.... OR order it online

http://www.amazon.com/gp/product/0735620598/002-5254506-7088062?v=glance&n=283155&n=507846&s=books&v=glance

~rlc



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.