Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

C++ tutorial?

Name: Anonymous 2006-08-27 13:15

just wanted someone's opinion on this. Anyone know a good book, or site that I could learn C++ from? i was planning to do a game dev project soon, and I wanted C++ to be the language I'll build it with..uh...thanks. 8D!

Name: Anonymous 2006-08-27 13:17

"I make decisions on what language to use for a project without knowing the language."

Name: Anonymous 2006-08-27 13:29

I know what language I want to use, but I don't know the language.. >_> The most I've done with C++ is a hello world thing. D:

Name: Anonymous 2006-08-27 14:00

Name: Anonymous 2006-08-27 14:04

>>4
Ruby for a game?

Name: Anonymous 2006-08-27 14:28 (sage)

FREEBASIC OR GTFO

Name: Anonymous 2006-08-27 16:16

>>6
Ew, no.

Name: Anonymous 2006-08-27 16:47

>>4
lol, ruby fanboy, please give an example of a good game in ruby

Name: Anonymous 2006-08-27 17:29

>>8
The choice of language has no influence on the quality of a game.

Ruby, however, will allow the programmer to focus on programming the game instead of messing around with memory allocation, syntax errors, platform-specific code, and etc. which plague C++ and other archaic languages.

Name: Anonymous 2006-08-27 18:44

>>9
Are there any games in Ruby?

Name: Anonymous 2006-08-27 18:47

>>9
You are obviously an idiot who has never done actual game engine or graphics programming.  Perhaps in 100 years when we don't have to worry about performance, we will be able to do without those "archaic languages".  If Ruby was really better, don't you think that it would be used commercially?

I don't get how you can be such a fanboy of a programming language.  True programmers realize that different languages are better for different tasks.  If you don't recognize this, then you are a mediocre and easily replaceable programmer.

Name: Anonymous 2006-08-27 20:06

I agree with >>11.

Just what kind of games can you write in Ruby anyway? Tic Tac Toe? Interactive Fiction? Yet another cheesy web game?

There aren't that many genres that don't require some degree of performance. Not that many people in the windows world have Ruby installed on their machine either (nor OSX, nor many *nix installs), which is what, 99.5% of the market?

Name: Anonymous 2006-08-27 20:52

>>11
>>12
Have you ever heard of "bindings"? You know, the magical thing that allows you to use Qt or OpenGL in Ruby? Of course not.

Name: Anonymous 2006-08-27 21:40 (sage)

>>13
Fuck me, you are an idiot.

Have you ever written anything in OpenGL? Seriously, do you think having an OpenGL API magically pushes all the processing to the driver? I'm guessing you think making vertex arrays or display lists will go zoomj fast now. What about the scenegraph and myriad other trees? And god forbid you do anything fancier than that!

What does Qt have to do with gaming? What kind of shitty game uses so little CPU that a GUI toolkit is your main concern? Oh, baby, let me push dem tic tac toe butans moar!

Man, if you want to use bindings, how about using a HLL that isn't slow as shit to begin with? On that, you know, can be run on the >90% of computers out there?

shit sux sage pebcak

Name: Anonymous 2006-08-27 22:27

Step one:
Aquire'd an ECKSBOCKS. (hint: five bux via EBAY)

Step two:
Solder in an mod-chip (careful around D0 its a motherfucker)

Step three:
Find the XDK development kit (ZOMG TORRENT) and a copy of Visual Studio (SEE PREVIOUS ZOMG)
make a patch lead from cat5 cable and a couple of rj45 crimps.

Step four:
Install VS and then the XDK, then install the XDK bios and devkit to the xbox.

Step five:
Take on the monumental task of leaping from printing a console message saying "HELLO /b/" to completely understanding the headache of C++ the COM model and as much SDL as you can uncomfortably sledgehammer into your skull.
(ritalin does not a happy coder make)
Once C++ is mastered in its entirety you can then progress onto  completely getting your head around DirectX8 (hint: the SDK is pretty thoroughly documented but leaves out a lot of optimisations specific to the XBOX, these however are generaly covered in the XDK man pages)

