Originally posted by ronverdonk
Java better than C++
Collapse
X
-
-
HTML beats all. O_o
Seriously, though, I think it's a matter of preference. I'm only a senior in High School, but I've already learned VB, Java, and C++. I've been learning C++ pretty extensively lately, so I'd say I'd be better at programming using C++. But I remember when learning Java that it seemed more user-friendly - closer to the english language, so concepts were easier to understand. But this is all a matter of preference. As someone already said, 'best' is a relative term. For example, if I were to try and tackle a project with several classes using inheritance, etc, I would use Java, since that makes a lot more sense to me (and I haven't run across unexplained problems in Java like I have in C++). If I were to try and tackle other types of problems, I might use C++, since it is generally faster on my computer and the material (syntax, etc) is still fresh in my head. But would I say any is better than another? No, I don't think I could say that.
But VB is lame. :PComment
-
Originally posted by drhowarddrfineC is the mother of C++
The latest versions of C have borrowed features from C++, if you look at the development paths of C and C++ you will find that you can just about find a point where they both inherited from the same predecessor but that development is then along separate branches with exchange of ideas happening in both directions between the 2 branches.
On the occasions when I have used Java I have tended to find it irritating, most recently the most irritating feature was the IDE I was using assuming that it needed to compile everything in the source tree despite some of the files being C++ files, but when I tried to remove those files from it's compile source tree it deleted them from the disk too, where as I wanted them on the disk I just didn't want it to compile them. Sort of "If I can't compile them then no-one can".
I really really really hate programs that think they are somehow more inteligent then me.Comment
-
I really really really hate programs that think they are somehow more inteligent then me.Comment
-
Originally posted by BanfaMore like an older sibling I'd say.
The latest versions of C have borrowed features from C++, if you look at the development paths of C and C++ you will find that you can just about find a point where they both inherited from the same predecessor but that development is then along separate branches with exchange of ideas happening in both directions between the 2 branches.
On the occasions when I have used Java I have tended to find it irritating, most recently the most irritating feature was the IDE I was using assuming that it needed to compile everything in the source tree despite some of the files being C++ files, but when I tried to remove those files from it's compile source tree it deleted them from the disk too, where as I wanted them on the disk I just didn't want it to compile them. Sort of "If I can't compile them then no-one can".
I really really really hate programs that think they are somehow more inteligent then me.
Unfortunately many beginners are starting out on IDEs these days, practice I think is unhealthy for the programming community.Comment
-
-
Originally posted by bartoncCan anyone else program on Windows without Visual Studio?
I could very easily write a Windows program making direct API calls using any bog standard text editor if I chose.Comment
-
There's two. heh.
I've downloaded the console version of VisualC++, I think it's called Visual Toolkit, and played with that. It's the compiler with tools but no gui.
I've written a few small apps in assembly for Windows, too. But now I do everything in FreeBSD and have no use for any of that.Comment
-
Originally posted by BanfaYep, I've been writing Windows programs in C since 1989 when it was Windows 2 and before Visual Studio existed.
I could very easily write a Windows program making direct API calls using any bog standard text editor if I chose.Comment
-
You can, it's just that a lot of people nowadays seem lost unless they have VS. Partly because they have to manage all the files manually or set up another IDE to do so. It's just kind of funny when I see someone ask a question about how to do some code and they say, "Well, go to tools->options-> in VS...".
I'm exaggerating a little but it sure seems that way.Comment
-
Originally posted by bartoncDoes "if I chose" mean that this is not really a practical solution, but merely possibility?
First write a Window Handler Procedure
Then in WinMain
Register a Window Class (this is a construct of Windows nothing to do with C++) with RegisterClass
Create a Window of that Class with CreateWindow
Enter a message loop.
Code:BOOL bRet; while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0 ) { if (bRet == -1 ) { // handle the error and possibly exit } else { TranslateMessage( &msg ); DispatchMessage( &msg ); } }
Comment
Comment