Shoutbox

hey programmers! - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: hey programmers! (/showthread.php?tid=31641)

hey programmers! by ashmanto on 09-17-2004 at 07:36 PM

hello, I have just started with programming at my school.. we use visual basic.. so I am basically a n00b.. but by reading this forum, I have got the feeling that Visual basic is a piece of shit, pardon my french..  so i was wondering wich program is the best for making a plugin..?

can anyone give me a brief answer? tnx


RE: hey programmers! by Mike on 09-17-2004 at 07:39 PM

Visual basic is fine for making plugins...
And its also easy :)
So I suggest you to go with vb...


RE: hey programmers! by CookieRevised on 09-17-2004 at 07:58 PM

indeed, VB isn't piece of shit. It is a very decent programming language in which you can do lots of (advanced) things. Don't let VB-haters tell you that VB isn't good.

Of course VC++ can do some more things because it is more advanced. But because of that, it is also more difficult to learn.

But almost all things can be done in VB, including plugins and even writing big advanced programs.


RE: hey programmers! by ashmanto on 09-17-2004 at 08:03 PM

jup, that was what i was thinking too, because isnt windows written in visual basic or something?? since its a microsoft program?


RE: hey programmers! by Mike on 09-17-2004 at 08:05 PM

Windows is not written with vb.
However you can use windows functions for example set a window's caption to "Hello"


RE: hey programmers! by Mnjul on 09-17-2004 at 08:21 PM

It really depends on what you are making. Big projects (such as Plus!) are best developed with C++ because loads of things are rather low-leveled in C++, compared with VB, and hence programmers needs to do many things themselves, while "molding" all they need, with C++. Still, Cookie is right, VB can actually realize lots of advanced things; if you want to develop a Plus! plugin only, and have just begun to learn VB, just stick to it ;) It is not that VB is a toy - owing to VB's simplicity and easiness, it's the best programming language to construct many basic, yet essential, programming "concepts/ideas" such as how to best-use a loop, a selecting statement, an array...etc :)


RE: hey programmers! by ashmanto on 09-17-2004 at 08:26 PM

okey, but is java the newest version of c++? and can u make dll files with VB? I got VB6.0, but on the universities in norway u use Java.. Im just 18, and next year im starting on the university, so do i get any use for the programming skills i learn this year?


RE: hey programmers! by CookieRevised on 09-17-2004 at 08:35 PM

Java isn't the newest version of C++. Java is a complete different language.

You can make DLL's, OCX's, whatever with VB...

You will benefit a lot from your learned programming skills. Programming is in essence the same in every language. A loop is a loop; how you approach certain things is the same; problems solving is the same; etc... The only difference is that different languages use different syntaxis. But the "programming" is the same. What you will learn now is think like a computer; learn what a program is; how it behaves; basic "skills"; etc. and you can indeed learn that the best and the quickest if you start in VB, because that is the easiest to understand and work with.

After that, you can (and apperently you will) switch to other languages like Java or C++. And you will find that learning those other languages will be very easy as the concept of programming is still the same in every language, you only need to learn the new syntax and then you can learn the new advanced things you can do with it....


RE: hey programmers! by lopardo on 09-17-2004 at 09:24 PM

From my point of view, VB is OK to start and learn the basics of programming. But it is true that it is not as powerful as other languages, such as VC++ or Delphi. If you want to "get dirty" and do more advanced stuff, you'll have to switch to another language. VB mostly sucks because it doesn't do real calls to the API, everything passes through the MSVBVM??.DLL

quote:
From http://www.palmdigitalmedia.com/product/book/excerpt/4844
Although distributing the 1.4-megabyte runtime file with your VB6 applications is annoying, it is essential for two reasons:

    1. The VB Runtime provides services such as automatic memory management, string allocation/deallocation, and saftey checking on code. If, for example, your VB code tries to reference an array outside its boundaries, the VB Runtime steps in and informs you that an illegal operation is being performed. This is in contrast to languages such as C and C++, where memory access is not monitored, resulting in potentially catastrophic failures if code misbehaves. And, unlike C and C++, the VB Runtime will automatically clean up after you, destroying objects and variables once they go out of scope.

    2. The VB Runtime also houses intrinsic VB functions such as MsgBox, Ubound, and InStr. For years, VB developers have routinely used such functions for string manipulation, type conversion, and user input. The code for these functions is contained in the VB Runtime. When you call Mid() to extract a substring from a string, you are really calling a function in the VB Runtime that performs the work. Without the VB Runtime, a VB application would be reduced to a meaningless collection of function calls.

