POV-Ray : Newsgroups : povray.off-topic : C++ Advice Server Time
29 Jul 2024 16:20:56 EDT (-0400)
  C++ Advice (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Orchid XP v8
Subject: Re: C++ Advice
Date: 25 Sep 2011 05:37:53
Message: <4e7ef671$1@news.povray.org>
DON'T DO IT! SAVE YOURSELVES!

Wait, what was the question...? ;-)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Nekar Xenos
Subject: Re: C++ Advice
Date: 25 Sep 2011 13:18:56
Message: <op.v2djps2bufxv4h@xena>
On Sat, 24 Sep 2011 21:25:59 +0200, Le_Forgeron <jgr### [at] freefr> wrote:

> Le 24/09/2011 19:58, Warp nous fit lire :
>> Nekar Xenos <nek### [at] gmailcom> wrote:
>>> My 14 year old son wants to start learning C++ and OpenGL.
>>
>>> What would be the best way to go about it?
>>
>>   I don't know, but I suppose one obvious way would be to buy him a
>> couple of books.
>>
>>   I have read some positive things about the latest book of the man  
>> himself
>> (ie. Stroustrup), "Programming -- Principles and Practice Using C++".
>>
>>   I'd also recommend "Effective C++", "More effective C++" and
>> "Effective STL" by Scott Meyers.
>>
> All good books, I presume, but they are probably more a kind of toolbox
> that a tutorial. (at least, they would expect some experience in
> programming, even if only something like C)
>
> Before learning C++, have him dig a bit in object-oriented conception
> first. Probably better with some human interface
> (school/formation/stage/whatever) than a book.
> (well, you can write C++ like any other language: if you have no clue,
> the result might be a very strong and potent fertilizer. And sometime
> you can even have valid reasons to do it with such bad practices. Yet it
> is not something that should be made a model for the unwary)
>
> At least C++ is a bit more strict than C about the details. But even a
> very strict language would still fails if the conception is bogus.
>
> For OpenGL, he can probably try to observe and understand the code from
> any OpenGL & opensource game (that he like). It might give some clues
> about how it works (my question would be: why bother with OpenGL ? any
> short-term purposes ?)

I should have said at first that he wants to get into game programming.  
Ultimately he wants to make games for the Nintendo Wii. It's going to be a  
long road....

-- 
-Nekar Xenos-


Post a reply to this message

From: Darren New
Subject: Re: C++ Advice
Date: 25 Sep 2011 13:42:11
Message: <4e7f67f3@news.povray.org>
On 9/25/2011 10:18, Nekar Xenos wrote:
> I should have said at first that he wants to get into game programming.

You might want to start with something a little easier, with more libraries, 
etc, that will nevertheless give the basics. Such as XNA.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Warp
Subject: Re: C++ Advice
Date: 25 Sep 2011 13:54:58
Message: <4e7f6af2@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> For OpenGL, he can probably try to observe and understand the code from
> any OpenGL & opensource game

  I have always wondered why this is such a common suggestion, even though
it's one of the hardest ways of learning anything.

  You don't learn driving a car by examining the inside of a combustion
engine. You don't learn to use a computer by examining the circuit board
inside it. You don't learn to build a bridge by examining the bolts and
nuts used in it.

  The easiest way of learning OpenGL is, obviously, to read some online
tutorials. What exactly is wrong with suggesting that? Why suggest the
absolutely hardest way?

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: C++ Advice
Date: 25 Sep 2011 17:32:14
Message: <4e7f9dde@news.povray.org>
On 9/25/2011 10:54, Warp wrote:
>    I have always wondered why this is such a common suggestion,

Because it validates the perception that open source is a vitally important 
resource to everyone? :-)

> it's one of the hardest ways of learning anything.

Especially something like computer programming. At best you get cargo cult 
programming, where you copy what someone else did and make changes, but you 
don't really understand exactly why it is it works that way.

-- 
Darren New, San Diego CA, USA (PST)
   How come I never get only one kudo?


Post a reply to this message

