Visual Basic vs C++

This is a discussion on Visual Basic vs C++ within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I know this forum is mainly for questions, but I wanted to have a little discussion. If you know both ...

  1. #1
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38

    Visual Basic vs C++

    I know this forum is mainly for questions, but I wanted to have a little discussion. If you know both VB and C++ or have had experience with both then post, but otherwise you will probably not know what we are talking about and you will probably look stupid so I advise against it.

    I learned VB about 3 or 4 years ago. I was just getting into computers because I had met some geeks at school. I had never hung out with geeks before because I was always the Abercrombie wearing jock wannabe before then, but because highschool was so large I decided I would broaden my horizons. Well, I didn't exactly decide for myself. What happened was that I was hanging out with these rocker kids and I stole one of their mom's pint of vodka or some alcoholic beverage and ........ed in it. I was playing around, but I used to get carried away when I was a younger. So I had to find new friends because the rocker group was obviously ........ed at me. I met up with the geeks and they started I am sillyI am sillyI am sillyI am silly talking me because I didn't know what 1337 was or 'EL-Three-Three-Tee'. So I set out to find out wat 1337 was, and it just went on from there until I picked up HTML then VB when I realized I could actually create programs on a computer. It was the biggest rush ever. I mean HTML is a respectable language, and I speak it well, but my ideas got too big for notepad and a webpage. So I went to Barnes & Noble and got 2 books: 1. Guide to VB6.0 2. Game Programming With VB6.0 + DirectX 9.0. I read all of the Guide to VB6.0, and half of the Game Programming book, but then I met C++. I have fell in love ever since.

    C++ is so much more dynamic and fluid in it's functionality than VB. People call it lack of standards, but I say too many standards and you get restricted code that makes you feel like you aren't programming any more but following a compiler's directions. I mean, isn't that why we all started programming anyways? I started it for fun (WHICH EVERYONE SHOULD BECUASE CODING IS A FREAKIN DRUG RUSH!) because I was playing all these games and it was getting old, and I was like this is lame, all I do is follow a path and complete objectives in this game that someone else laid out for me. Why can't I make my own path, and complete my own objectives? Then it hit me. PROGRAMMING! So if C++ gets a crap load of standards it's going to be tightly knit code that would make me feel like I felt before when I was playing those games, that I was following a path made by someone else, not making my own, which is what programming is all about for me.

    VB when it was created, I don't know because I have never used the earlier versions, I am sure was quite fluid and modifiable to fit different styles of programming, but as time progresses and microsoft targest stupider and stupider people they get more tight on their code standards, and now when i open VB6.0 and stard coding I feel like I am not only coloring with a crayon (GUI IDE RAD environment[if you are a newb that's the Graphical User Interface Integraded Developers' Environment Rapid Application Development]) but I feel like I have an aimbot on when I write code (aimbot: it was a slur towards the gaming generation, an aimbot is a program or set of settings in a game that cause your aim to stay on an opponent or possibly just when you fire your weapon in the game so that you have an insanely good chance to hit your target). Visual Basic is nice becuase of the little popup lists that let you scroll through an Active X control's functions if it is a third party Active X control with little documentation, but other than that, I feel like I'm in a straight jacket when I code in VB.

    Though, C++ on the other hand is everything VB can never be. C in itself is very low level, and you can modify any sort of piece of information you want without Windows API (C++ now on que sticks up it's middle finger a VB). Also in C++ whenever you start an app you don't get a form (term for the window and it's contained space in VB) and some already prewritten code by some lame guy in microsoft's development center, but you get a clean blank source file (cant get enuff of my 0kb .cpp files[0 kb means empty if ur retarded]) it's completely and utterly impossible to have a source file in VB that is 0 kb because the project whenever it is initialized saves default settings such as the form name (I.E. Form1) that takes up space. So even if you saved a project that you hadn't even touched it wouldn't matter because it would still take up space. Now, if i create a new .cpp file in a new workspace and don't link it to any resources or any other source so that it won't have to write configuration and link data then I could have a 0kb file, and oh yea, C++ is cool cuz it isn't made by microsoft!

    Though, I got side tracked, that isn't mainly why I like it. I like it just because I have this artsy side to me and when you can create your own style of programming and be so free with code like you can with C then I just can't help but drop VB in a heart beat. And with the OOP additions with C++ it's just perfect. (Not that I specifically know them because I am still pretty new at it.) So drop VB if you use it, unless you are doing small windows apps that just need high level access (cuz vb pwnz at that), and learn C!

    Please reply!

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    C++

    Kuphryn

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    C#

    Sean

    P.S. Oops... Sorry...

  4. #4
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    C#..... pfffft..... more like C(Microsoft is trying to conver C into a VB style language).

    I was looking at some sample code the other day and was wondering where I had seen that style of code before, and I was like "oh yea, dur, VB".

  5. #5
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Are you kidding? C# looks nothing like VB. And since it was made specifically for .NET it is VERY powerful. I find it quite intuitive too. Microsoft isn't evil. Just because it's done by microsoft does not mean it's bad. Trying to convert something versatile and powerful into an intuitive and easy to use language is a good idea.

  6. #6
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    Quote Originally Posted by sean_mackrory
    Are you kidding? C# looks nothing like VB. And since it was made specifically for .NET it is VERY powerful.
    Contradiction?
    I dunno, maybe we just see it different ways, and I respect your opinion of the language, but I would rather stay with a well founded language that is very flexible. (like c++)

  7. #7
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    i would say learn C before C++
    this way C++ will be pretty simple to learn and you will be learning 2 languages

  8. #8
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    I thought C++ included C, but just a different method of using it, and that the only real difference was the new OOP capability. Am I wrong? Please someone clearify the difference between C and C++.

  9. #9
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    C++ was made to be an improvement of C , i havnt done much C++ but it has made some things easier than C like error handling.

    and yes it has the OOP which C doesnt have.
    i think C is a better way to start

  10. #10
    01000011 00100000 0010000
    Join Date
    Jul 2004
    Posts
    38
    actually, i just got this book last night "C++ From the Ground Up" written by a guy on the ANSI C++ board. I read about the history of C and C++, and really C++ is just a superset of C and any C++ compiler can compile C code also. So if you do C++ you learn C (not exactly) but only a modified version that is modified in a way that helps support larger programs (specifically larger than 100,000 lines) that got chaotic whenever using C to create the same programs. Yes, learning C would give you a good foundation for C++, but really isn't neccisary, and with my lack of time (school, and a job) it helps me to just learn C++.

  11. #11
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    This isnt really about coding, so off to GD with it!

  12. #12
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    >What happened was that I was hanging out with these rocker kids and I stole one of their mom's pint of vodka or some alcoholic beverage and ........ed in it.

    lol. oh man that's great. do it again.

    >mean HTML is a respectable language, and I speak it well

    you speak HTML? wow. i have never met anyone with such 1337 ski11z
    My Website

    "Circular logic is good because it is."

  13. #13
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    1) Smoke another one for me.
    2) I will bet you that I can get twice as much done in VB as you can in C or C++ and my job will be more secure than yours.
    3) I'm not against C or C++. They have their uses. So does VB. In my environment, we need to be able to develop quickly, and honestly, VB has proven to be a very powerful tool, and its only limitations are the programmers using it.
    4) MS is not evil. Let go of the stereotype.
    5) That post was entirely too long.
    6) Until someone gives me a reason, I'm going to continue to build web apps to replace almost every desktop app we use here at my work. Why? Because PHP trumps all, biotches.

  14. #14
    Compulsive Liar Robc's Avatar
    Join Date
    Jul 2004
    Posts
    149
    >written by a guy on the ANSI C++ board
    This can be true yet still not give you an idea of the author's competence. But that aside, Herb Schildt is an author well known for writing easy to understand drivel.

    >and really C++ is just a superset of C
    Not true. C++ was originally called C with Classes, and it was what it sounds like, the C language with Simula-like classes. But it isn't the 1980's anymore, and C++ is no longer a superset of C because at this point, both C and C++ have followed their own evolutionary paths.

    >and any C++ compiler can compile C code also
    Also not true. C++ compilers can compile a staggering amount of C code because compatibility with C is one of the primary design goals of C++. However, there are quite a few features of C that won't compile as C++. Worse yet, there are features that compile as both C and C++ yet give different results. It's subtle problems like these that make writing C/C++ more difficult than it first appears.

    >modified in a way that helps support larger programs (specifically
    >larger than 100,000 lines) that got chaotic whenever using C to create the same programs
    Object orientation helps to organize a large project. But that doesn't mean using C++ will automatically be an improvement over C. In fact, good C design follows similar principles that make organizing large projects just as easy as C++. To make things worse for C++, many people end up overdoing it with objects and inheritance, with very poor results. Likewise, peopel tend to write at a lower level with C and that makes writing large projects more difficult. The problem IMO isn't with the language, but with the developer.

  15. #15
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    I agree completely with what RobC said about C++ and C. I don't know how often it gets explained. That and the system() command... And incidently RobC, as any DNRC member can tell you, the problem is ALWAYS with the developer. Sometimes his manager, but most likely the developer.

    As for what ober said, I'm also a big fan of VB. Before I discovered C#, VB was the most intuitive language I had ever seen. It was very easy to write a few lines of code and have the skeleton of your basic windows program. If you're writing apps like text or image editors, I deinfately think that something like VB would be the way to go. I would only use C or C++ if I was, as RobC pointed out, doing lower-level, less common stuff. Unfortunately for me, I never got much experience in VB because I learned it about a week before learning C#.

Page 1 of 8 12345678 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 11-22-2007, 11:13 PM
  2. Run Visual Basic code inside C++?
    By torbjoen in forum Windows Programming
    Replies: 8
    Last Post: 07-31-2002, 11:41 PM
  3. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 03:07 PM
  4. Visual Basic C++
    By gussguss in forum C++ Programming
    Replies: 8
    Last Post: 11-20-2001, 09:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21