GET HOLD OF : Beginning Direct3D Game Programming
published by "premier press"
ISBN : 193184139X

Its a decent starting point, the reason ive told you to do things this way is many fold.
1: your actively commiting yourself financialy, as well as with time and that makes me sure as fuck put time and effort into a project.
2: Your working entirely under windows so if you dont know *nix you dont need to hinder yourself in the early stages learning a new OS.
3: Visual Studio is outstanding to learn on, its all IDE, very well documented and if you have any problems people will generaly be able to figure it out.
4: the Xbox dev gives almost instant results (once its setup), its got a decent debug setup and its optimised for games (ie no fucking windows code errors)
5:D3D8 has some solid documentation, plenty powerful enough to tinker with and although it has a nightmare learning curve i found it to be fun.
6:you wind up with a kickass commercial dev environment for under $100, no small feat.

PS: if you're serious about coding your gonna want to learn you some math, as your coding skills progress to the point where your ready to take on a serious project you'll find yourself in the ZOMG WTF CALCULUS?!?!?!?!?! stage. 3D work is numbers intensive, if you seriously dont know the difference between a scalar and a vector then you should probably hit the books pretty hard.

Name: Anonymous 2006-08-28 1:34

>>14
Truth.  All of these Python and Ruby kids are completely oblivious to the issue of performance.  I seriously hope none of them have attended college, because a school that teaches programming without focusing on performance at all is a complete waste of money.

Name: Anonymous 2006-08-28 4:31

>>16
All schools teach programming without focusing on performance, and some of them don't even teach good programming.

Name: Anonymous 2006-08-28 6:46

>>9
The choice of language has no influence on the quality of a game.
Fucking LOL. You can't seriously believe this.

It's like arguing with religious people.

Name: Anonymous 2006-08-28 6:52

>>18
Don't take all Pythonic people for that. I'm one of __them__ and I understand Python is not the best idea for most 3D games; in particular, any that requires high-performance graphics.

Name: Anonymous 2006-08-28 8:12

system("q3a")

Name: Anonymous 2006-08-28 9:05

>>20
It's os.system("q3a")

Name: Anonymous 2006-08-28 9:53 (sage)

>>18
Okay, what I said was not really true.  Using shitty languages that promote hacks and other sloppiness will indeed lower the quality of the game PROGRAM, not the game itself.  If you use Ruby, you'll just have to implement the game design, while writing beautiful code, and there's the game.

No, I do not give a damn about performance, I have a supercomputer that can perform 2 billion instructions per second, that is insane and much more that anyone'll ever need.

Re: College, the only thing you learn there with regards to programming is the algorithm complexity concept, which only supports my point of view.

>>11
If Ruby was really better, don't you think that it would be used commercially?

Of course not.  "Professionals" know only how to create shitty software in decades, while real programmers churn out godly software in 2 minutes that does the same, and better.

Name: Anonymous 2006-08-28 11:52

>>22
Seriously, please just GTFO.  Your statement about college proves that either you haven't gone, or your school had a subpar program.

If you are honestly stupid enough to believe that you can get better performance in Ruby AND make a game in only a few minutes, then prove it.  You have never worked on games and you never will, so please stop acting like you have any idea what you are talking about.

Name: Anonymous 2006-08-28 13:20

>>23
Stop putting words in my mouth, you cockgobbling asspirate!

Name: Anonymous 2006-08-28 13:25

>>22
is a retarded weeaboo ruby fanboy

Name: Anonymous 2006-08-28 13:44

>>24
lol wat

Name: Anonymous 2006-08-28 18:33

No, I do not give a damn about performance, I have a supercomputer that can perform 2 billion instructions per second, that is insane and much more that anyone'll ever need.

ring ring rofflecopter

>>23 is 100% signed.

Name: Anonymous 2006-08-28 21:17

