Thread: Visual Basic
View Single Post
  #9   Spotlight this post!  
Unread 13-11-2007, 22:45
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Visual Basic

Quote:
Originally Posted by Robostang 548 View Post
I suggest that you familiarize yourself with the .net framework namespaces. It took me a while to get used to using the .net namespaces instead of the vb6 ones. Also, try playing around with the serial port class and your RC. I made a vb.net program that takes sensor data printf'd to the serial port graph on my laptop.

-Don
I totally agree. The .net framework is huge, and the best way to learn it is to write code.

Quote:
Originally Posted by jee7s View Post
Also C/C++/C# allows for "fall through" switch/case statements. which are valuable.

...

As you can see, the C# code is much more concise than the VB code.

Also, you may love doing VB for now, when it's all for play, glitz, and glam. However, if you pursue CS or EE as a profession later on, you will quickly learn that VB is "programming for business majors." (i.e. there is no rigor to it) Real (professional) programmers and engineers pay a great deal of attention to data structure, argument passing, type casting, etc...all of which VB is very loose with.
By switch/case statments do you mean something like this?
Code:
        'VB.net code'

        Dim i As Integer = 10
        Select Case i
            Case 1
                DoSomething()
            Case 10
                DoSomethingElse()
        End Select
Also, add this to the top of your .vb file, to get the "strictness" of C#.
Code:
Option Explicit On
Option Strict On
Quote:
Originally Posted by basicxman View Post
well, i agree with u guys somewhat but ive been programming visual basic for a year and love it! i have to admit running programs is a bit slow but, meh!
If you're running VB.net code the performance will be identical to C#, since they're both copiled to the same IL(Intermediate Language), using the same .net framework, running on the same CLR(Common language runtime).

---------

I know some people will say I'm insane, or stupid, but I'll say this anyways.

I am equally capible of proramming in C# and VB.net. I also have some experiance with C++ on windows, and C on the RC, but .net is what I really have experiance with.

Now, this is what some people won't believe. I am more effecient in VB! The background compilation, LINQ to XML(in vs2008 Beta 2), case-insensitivity, ect., make me much more productive than C#.

EDIT: As languages I have no preference between VB and C#, but the IDE features of VB.net are far superior of C#. Just my opinion.

Tips for people interested in .net.
Read these blogs:
Coding Horror
Coding4Fun

Listen to these podcasts:
.Net Rocks!
HanselMinutes

Use these sites:
CodeProject
__________________
Eric Haskins KC9JVH

Last edited by EHaskins : 13-11-2007 at 23:21.