From these two observations, it can be said that a Visual Basic 6 application runs within the VB Runtime. In fact, the name of the runtime file is indicative of this very purpose: MSVBVM stands for MicroSoft Visual Basic Virtual Machine.


I love Delphi because it doesn't have a runtime like that (you don't need to distribute a dll with your project, yet it offers the same functionality like the VB's runtime as described above), it's easy to understand, very organized and very powerful. You have freedom, you can code using pure API (smaller EXEs) or using the VCL - Visual Component Library (bigger EXEs, but easier to code). And then everything can go in one single and small EXE :-)
RE: hey programmers! by CookieRevised on 09-17-2004 at 09:28 PM

quote:
Originally posted by TheBlasphemer
Anyone with an IQ roughly the same as his age can program in VB.
1) Then why are there so many questions on these forums (and in PM's, and on other forums) from people who have trouble doing the simple stuff in VB(script)? Or are you saying that they all have an IQ below 30? Nice going TB...
2) If someone programs in VB, that doesn't mean he is a n00b...
3) VB IS powerfull. But did I (or someone else) ever said that C++ is less powerfull? NO... Again, VB IS powerfull, but C++ is indeed more powerfull. But for 99,9% of all the things that is done by (what you so nicely call) n00bs can be done in VB with ease...
4) Ask a prof programmer and he will say that C++ is more powerful, but he wil NOT say that VB is shit. He will say that VB is very good to start learning and very easy to learn and understand the concept of programming and that you can still do lots of things in it.

RE: hey programmers! by lopardo on 09-17-2004 at 09:31 PM

quote:
Originally posted by TheBlasphemer
If you're ever going to learn another programming language, you'll have to forget almost everything you learnt with VB ;)
Not everything man, at least the basics still apply :)
RE: hey programmers! by ashmanto on 09-17-2004 at 09:32 PM

well, he said "almost" everything :P


RE: hey programmers! by CookieRevised on 09-17-2004 at 09:46 PM

TB, that is simply not true. The whole concept of programming and "thinking like a program" is EXACT the same as in every other language... (Even in languages like isolab)


Can I "kindly" ask to stop your l77t talk, we all know you are a very good C++ programmer (best on the forum, besides Patchou) and that you hate VB, but "trop is teveel" (dutch expression)... stop being the l77t highflyer "I wrote the best thing in the world and nothing can beat me or C++". I hope for you that you will never choose to become a teacher or you will have a nervous breakdown from the very first day......


and I though a while before posting this because I know you will jump directly on your horse whenever someone says something about C++ and/or your programming skills and/or something you've made, but I had to say it...


RE: hey programmers! by CookieRevised on 09-17-2004 at 11:27 PM

quote:
Originally posted by TheBlasphemer
...in which there are already two mistakes in one simple if statement.
If you cannot see those mistakes, and you can't be bothered, I'd recommend never even looking at programming again and go live on dreaming of VB. if however you want to learn REAL programming, find out, if a computer can only store numbers, how can you match two strings? I'll give you two hints: arrays, ascii...
The thing is that you already assume that an unschooled person already knows what if-then-else structures are (given this example). He doesn't not know that, and that are exactly the basic programming skills to be learned: splitting up problems in there seperate cases and constructing a workflow and understanding what "if-then-else", in this case, means. This is all learned much easier with VB without you needing to worry about pointers and other extra "bagage" (I call it bagage for now; I know those are the best thing in programmers heaven, but initialy the pupil doesn't need all the advanced stuff to learn how to program, it will only make it much harder if he also needs to worry about that).

It doesn't matter in what language it is learned, in some language (VB) it is easier to learn that then in others (C++). This has nothing todo with learning bad or wrong things; it is the concept of the if-then-else that is important (to learn).

On a sidenote, but related. You can even learn how to program without a programming language! In fact, pro programmers still use pen/paper to write workflows down; and that is the exact skill to be learned in programming. When writing down the workflow you don't bother about "oi, the pc only reconize 1's and 0's, how am I gonna make a string...", because that is not important...

Did you know that before the homecomputer was well developped and everybody could lay their hands on a programming language, that programming already was teached in college? The reason is what I said above....

