C++

C++

Post just about everything that isn't directly related to Spring here!

Moderator: Moderators

[Suck]suck
Posts: 14
Joined: 12 Apr 2007, 22:50

C++

Post by [Suck]suck »

im learning how to program in C++
any recommended programs/compliers and stuff that i need?

help would be appreciated

thx in advanced
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Get visual C++ 2005 express edition (free)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Do you already know how to program? If not, C++ isn't the best language to start with.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I disagree. I started with C++, and it made everything else a lot easier.
User avatar
gamer17
Posts: 235
Joined: 21 Feb 2007, 23:51

Post by gamer17 »

Thanks for the info, you know any good websites that have tutorials?
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

google it, or go accquiring some o'reilly e-books.

On the language, i started with a wee bit of basic, then some perl, and now C#. Iono if it made it easier for me to learn, probably didn't
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

AF wrote:I disagree. I started with C++, and it made everything else a lot easier.
I'd probably start a new coder with a OOP language that has less random obscurities than C++... In the end of the day it can be frustrating though, since most people want to learn C++, not some other object oreinted language, simply because C++ has more base level practicality (even if it does make bug hunting endless and impossible)
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

To really understand what you're doing you need to have a basic understanding of what's underneath too.
User avatar
Comp1337
Posts: 2434
Joined: 12 Oct 2005, 17:32

Post by Comp1337 »

Tobi wrote:To really understand what you're doing you need to have a basic understanding of what's underneath too.
I agree. However random obscurities can be quite a turnoff for an aspiring programmer.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

That's true too, ideally you need to find a middle way.
tombom
Posts: 1933
Joined: 18 Dec 2005, 20:21

Post by tombom »

My first language was COBOL at the age of 7.

Jesus. That was horrible. :cry: I don't think I ever wrote anything that did more than print "Hello World!".
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

SwiftSpear wrote:
AF wrote:I disagree. I started with C++, and it made everything else a lot easier.
I'd probably start a new coder with a OOP language that has less random obscurities than C++... In the end of the day it can be frustrating though, since most people want to learn C++, not some other object oreinted language, simply because C++ has more base level practicality (even if it does make bug hunting endless and impossible)
Should also not be Python since strict typing is something that needs to be learned early on.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

KDR_11k wrote:Should also not be Python since strict typing is something that needs to be learned early on.
You can count on my disagreement to this line 24/7.

Why Python is good:
- teaches indentation
- doesn't bother you with complex syntax (which you need in C++ if you want STL, that is all the time)
- no need to compile
- reads well
- good documentation, free online books (dive into python)
- static typing gets in the way unless you really need it (not too often) - not a problem in Python, no static typing (you can still check types explicitly)
- it fits your head - very important for newcomers

C++ is arguably the worst choice for a first programming language you can make. Even Lisp or assembly is better, because they teach you something other than fighting obscure compile errors.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

I still think that not learning strict typing is a hazard to a young programmer's development.
User avatar
Boirunner
Kernel Panic Co-Developer
Posts: 811
Joined: 05 Feb 2007, 14:24

Post by Boirunner »

C++ is a horrible programming language. Learning it as a first language from a tutorial will just endlessly frustrate you and you will give up after a week. If you want to learn a serious language, learn Java.

If you just want to learn programming for fun, though, Python is fine.

And if you were planning on learning C++ to work on the Spring engine, forget it. It will realistically take you years to get to a proficiency that would allow you to do so.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Post by Licho »

Well for the start it's really better to learn something easier, where you don't have to care about annoying details and wont encounter annoying bugs.

C#, Java, Python, Pascal. If you want to know what's beneath start with C and not C++ imo.

It takes time to really master C++ with all subtle and weird stuff.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

C is mostly syntax learnign and some standard functions. Otherwise you forget it when you start usign STL.

Learn basic C++ then goto Java and C# and build window programs from there then flit between the two/three.
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Post by Zpock »

C++ should be learned first otherwise the aspiring programmer would probably get comfortable with whatever else he learns first and never bother to learn proper c++ and become some b-rate programmer:

Image
User avatar
Boirunner
Kernel Panic Co-Developer
Posts: 811
Joined: 05 Feb 2007, 14:24

Post by Boirunner »

Zpock wrote:C++ should be learned first otherwise the aspiring programmer would probably get comfortable with whatever else he learns first and never bother to learn proper c++ and become some b-rate programmer:
If by A-Rate programmer you mean "professional software engineer, earning 100k a year", then yes. Most normal people who are not getting a CS degree can happily program their entire lives without ever having to do pointer arithmetic.

I'd much rather see the average programmer code average Java or C# code than ugly C++ code.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Zpock wrote:C++ should be learned first otherwise the aspiring programmer would probably get comfortable with whatever else he learns first and never bother to learn proper c++ and become some b-rate programmer:
Ugg, do you really believe learning is so closed ended? I hope to god your coding knowledge is good because your psychology knowledge is really really bad.

Getting comfortable with java/C#/another strict OOP language is fine, C++ isn't that different, it basicly just has more odd obscurities that must be learned through trial and error in comparison. Hell, it's pretty odd for a decent coder to not have a passable mastery of a good half dozen or so languages. It helps that most languages are reasonably similar once you get over syntax, but still...
Post Reply

Return to “Off Topic Discussion”