Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   C++? (http://forums.winamp.com/showthread.php?t=200234)

PulseDriver 25th November 2004 22:08

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.

ryan 25th November 2004 22:34

http://www.cplusplus.com

PulseDriver 25th November 2004 22:38

/bow

zootm 25th November 2004 22:39

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 :)

PulseDriver 25th November 2004 22:49

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.

xzxzzx 26th November 2004 01:11

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?

deeder7001 26th November 2004 01:58

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.

Jaak 26th November 2004 04:56

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 ;)

PulseDriver 26th November 2004 08:14

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.

yenerich 27th November 2004 00:57

You are starting in C++as first steps in programming??

Go first to VB

PulseDriver 27th November 2004 01:34

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.

101 27th November 2004 01:36

Quote:

Go first to VB
haha! In fact, I use VB but I wouldn't recommend it anyway. Btw, C++ rocks, go for it. A very good intro tut is the one that comes with VC++6 by Wrox Press, no MFC/Windows, just plain C++

PulseDriver 27th November 2004 01:51

cool, I'll check it out :)

Joel 27th November 2004 02:18

Are you coding for console or for windowed?

k_rock923 27th November 2004 02:37

Someone told me to start by learning C. After a while, I went to C++ and tried to erase my memory.

Joel 27th November 2004 03:38

Quote:

Originally posted by k_rock923
Someone told me to start by learning C. After a while, I went to C++ and tried to erase my memory.
The same goes to VB, lol :D

baafie 27th November 2004 12:10

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.

PulseDriver 27th November 2004 14:39

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.

zootm 27th November 2004 14:57

Quote:

Originally posted by xzxzzx (correction guessed)
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.
That's part of the essence of why C++ is a poor language. It's C with a crap-ass excuse for OO bolted on. I maintain that people should not use C++ unless they have to. Most development these days is shifting to newer languages unless it is reliant on older code, or is particularly low-level (note that there is, or at least should be, a movement away from low-level interaction as it is).

Just how I see things, to be honest. Many would disagree with me.

Quote:

Originally posted by xzxzzx
C#, by the way, is not a Microsoft-only language. Ever hear of Mono?
I was gonna mention that :)

xzxzzx 28th November 2004 06:13

Quote:

Originally posted by zootm
That's part of the essence of why C++ is a poor language. It's C with a crap-ass excuse for OO bolted on. I maintain that people should not use C++ unless they have to. Most development these days is shifting to newer languages unless it is reliant on older code, or is particularly low-level (note that there is, or at least should be, a movement away from low-level interaction as it is).

Just how I see things, to be honest. Many would disagree with me.

Yeah, like me.

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.

fwgx 28th November 2004 11:41

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.

Russ 28th November 2004 14:08

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.

PulseDriver 28th November 2004 14:49

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.