![]() |
C++?
I have just started with C++, and I don't know why I just did that today, but I have no books ATM so I am wondering if someone in here know some places I should go for an online documentation like a proper reference :)
Anything would be welcome. I do intend to buy me a book so I can get serious with it, and I know they also have some at the library which I can visit after work tomorrow. |
|
/bow
|
My advice is to dump it and learn C, C#, or Java, unless you need C++ for something. It's a poor implementation of object orientation onto a decent imperative language.
I might be biased, but I just don't like it. I'll stop being unhelpful now. A good book to learn with is "A Book On C", though, it covers C in detail and adds the C++ stuff you'll need :) |
Why would I learn C instead of C++? I know Java could be useful, and I have programmed a little with it, but it seems so slow when it gets big, and there are so many pre-made objects and methods you use more time looking trough documentation than writing programs. I am sure when you learned a lot of Java, these things comes faster, but it's no language for a noob.
I have a book called The C Programming Language made in 1988 by Brian W. Kerninghan and Dennis M. Richie. C# (sharp) is a microsoft language, so I'll stay away from it untill I need it. I don't have very much need of .NET objects and such yet. Besides, C++ is a great language. One can create very powerful programs and many VERY popular programs are made with C++ such as Photoshop. |
Forget C, unless you're writing for something obscure that doesn't have a C++ compiler. Learning C and then C++ is a great way to fuck yourself over in the long run, because a lot of things that are necessary or good practices in C++ are extremely stupid and bad style in C++.
C#, by the way, is not a Microsoft-only language. Ever hear of Mono? |
i was looking into learning C++ as well the other day. then i got tired of looking it up. besides i don't need to write any programs anyways.
|
go C++, no point to bother with C or C#, and I really dont like Java at all.
C++ with Java oo would be amazing tho' :) love inline assembler btw ;) |
Hum.. I looked at a book in the bookstore to see what C# was all about, and it said in the beginning of the book that C# was developed by microsoft and specially focused on .NET programming.
But I won't argue about it and I may have misunderstood. |
You are starting in C++as first steps in programming??
Go first to VB |
Hahaha... VB is not exactly what I am looking for. I have programmed a little here and there. Java, C and lots of different special languages like MAKI here at winamp, lots of game makes which use scripts (most are C though)... so it's not like I am starting off from scratch. I know what it's all about. I have also used a little Perl and PHP if that counts as a language.
|
Quote:
|
cool, I'll check it out :)
|
Are you coding for console or for windowed?
|
Someone told me to start by learning C. After a while, I went to C++ and tried to erase my memory.
|
Quote:
|
Basically everything you can do in C, you can do in C++. So if you're going to learn C++, you'll be learning C, like it or not :). The main pitfall in C/C++ is that you have to do your own memory management. With many other languages (Java, et al) this it not required; instead, you can focus on object oriented programming. Which language you learn should depend on what you want to do with it. If you want to be able to write programs and/or participate in (open source) projects, C/C++ should prove very useful. In contrast, if your goal is just to learn (object oriented) programming, Java or similar is the way to go.
|
Most places where there are c++ communities, they think it's more wasted to learn C before C++ if you're going to use C++ in the end anyways.
I am going to code for console in the beginning and start using canvas and other stuff when I can get the hang of console. |
Quote:
Just how I see things, to be honest. Many would disagree with me. Quote:
|
Quote:
Look, an average programmer cannot be very productive with C++. A a very good one will be extraordinarily producive, but has probably shifted to another whole class of languages (Lispishes, like Python). However, no one in their right mind is going to write a performance-critical app in Python. C++ is a terrible language if you think with the C mindset. C++ is a different language, if certain constructs are very similar. The STL brings a whole new level of changes. I repeat: do not learn C and then C++. If you must learn C, learn C++ and then learn C - you'll find yourself missing C++ features, but at least you'll know they're there. C programmers that learn C++ tend to code "C++ compliant C" - sure, it's in a class (that makes it object oriented, right?), but the class has *one* method... Look, maybe C++ isn't the right language for you - perhaps one of these fancy garbage collected ones would be better (C#, Java, VFP). C++ is an incredible tool in the right hands. Hell, you can build garbage collection into a C++ if you want! Anyway, I've said my piece. |
I went the PASCAL->C->C++->Java route and happen to like all but pascal. C is great in the right situations, C++ is great in the right places, java is good for different things again. I'm a professional coder, you need a toolbox of languages and skills to have a good career. Refusing to learn C may not be a good idea as a lot of places still use it, and some disiplins require it (hardware, low level stuff etc).
I don't see the harm in leaning C first as long as you put the effort in to learn OO afterwards and not just assume its similar. but then if you've alerady done some coding then maybe you're happy with prodedural programming concepts and don't have to start from the beginning. Personally I'd learn C++ over java for two main reasons. 1) There are a lot more C++ jobs out there and will continue to be for a fair while yet. 2) The sooner you can get around it's quirks the better. Learning java afer you know C++ well is strange but if you know your OO it will be easier to understand anyway. |
A good programmer will learn and adapt to any new language. Granted, some languages take more learning than others, but once you know the concepts and master the way of thinking then it's not hard.
|
I have programmed a little C, if you read all of it. I don't know why ppl say stuff without reading the thread :S
I didn't want to go VB, cause that's not the way I want to go. I didn't say I didn't want to learn C. I reflected a note I found at a C++ learning community forum, which said that if you wanted to learn C++ in the end, it's no need to learn C, as they ment to learn C to learn C++ in the end had more drawbacks than good effects. |
| All times are GMT. The time now is 11:00. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.