>>22
you can get nigger AIDS while we "Professionals" get paid to write software at our leisure.

oh you code monkeys are all the same! keep thinking that you're superior but nobody gives a shit.

Name: Anonymous 2006-08-28 22:40

>>22
Silly "Professionals", always designing and writing software that sells for "actual money".  I wish we could all be like >>22 and "worship" Ruby, have no "real" programming knowledge, and be "flat broke".

Name: Anonymous 2006-08-29 3:49 (sage)

>>22
If you use Ruby, you'll just have to implement the game design, while writing beautiful code, and there's the game.

NO, IT'S NOT. Ruby doesn't have the performance to handle complex AI, scene graphs, tree pruning, vector math, particle emitters... IT DOESN'T FUCKING DO IT FAST ENOUGH. GET THIS THROUGH YOUR GOD DAMN HEAD. IT DOESN'T MATTER HOW WELL YOU WRITE IT, THE MACHINE LANGUAGE IS NOT FUCKING FAST ENOUGH. If you'd have ever written ANY of these things, you'd have some idea of the fucking SPEED you're working with.

Leave my /prog/ and never come back.

Name: Anonymous 2006-08-29 3:57

>>22
No, I do not give a damn about performance, I have a supercomputer that can perform 2 billion instructions per second, that is insane and much more that anyone'll ever need.

Another gem. Certainly more than YOU'LL ever need, because you'll never program anything more than bullshit Hello World programs in Ruby.

Talk to NASA about planetary astronomy. Talk to RSA about cryptography. Talk to SETI about radio telescope signal analysis. Talk to CERN about simulation and computation of the terabytes of particle physics data per month it will be taking. A few billion instructions per second is a joke to these people.

Name: Anonymous 2006-08-29 4:15

It's a joke to biologists (sequencing and protein folding) and artists (rendering) too.

That must have been a troll.

Name: Anonymous 2006-08-29 5:36

>>31
NASA uses Python. SETI? SETI's client is ancient 386 code which they don't want to improve or optimize because they have more users than they need and they run out of packets to analyze.

Performance is very important, but productivity is too, as time is money. For many things, it's cheaper to buy more powerful hardware than to pay developers for much longer.

You are starting to sound stupid, just like the other guy, but in a different direction. I hope you don't run Gentoo because CFLAGS JUST KICKED IN, YO!

Name: Anonymous 2006-08-29 8:41

>>33
So game companies should be paying for their customers' hardware, instead of paying developers.

Name: Anonymous 2006-08-29 8:59

NASA uses Python.
Today's lesson in logic: "uses" does not imply "uses exclusively".

NASA pioneered cheap beowulf clusters (remember Extreme Linux?). They have shitloads of code in Fortran (it's a better performer for numerics than C). They have two of the world's top 100 supercomputers (one which is 4th). They have significant influence on things like PVM/MPI/OpenMP/grid computing (guess why?).

Of course they use Python too, but that's tangental to what >>31 is muttering about. "2 billion instructions per second... [is] much more that anyone'll ever need" is somewhere in lala-land. There's no such thing as enough cycles for everyone, and there never will be.

Name: Anonymous 2006-08-29 9:52 (sage)

>>34
the people asking these sorts of questions aren't the sort that are going to be worried their apps running a factor of 10 times slower in Language X compared to c/pp.
I speculate that majority of people that post here who want to learn programming are because:
1. they want to get into into game programming 
2. learn to become a 1338 |-|3x0r.

Have you actually looked at the sorts of questions they ask? They're not asking about complex AI methods or particle emitters. They probably do not know what a scene graph is. They're not trying to get their heads around vector math or cryptography. Newbies shouldn't be worried about shovelling terabytes of computational and simulated data around a network. If they want to start their own 3d mmorpg, we should tell them go for it and expect to not see any graphical results for at least 6 months while they try to learn about the stuff involved in implementing one. For most of them, they just want to learn programming concepts and play around with some code. They want to learn the concepts needed to display and move a circle around on the screen. they want to learn the concepts needed to creating a simple game or gamelike demo and then finally implement it. languages such as python and ruby let them understand the concepts faster by lowering the overhead needed for them to experiment ie far quicker compilation process, not worring about pointer math and new and delete, useful higher level data type manipulation. sure, it's harder to shift bits around in the registers but they don't care about doing that.

Name: Anonymous 2006-08-29 13:39

>>36
curse you for ruining our programmer peckerwaving with logic and facts.

Name: Anonymous 2006-08-29 19:39

leeb?

Name: Anonymous 2006-08-29 20:20

>>36
The OP said that he is going to be using C++ for a game project.

Name: Anonymous 2006-08-29 22:12 (sage)

>>38
typo

>>39
sorry for ranting in this particular thread but I had to do it. i love using python ruby perl AND java so I guess that makes me a gay nigger loving jew. It annoys the shit out of me when people disregard them for being not as fast as other languages. I've been a wide range of languages since 1994 and it is so refreshing to have things to just work. I can pretty much keep my thinking to high level and not worry if my pointers are correct or jump through hoops to work with strings (C I'm looking at you).

