Programming Fundamentals

Started by
13 comments, last by MeshGearFox 15 years, 2 months ago
Hey, I'm thinking about getting into game programming/design and have been learning C++, but the book I'm learning from is quickly going over my head. Do any of you know some good resources on programming fundamentals, like the basic concepts behind programming? The book I am using seems to assume I have programmed before, and I have not. EDIT: Forgot the subject.
Advertisement
Take a peek at Thinking in C++.
Any particular reason you have chosen C++ as your first language?
Quote:Original post by DevFred
Any particular reason you have chosen C++ as your first language?


It's what my brother had laying around and what I have been told by many to be the best language to program in.

Unfortunately, there is no best language. When choosing a starting language, there are ones that I would say are quite poor at this. C++ is a particularly bad offender, IMO. Once of the core design philosophies that C++ was built around is "the programmer is always right". This is rarely true in practise, and certainly false in the case of a beginner.

A good programmer will be fluent in many languages. Even if your goal is to learn C++, that doesn't mean you have to learn it first.

I would recommend Python or C# as beginner languages. In particular, I believe Python would get you learning the "basic concepts behind programming" without dealing with a lot of the complexity that C++ brings to the table.

That said, if your brother is a good C++ programmer it might be an idea to use it, as you would have a ready source of help. This assumes you two get along [smile]
Quote:
That said, if your brother is a good C++ programmer it might be an idea to use it, as you would have a ready source of help. This assumes you two get along [smile]


Heh, I only said he had it laying around the house, I never said he ever read the thing. But on the subject of other languages, I looked into python, and it does look easy. Is python as good at programming games as C++? Sorry if this is a stupid question, I'm really just trying to learn.
Webmonkey.com has a lot of good tutorials that show and explain things... &#106avascript is a nice quick way to learn a lot of the basic concepts of programming.
Python is quite a capable language. It has a few nice libraries for graphics (or so I have heard). You probably would struggle to write Doom 4 in it, but a beginner is going to struggle writing such a game regardless of the language [smile]
I think Basic is the best language to get started with. The reason is sorta in the name.

VB.Net is the state-of-art Basic language and you can download the express edition without charge and Microsoft has a set of tutorials for VB as well.

I don't think C nor python are great for a true beginner, the syntax of both is esoteric.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
Quote:Original post by Shannon Barber
I think Basic is the best language to get started with. The reason is sorta in the name.

...

I don't think C nor python are great for a true beginner, the syntax of both is esoteric.

You think the syntax of Python is more esoteric than BASIC?

:sigh:

People, Python's syntax is simple. The only thing that is "esoteric" about it is that whitespace is significant. This really isn't a big deal, because most readable code indents consistently anyway. In other words, Python teaches you to write well-formed, readable code by virtue of readability being a prerequisite for syntactic correctness.

Visual Basic.NET is a red-headed stepchild. Tons of .NET libraries don't work properly or fully with it, because it lacks language features that C# does. Python is a clean, object-oriented language that possesses powerful constructs yet imposes no organizational restrictions on code - you don't even have an entry point, and execution begins at the top of the file! Despite this simplicity, it has modules, classes, metaclasses, reflection, introspection, closures and much, much more.

Python is a much better beginner's language than BASIC.

This topic is closed to new replies.

Advertisement