And about the sort-command example. Yes, it is possible, and why should it be wrong when someone who begins to program uses it? When he is capable of programming, he quickly will learn that he can make his own sorting routine without the need of objects and stuff. But that's because he can grasp the concept of programming then.


Note: All this is not because I think that you can't learn C++ without first learning VB, of course you can. But my point is that VB is NOT shit, and is an excellent programming language and that it will not teach you bad stuff; It will not teach you ALL the stuff, but that is NOT the same as teaching bad stuff...
RE: hey programmers! by Choli on 09-18-2004 at 12:33 AM

quote:
Originally posted by ashmanto
hello, I have just started with programming at my school.. we use visual basic.. so I am basically a n00b.. but by reading this forum, I have got the feeling that Visual basic is a piece of shit, pardon my french..  so i was wondering wich program is the best for making a plugin..?

can anyone give me a brief answer? tnx
you're learning how to program, and started with VB. It's a good begining, IMO. Start doing plugins with VB and when you become a more experience developer, learn VC++ and decide yourself with language you want to use (depending on what you want to do (read a bit more))
quote:
Originally posted by CookieRevised
indeed, VB isn't piece of shit. It is a very decent programming language in which you can do lots of (advanced) things. Don't let VB-haters tell you that VB isn't good.

Of course VC++ can do some more things because it is more advanced. But because of that, it is also more difficult to learn.

But almost all things can be done in VB, including plugins and even writing big advanced programs.
I agree with that post.
quote:
Originally posted by ashmanto
jup, that was what i was thinking too, because isnt windows written in visual basic or something?? since its a microsoft program?
Nope. Windows is written in C/C++/VC++ and asm. (the same as most of the OSes)
quote:
Originally posted by CookieRevised
You can make DLL's, OCX's, whatever with VB...
They're a bit "special" DLLs, OCXs, etc... but at the end they're DLLs, OCXs, ... :P
quote:
Originally posted by TheBlasphemer
Ask a proffesional programmer, who's been programming a bit longer, and there's a 90% chance he WILL agree on VB being shit.
Well, VB is and is not shit. Depends on what you want to do with it. For example, if you want to make a simple application (or plugin for plus) with a couple of windows, and draw some simple pictures/graphics etc... and you have to do it in 30 minutes, then VB is the best option and VC++ is pure shit. However, if you want to develop an optimized application, with very advanced features (like plus), etc... then VB is who is shit and VC++ is the best option.

Each programming language is for each thing you want to do. You can't say that this or that language is shit just because you don't find it usefull for your work. In each situation, some language can fit better/worse than another one, and it's up to the good programmer to pick up and use the best that fits his/her needs.
quote:
Originally posted by CookieRevised
Ask a prof programmer and he will say that C++ is more powerful, but he wil NOT say that VB is shit. He will say that VB is very good to start learning and very easy to learn and understand the concept of programming and that you can still do lots of things in it.
I consider myself a professional developer and I agree with Cookie. The fact that I program in VB (when I do) is due to I feel more confortable with the things I have to do. I prefer spending some time in writting an algorithm that does something, than in writting the code needed to control a combobox or whatever (just an example in the programs that I made and you all know).
quote:
Originally posted by TheBlasphemer
What real programming is how to solve certain problems, like sorting arrays. in VB you can do this, easily, by making a list object and calling sort. but now be honest, how much of that did YOU do?
nothing, you just told vb to sort it for you, which is yet just another command.
The thing I said about having to forget everything about basic before starting real programming is best explained using simple string matching. One of the most made mistakes among vb people trying to switch to C is:
code:

if ("string" = "string" ) { };


in which there are already two mistakes in one simple if statement.
If you cannot see those mistakes, and you can't be bothered, I'd recommend never even looking at programming again and go live on dreaming of VB. if however you want to learn REAL programming, find out, if a computer can only store numbers, how can you match two strings? I'll give you two hints: arrays, ascii...

nothing more to be said...

EDIT: just one more thing to be said, this is not for getting my right, this is not because I hate VB or love C++, but VB is simply not programming, and if someone wants to learn programming he should learn it the proper way...
all that is due to VB is a higher level language than C. Just that. It's the same as Java. In Java you can use clases to do everything and the programmer lose the control over pointers, strings vs character arrays, etc... That's why if you want/need to do the things yourself, go with C, if you prefer the other point of view, use Java, VB, etc...

