Agreed, I'll give it a good go tho :)Quote:
Originally posted by Venom555
I don't think that I'll ever get as comfortable with C as I am with VB. Making big programs in it is really a pain, nevermind a game. :(
Printable View
Agreed, I'll give it a good go tho :)Quote:
Originally posted by Venom555
I don't think that I'll ever get as comfortable with C as I am with VB. Making big programs in it is really a pain, nevermind a game. :(
I don't see any difference in developing large versus small programs in VB or C++. They are both managable in the same way..... so :confused:Quote:
Originally posted by Venom555
I don't think that I'll ever get as comfortable with C as I am with VB. Making big programs in it is really a pain, nevermind a game. :(
I think it all depends on what you're "used" to using.
I'd probably try using VB/.NET and put all the big number crunching functions into a C++ DLL ... isn't that quite a common approach?
Brings me to a question :D where is VB.NET in terms of speed compared to C++? or VB6 for that matter ? I've read somewhere that VB6's loops and the way it does its maths can be slow etc (??). Just wondering if there are benchmarks or something similar available?
I saw a bench mark test on the three once....but I can't remember where...but I remember that C++ was faster in most cases. But not all. And I remember that VB.Net was faster then VB6 in 50-60 % of the cases. But the big improvement in speed in .NET was when you where warking with Classes and Objects. .NET is much faster then VB6 on that.
Last benchmark test was someting like C++ and VB both trying to find the first 500,000 prime numbers and C++ did it in about 8 seconds while VB did it in 11.Quote:
Originally posted by tailz
Brings me to a question :D where is VB.NET in terms of speed compared to C++? or VB6 for that matter ? I've read somewhere that VB6's loops and the way it does its maths can be slow etc (??). Just wondering if there are benchmarks or something similar available?
I've NEVER seen a case where VB was faster than C++, it's pretty much impossible if the program was made correctly
It's not about the apps...it's about the functions...;)
ok, cool answers. 11 seconds over 8 is much closer than I expected.
thanx
See i really dont understand the fuss about VB -vs- C++!
For a few reasons:
1. VB can do everything we need it to unless creating an OS.
____(I know i dont plan on doing this so :) )
2. VB can be used to create Applications with simplicity.
3. C++, I might as well go use MASM32 or HLA with a visual
IDE.
4. VB properly optimized can be very outgoing.
5. IMO, y go backwards, VC++ does not even come close to VB
to me as far as its IDE, and the abilty to create software with
such ease.
I have experience with ASM, C, C++, & VB and over all of them
I choose VB.
When i get real bored and feel like doing things to really get
my brain smoken i'll play around with the other langs.
But i think the future will bring us something along the lines
of what vb is looking like, only better for example we could use
the real english structure to program with. As far as .Net goes
I refuse to get it. I have the framework and an IDE but patooie,
i dont like it i still prefer VB6.
My opinion is using the right tool for the right job.
VB is great for simple applications in which speed and resources is not an issue. This is why a lot of game development tools (map editors, scriptors, etc.) are built in VB.
C++ is great for intensive applications in which speed and resources are seen as a limited resource. This is why games are written in C / C++.
Assembler is great for situations where speed / resourses are seen to be valuable. This is why optimizations are done in assembler.
I have a vague understanding of .NET and the only thing that I heard about it is its ability to take 120938 programming languages and make 1 program out of them (IMO, a very bad idea.)
If you are looking for a PL that looks like english, then check out COBOL.
hey! try 3d lingo! ahihihi..keep ur cool peeps...
IMO ... LeRoi, .NET is far superior to vb6, I suggest you try it out :D
As for speed, hasn't vb always gone through several call's to get to whats its actually supposed to be doing unlike C where it just asks mr.processor for the result, hence Lower and Higher-Level etc
I'm never gonna be writing unreal3 by meself or anything that serious and tbh with the processors nowadays... anything I do that can only run (according to blokey above) 8/11ths of the speed... I'm not gonna give a toss about... is anyone else here?
I really like vb6 and i luv vb.nets' interface. I dont see why being able to have 120938 languages is a prob cause isn't it converting it to machine jargon anyway? from the looks of it, its just bringing C and VB closer together anyway, isn't it called C# now?
nuff rambling
NOTE: 120938 is just a number I threw up there. I really do not know the exact number of languages that you can combine.
Combining several languages together in one program is a bad idea. It hurts readablility. For example, can you understand:
This is a mismatch of LISP, C / C++, COBOL, and 80x86 assembler. Its very confusing to the person who does not know these instruction sets. This is the fact so much so that this piece of code will have to be rewritten so that the original intent coudl be seen.Code:
(DEFUN myFun (lis1 lis2)
switch (lis1[0])
{
case '1':
{
char *lis1 = &lis1;
listlen = strlen(listlen);
for counter := 1 step 1 until listlen do
MOV AX, 09
MOV DX, lis1
INT 21h
end;
}
default:
break;
}
)
If I was to write this (or at least what I intended :) ) in just C / C++, it would probably look like:
Furthermore, while programming like this, you will have to question what a LISP atom actually is and how it should be treated as such. Also, how would LISP (a functional programming language) and C / COBOL (procedural programming languages) would interact if they were combined?Code:
void myFun(string lis1, string lis2)
{
switch (lis[0])
{
case '1':
for (int I = 0; lis1.length(); ++I)
cout << lis1;
default:
break;
}
}
The solution becomes very complicated and vague very quickly. This is why combining programming languages is bad. (NOTE: Because C++ was made to be backward compatable with C, C++ suffers from this defect. This causes programmers to utilize different aspects of the langugage causing confusion, albeit not too severe.)
lol, it doesnt combine languages like that anyway (does it ??) i'm sure its just developed the current vb language and also created this C# lingo (btw I havent dived into the C# side much :)).
being able to do what you wrote would be EVIL and anyone who wrote code like that for me would be shot.
example, it takes across some good features from C into the vb world such as c=+1 (which I hated vb for not allowing)
does vb.net allow for ASM ?
btw. I realise that 120938 was a made up number :P
btw I've had pub luncheon so apologies for any tryping errors
Like I said, I really do not know much about .NET other than the fact that they combine PLs together into one language.
If someone as a sample of .NET code in which the programmer is using two PLs, post it or a link please. :)