From: Nekar Xenos
Subject: Re: C++ Advice
Date: 26 Sep 2011 01:26:54
Message: <op.v2ehe3p2ufxv4h@xena>
On Sun, 25 Sep 2011 11:37:53 +0200, Orchid XP v8 <voi### [at] devnull> wrote:

> DON'T DO IT! SAVE YOURSELVES!
>
> Wait, what was the question...? ;-)
>

Do you want to encourage my son to program games in Haskel? :P

-- 
-Nekar Xenos-


Post a reply to this message

From: Invisible
Subject: Re: C++ Advice
Date: 26 Sep 2011 04:28:48
Message: <4e8037c0@news.povray.org>
On 26/09/2011 06:26 AM, Nekar Xenos wrote:
> On Sun, 25 Sep 2011 11:37:53 +0200, Orchid XP v8 <voi### [at] devnull> wrote:
>
>> DON'T DO IT! SAVE YOURSELVES!
>>
>> Wait, what was the question...? ;-)
>>
>
> Do you want to encourage my son to program games in Haskel? :P

I gather doing OpenGL in Haskell is quite pleasant. (I haven't 
personally tried it.)

I also know from personal experience that unless you're on Linux, 
getting any sort of GUI library to work is quite hard. And doing 
low-level stuff like getting keypresses and mouse events is hellishly 
difficult. I don't think it's even *possible* to do sound. (There are 
libraries for this, but IME they don't actually compile.)

So, uh... no. Don't try to write games in Haskell.


Post a reply to this message

From: andrel
Subject: Re: C++ Advice
Date: 26 Sep 2011 16:56:52
Message: <4E80E713.1020303@gmail.com>
On 25-9-2011 19:18, Nekar Xenos wrote:
>
> I should have said at first that he wants to get into game programming.
> Ultimately he wants to make games for the Nintendo Wii. It's going to be
> a long road....

Are you sure that games programming will still be necessary when he 
finishes?

There is also game and character design.

Partly prompted by this: Tomorrow I will be visited by two students who 
study game design and one of their teachers. The students will do an 
internship in our embryology group. Creating (hopefully animatable) 
models of our embryos. Message: You can find knowledge about games in 
strange places and you can apply that knowledge in even stranger places.

-- 
Apparently you can afford your own dictator for less than 10 cents per 
citizen per day.


Post a reply to this message

From: Nekar Xenos
Subject: Re: C++ Advice
Date: 27 Sep 2011 00:22:09
Message: <op.v2f825ykufxv4h@xena>
On Mon, 26 Sep 2011 22:56:51 +0200, andrel <byt### [at] gmailcom> wrote:

> On 25-9-2011 19:18, Nekar Xenos wrote:
>>
>> I should have said at first that he wants to get into game programming.
>> Ultimately he wants to make games for the Nintendo Wii. It's going to be
>> a long road....
>
> Are you sure that games programming will still be necessary when he  
> finishes?
>
He's a Nintendo fan so it will be whatever the equivalent is then...

> There is also game and character design.
>
> Partly prompted by this: Tomorrow I will be visited by two students who  
> study game design and one of their teachers. The students will do an  
> internship in our embryology group. Creating (hopefully animatable)  
> models of our embryos. Message: You can find knowledge about games in  
> strange places and you can apply that knowledge in even stranger places.
>

Games are taking over the world  o_O

-- 
-Nekar Xenos-


Post a reply to this message

From: Aydan
Subject: Re: C++ Advice
Date: 27 Sep 2011 09:55:00
Message: <web.4e81d532b0e403513771cd8e0@news.povray.org>
"Nekar Xenos" <nek### [at] gmailcom> wrote:
>
> I should have said at first that he wants to get into game programming.
> Ultimately he wants to make games for the Nintendo Wii. It's going to be a
> long road....
>
> --
> -Nekar Xenos-

Hi,

If he's completely new to programming and OOP, he could start with an object
oriented scripting language like python, for example. The python tutorial is
quite understandable, in my opinion.
Also there's python libraries for graphics (e.g. pyOgre or pyQt) and sound
stuff.

Regards
Aydan


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.