Archived

This topic is now archived and is closed to further replies.

JMgamer88

Visual Basic?

Recommended Posts

JMgamer88    122
O.k. I''m 13 years old and i just started programming in August. I am learning C++. There''s a problem though, i don''t have a compiller. My Uncle is a programmer for a fairly large company and says i should start out on Visual Basic. I think C++ make perfect sense but he keeps telling me VB. He has everything i need. should I do it or stick w/ C++? HELP ME PLEASE!!!

Share this post


Link to post
Share on other sites
CobraA1    122
Compilers for C++ are available for free, and if you feel comfortable learning C++, fine. It''s not the easiest, but it certainly isn''t impossible. Visual Basic is easier, but you have to buy it.

The most popular free C++ compiler is GCC, from GNU.org. However, it''s for Linux; you''ll want a Windows port. Cygwin is good: http://sources.redhat.com/cygwin/

However, you''ll have to learn a thing or two about the Linux command line before using it. But that''s what you get for the price of a free compiler, I suppose.

If you''re willing to spend money, you can get Microsoft''s compiler; you should start with console applications. Learn ANSI C++ before you decide whether or not you want to program only for Windows, or if you want to make your programs available to other Operating Systems as well. Believe me, this is a BIG choice, and will affect what you learn about C++ in the future. Programming only for Windows and programming for portability are almost like programming in seperate programming languages.



"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away" --Henry David Thoreau

Share this post


Link to post
Share on other sites
Muzzafarath    146
quote:

The most popular free C++ compiler is GCC, from GNU.org. However, it''s for Linux; you''ll want a Windows port. Cygwin is good: http://sources.redhat.com/cygwin/



There''s another port of GCC for Windows and DOS systems: DJGPP, which I personally think is much better than Cygwin.

Share this post


Link to post
Share on other sites
davepermen    1047
when your uncle is programmer, then he surely use C++, and then I think he can help you learning c++ like he could learning you vb. its harder to learn c++, but me, i have started learning, it has about half a year, and im programming currently 3d-games, editors (for them), and currently a complete windows system in opengl (NOT FOR, like glut, no for using IN opengl-games for nice userinterfaces)

I think c++ learning is best, when you wanna programming nice things like games and so.

vb is nice, too, but its best use is (for me), for macros in office 2000 and so(there it is fantastic, my father has such a vb-macro for excel, with wich he controls a roboter for some dna-stuff. all the informations of the roboter would be put then all the data right into the .xls-files.. really nice, but i dont think you wanna programm such things

we wanna play, not watch the pictures

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
well , i''m 13 too and i started programming not long ago . I did want to start with C++ , but I decided to try VB , i finished with VB and i''m now learning C++ , i think that its just good to try out VB , because its really easy to start with as everything is done visually , but you can''t do much with it , so C++ is good for going deeper into programming. =)

Share this post


Link to post
Share on other sites
EnochDagor    180
Well, VB is getting a lot of nice things in VS.Net.

VB is getting
* multithreading and power over threads.
* structured exception handling.
* inheritance and other truer forms of OOP ideologies.

However, C++ still has a speed advantage. I can see VB becoming a pretty decent tool for DirectDraw oriented games however, the Direct3D games would probably still need to be C++.

Both languages are good and I have seen fairly decent games come out in VB.

Share this post


Link to post
Share on other sites
Thrump    169
When you say you can''t do much with vb, I have to disagree with you. VB can do almost anything C++ can, just not as fast. And for making GUI''s, there''s nothing better.

...but, I guess this is a game programming forum... so speed is one of the most important things...

Share this post


Link to post
Share on other sites
Xorcist    122
However you could try to get the best of both worlds and learn Delphi. It''s easy to learn like VB, has enough power to match C++, and is built on top of Object Pascal. Pascal as we all know has been around a long time, and has proven itself both in the classroom as "the" language for teaching good programming practices and concepts, as well as in the comercial industry as solid well defined and language with easy to maintain code. And Delphi is compiled, unlike VB which is interpreted, so you get better performance out of it... (Plus you don''t have to mess around with all those VB Runtime Libraries)

Share this post


Link to post
Share on other sites
JonStelly    127
Well, I kind of have issue with people who use the ''C is faster than VB'' argument. It''s true... If the person writing the code knows what they''re doing. Poorly written code is poorly written code. I''m not suggesting that you learn VB, although it is a very handy language to know if you need to write quick applications to test COM objects etc...

For User Interfaces on utilities that aren''t production, I use VB. For ALL production code I write, I use C++. If you decide to learn C++ *a complex language, I don''t think that _I_ would have had the focus needed to learn it at 13* pick up a book called "Object Oriented Programming in C++" by the waite group. Great book if you work through all of the tutorials.

Share this post


Link to post
Share on other sites
ragonastick    134
VB Rocks (Flame away, I might as well say computers are for idiots =)
Anyway, my reasoning: (Comparing to C++)
10x easier: Lets face it, it is so simple to do simple stuff, it just isn''t funny. So many repetive tasks have been simplified.

90% as fast (ie 10% slower): Yes, it is slower than C++, probably more than 10% for 3d, but the point is that you will find creating it takes a lot less time, and is easier, and is just plain fun (not that C++ isn''t necessarily fun). When it comes to 2d, VB kicks C++, there is almost no speed difference but it is 2x as easy to write.
And contrary to the common (and previously true) belief, VB is no longer an Interpreted language, as of VB6, you can now compile to Native Code and there are a few advanced optimisations and stuff you can use to speed it up from there.

Don''t say you can''t do much with VB, that really annoys me, VB can do basically everything that C++ can. I say basically because I can''t think of anything off the top of my head, but some guru probably can. But I''ve written full games in VB, and other people have, and are, and they have success. So what exactly couldn''t you do (Anon Poster)?

VB is new in the field right now, you will probably see/hear more of it soon (my prediction - note, all my predictions are false =). Microsoft has seen its power, otherwise, DirectX wouldn''t have native VB support. I have seen its power, otherwise I''d be using C++.

Did I forget anything?

(Flame away. But be polite, this is a family production =)



Trying is the first step towards failure.

Share this post


Link to post
Share on other sites
Tom    352
Well, Direct3D through VB is actually about ten times slower than C++. I've run these tests myself just to sample it. (I'm a dedicated VB user.) Also, VB does not support true inheritence, which really is a shame.

But I hear MS is changing this in VB7. I can't wait!

Edited by - Tom on October 7, 2000 11:40:51 AM

Share this post


Link to post
Share on other sites
Muzzafarath    146
quote:
Original post by JonStelly

If you decide to learn C++ *a complex language, I don't think that _I_ would have had the focus needed to learn it at 13* pick up a book called "Object Oriented Programming in C++" by the waite group. Great book if you work through all of the tutorials.


It's not impossible to learn C++ when you're 13 (I did), but you need a lot of commitment and focus (as you said)... You probably need a lot more commitment to learn C++ than to learn VB. With VB, you see results almost immediatly (drag a control to the form, and voíla), but with C++ you need like 200 lines of code just to get a window on the screen

If it makes perfect sense to stay with C++, then do so.

Edited by - Muzzafarath on October 7, 2000 4:09:46 PM

Share this post


Link to post
Share on other sites