quote:
Originally posted by CookieRevised
On a sidenote, but related. You can even learn how to program without a programming language! In fact, pro programmers still use pen/paper to write workflows down; and that is the exact skill to be learned in programming. When writing down the workflow you don't bother about "oi, the pc only reconize 1's and 0's, how am I gonna make a string...", because that is not important...
Soo true....
* Choli remembers those ugly subjects at the Uni about that :P

RE: hey programmers! by Mike on 09-18-2004 at 07:42 AM

quote:
Originally posted by TheBlasphemer
code:
if ("string" = "string" ) { };

Hey whats wrong with that? :-/
Well i would have to agree with TB in a point...
Its hard to switch from vb to C/C++...
Like i opened once C or C++ (the splash screen said that it was C++ but whatever... :S) and selected a console application then a "Hello world!" example.
Well it made me that example but i couldnt understand almost anything!

RE: hey programmers! by Mnjul on 09-18-2004 at 09:16 AM

You need to use TWO equal sign in "condition" statements. C-like language differentiate = (assigning operator) and == (equality operator) a lot. :)


Now, I think switching VB to C++ is not easy either, but that again depends on how deep you get into in VB. For example, I'd been coding in VB for six years before I chose to fully switch to C++, and that was rather a pain at first - I was too accustomed to VB's language structure.


RE: hey programmers! by Choli on 09-18-2004 at 09:16 AM

quote:
Originally posted by Mike2
Its hard to switch from vb to C/C++...
what is hard is not switch from vb to c, but just start with c (doesn't matter from which language you come from). Understanding things like
code:
while(*dst++=*src++);/*just an example with pointers and unary operators*/
that is really the hard part. Thinking about what you have to do * to solve a problem is the same in all languages and that can be learnt in vb

* -> note the difference between what you have to do and what you have to type
RE: hey programmers! by lopardo on 09-24-2004 at 08:49 PM

Sorry to bring this back, but I've found an excellent article and I wanted to post it here: http://www.codexterity.com/raw-delphi/index.htm


RE: hey programmers! by Yousef on 09-24-2004 at 09:16 PM

sorry tb, but I completely agree with CR in this case...

I started playing with qbasic when I was about 6/7 years old. After that I did a bit of VB and last year I followed an university course c++ datastructures during schooltime.

Of course I liked c++ a LOT immediately, because you learn to program 'the basics'. I learnt a lot during that course and think I'm a quite good c++ programmer now. Still I made some of my plugins with VB, just because it goes faster for me (GUI creating, standard functions, etc). And best of all, they still work fine!
So I don't see the reason why I should make small programs with c++ instead of vb when I can make them faster with vb.

And to my opinion the programming itself isn't the most important task in creating an application, the designing of the program is. And for the design it doesn't matter a lot in which language you want to write a program, it'll all comes down to the same thing more or less...


RE: hey programmers! by Patchou on 09-25-2004 at 04:30 AM

Let me bring my 5 cents to this thread... I am personally not a VB programmer, not at all. I started with C/c++ directly so I never had to switch. However,the fact remains: C++ is a third generation language, VB is a fourth generation (like C#).

The fact that the syntax is easier could just mean the language itself is better. I had some problems withVB6 but VB.NET is an excellent language. It's still called VB but Microsoft worked 5 years on it to rethink everything and make it a very good alternative to VC for other projects. The fact is that VB.NET is prettysimilar to C# in a lot of ways and a lot of peopel agree (me included) that C# is a gem for a lot of things, especially when databases and internet stuff are involved. The only people who generally disagree are Javorons (Java morons).

Sayign that somethign is better just because it's more complicated to master is pretty dumb (sorry TB, I had to say this). It'sthe same kind of argument I'Ve been fighting  for years when people are talking about the supperiority of Linux. A lot of people are always happy in the fact that they are within the few who master something and it's never been so true in the world of Linux. The same thign applied with development languages.

I hope what I just said will mean somethingfor some of you. In any case, I stay a C++ developer, I love the language but sometimes, you still have to face the reality. One of the most disgusting seen I've seen in the past 3 years are C++ .NET Managed Extension.. this stuff was an error, even before beingreleased. This just proves that C++ isn't made for everything and sometimes, evolutions are necessary to avoid unecessary complications.

Note: oen thing that proves my point is that .NET Managed Extensions for Visual C++ have been rewritten from scratch by Microsoft in the forthcoming Visual Studio 2005 L(