Name: Anonymous 2006-08-29 22:19

C++ is the most practical for graphics and game programming since pretty much everyone uses it.

Name: Anonymous 2006-08-30 2:43

>>41

right answer, wrong logic

Name: Anonymous 2006-08-30 3:52 (sage)

>>40
writing shitty hello world "programs" in more than 1 useless language doesn't qualify as a "wide range"

Name: Anonymous 2006-08-30 7:52

>>40
You are a gay nigger loving jew because you like Java, not because you like Python or Ruby

Name: Anonymous 2006-08-30 9:09

>>33
NASA uses Python
NASA uses Python for most applications because it does a lot of error checking for you. Same reason the government uses Java for a lot of applications; you don't want things to start crashing or behaving oddly because you didn't do a bounds check for example, and in this case you certainly have the extra CPU cycles to spare.

But if you actually read my fucking post, you'd notice I didn't say "Talk to NASA"; I said "Talk to NASA about planetary astronomy". Accurate numerical integration of planetary orbits takes enormous computing power, and you can't use Python or Ruby because it's too damn slow. As >>35 said, they use Fortran or C.

Name: Anonymous 2006-08-30 9:16

>>40
Why do people keep doing this ridiculous rant? READ THE GOD DAMN OP'S POST:

game dev project
We know these languages are useful, and many of us use them all the time, but they have no place in this thread. You're an idiot because you think these fucking scripting languages should be used for everything.

Name: Anonymous 2006-08-30 9:17

>>46
Python and Ruby are not scripting languages

Name: Anonymous 2006-08-30 9:47

>>47
lol semantics

Name: Anonymous 2006-08-30 10:21

>>46
The programming language has no connection to the OP, whatever he's on about, I haven't even read the beginning of this thread.

Ruby CAN and SHOULD be used everywhere.  Using C, or assembler, or punchcards (which seem popular here) is PREMATURE OPTIMIZATION, which is BAD PRACTICE, and not an INDUSTRY STANDARD BEST PRACTICE... although I guess most ENTERPRISE GRADE HARD GAY SOLUTIONS are actually written in some crappy language from the beginning because they are led by stupid managers that think C++ will mean that their project will be finished early.

If you disagree, U GONA GET DROPT TO OPT!!!!

Name: Anonymous 2007-08-22 15:01 ID:Heaven

Name: Anonymous 2007-08-22 15:01 ID:Heaven

Name: Anonymous 2009-01-14 14:07

WHBTC

Name: Trollbot9000 2009-07-01 8:23


The past 12 months my depression has  escalated to the  point where I  could plug in  lights such as  this For such  questions go to  that board though.

Name: Anonymous 2010-12-20 17:16

Name: Anonymous 2011-02-03 4:44

Name: Sgt.Kabu잍謽kiman黎盾 2012-05-28 20:13

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List