ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
Will VB help?
I'm starting programming lessons in school, however the only language offered is Visual Basic, because, as the teacher said "it is portable". (How is VB portable someone plz explain )
Do you think i should take the course and learn VB. Will it help me later with other programming languages once i get the hang of this one?
Thanks
-NSKL
Any new knowledge is good, but... Visual Basic ? Even M$ wants to kill it slowly in favour of it's new programming language (C#). Portable ?? Not easily. They want you to fill all your programs with W32 API calls.
Start with C.....just C and only C!!! Its the base for all other programming languages.......Even Unix and Linux have been programmed using C!
C++ and Java too become easier for people who know C........and all Object Oriented languages like C#, VC.Net can be mastered soon enough, once u know C......Even shell programming borrows syntax from C......
So, just focus on C...and if possible Data Structures using C ( for a deeper knowledge).......then u can master any damn programming language in this world...
i suggest looking at C and Python side-by-side. VB will be a waste of time, really. Once you're done with Python (and still looking at C), you can easily start off with Java (i never tried C#). and when you're done with C (and still looking at Java), then you can start off with C++. and by the end, you will be able to apply for the job of your teacher.
heck, im lookin for a job, maybe i can apply, eh? :P
NSKL - ask your teacher what he means by portable? As far as I know, portable means "can run on different architectures/OS/machines" and as far as I know, VB can only run on a windows machine.
Everyone else above is right, VB isn't suited to teaching how to program...in my opinion you'd do better with C, then maybe C++ to learn Object Orientation and stuff...
VB is a fine language. It's very easy to learn and you can make some nice programs really fast through Visual Studio. Really, VB is all IDE, the actual syntax of the language is annoying (writing declarations in reverse, array size, etc), but the IDE makes it all easy.
That being said, if you want to get into programming really fast, go ahead and check it out. Knowing any extra language is good, especially one that is fairly popular. It's also (finally) fully object oriented (it's about time they have inheritance) so you could learn something good.
So yeah, learn it, it can come in handy, just don't go overboard with it. (like all .Net languages VB uses the same foundation classes, so if you know 'em you can easily move from one .Net language to the other)
Originally posted by coolamit78 C++ and Java too become easier for people who know C........
That also works in the reverse (for me it did). But as far as VB goes...I wouldn't touch it with a 50 foot pole (atleast not as a 1st language). I dont think learning VB will help you to learn C, C++
or Java.
You should also ask your professor "Portable to what??? another windows box??" Maybe he meant you could burn your code to a CD and carry it around everywhere you go...hence portable.
Just wanted to add my 2 cents.
Last edited by Robert0380; 10-02-2003 at 02:27 PM.
Originally posted by coolman0stress Maybe he meant that it's portable to any pc which have the .Net run time (CLR)? Just like Java is portable as long as the JVM is present.
In other words, a windows PC....not very portable by any definition. (Unless I'm misinformed and .net does run in other platforms)
Whereas Java was meant to be run on multiple platforms.
Java promises "write once, run everywhere", but that's partially true. If you use JFC (Swing....) your software is constrained to the availability of a Sun's JVM in your particular OS/Environment. You will be depending on one company. That's not freedom.
If that's true for the portability of Java, what one could think about .NET ?? ..... that companies are, for sure, not there for the free software movement and innovation.
"They want you to fill all your software with their API's and then you will be catch-ed"
Heh, when I was in high school VB was the only programming course there too. I took it and ended up liking... despite my hatred for Windows. Then, when I got here to college and started learning other languages, I realized how truly krappy it is. Then again, if it is the only option, I would advise you take it. It will at least get you to *somewhat* be in the mindset of a programmer.
If you are a newbie, and do not have any C experience, DO NOT
BUY the book "The C Programming Language" by Dennis Ritchie and Brian Kerninghan. I own it, and its a great book, but its anything but a newbie's manual. It is more of a reference than a tutorial. I suggest learning C as a first language, and if I were to suggest one language to master, it would be it. Id suggest getting one of those huge C books, something that spends time to elaborate on each subject throughly.
Originally posted by coolamit78 Start with C.....just C and only C!!! Its the base for all other programming languages.......Even Unix and Linux have been programmed using C!
While I do agree that C is a good place to start, I must object to the assertion that C is the base for all other programming languages.
Lots of languages came before C. Fortran and Cobol are probably the two best-known. C is a good example of an imperative language, and lots of imperative languages are derived from C, but not all. Pascal and its derivatives, like Ada, were not derived from C, nor was BASIC.
Of course, there are other paradigms that C did not participate in, such as logic programming (Prolog), functional programming (LISP, Haskell, and others), object-oriented programming (Smalltalk), and modular languages (Modula). Many languages today are in fact hybrids from several paradigms. Combining object orientation and imperative languages is quite popular, giving C++, Objective C, Java, C#, and Ada.
The whole story is vastly more complicated, but suffice it to say that not all programming languages are derived from C.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.