Wow, sounds like a really shitty book to me.dream_coder wrote:lol. Sorry this just makes me laugh. Not anything about u guys. Just that book I have been following "C++ through games programming". It briefly mentions arrays but for everything that could be stored in an array it uses a vector. Think Im definately going to be going through the other book before starting my own projects. From what I can gather from these forums "Beginning C++ through game programming" just teaches bad coding practice.
Is STL a neccisity
Moderator: Coders of Rage
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Re: Is STL a neccisity
- hurstshifter
- ES Beta Backer
- Posts: 713
- Joined: Mon Jun 08, 2009 8:33 pm
- Favorite Gaming Platforms: SNES
- Programming Language of Choice: C/++
- Location: Boston, MA
- Contact:
Re: Is STL a neccisity
For real. There should AT LEAST be an entire chapter dedicated to arrays.GyroVorbis wrote:Wow, sounds like a really shitty book to me.dream_coder wrote:lol. Sorry this just makes me laugh. Not anything about u guys. Just that book I have been following "C++ through games programming". It briefly mentions arrays but for everything that could be stored in an array it uses a vector. Think Im definately going to be going through the other book before starting my own projects. From what I can gather from these forums "Beginning C++ through game programming" just teaches bad coding practice.
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
http://www.thenerdnight.com
- GroundUpEngine
- Chaos Rift Devotee
- Posts: 835
- Joined: Sun Nov 08, 2009 2:01 pm
- Current Project: mixture
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Location: UK
Re: Is STL a neccisity
Tru dat.hurstshifter wrote:For real. There should AT LEAST be an entire chapter dedicated to arrays.GyroVorbis wrote:Wow, sounds like a really shitty book to me.dream_coder wrote:lol. Sorry this just makes me laugh. Not anything about u guys. Just that book I have been following "C++ through games programming". It briefly mentions arrays but for everything that could be stored in an array it uses a vector. Think Im definately going to be going through the other book before starting my own projects. From what I can gather from these forums "Beginning C++ through game programming" just teaches bad coding practice.
- MrDeathNote
- ES Beta Backer
- Posts: 594
- Joined: Sun Oct 11, 2009 9:57 am
- Current Project: cocos2d-x project
- Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
- Programming Language of Choice: C/++
- Location: Belfast, Ireland
- Contact:
Re: Is STL a neccisity
Lol i did tell you in the first reply that it was the worst programming book i've ever read. It's not a bad coding practice it teaches, its fucking appauling. I'd have to say the worst thing it does is completely ignore OOP, every program in it is one class. And according to the author, creating programs with separate classes is beyond the scope of the book. I've never heard such utter bullshit in my life.dream_coder wrote:lol. Sorry this just makes me laugh. Not anything about u guys. Just that book I have been following "C++ through games programming". It briefly mentions arrays but for everything that could be stored in an array it uses a vector. Think Im definately going to be going through the other book before starting my own projects. From what I can gather from these forums "Beginning C++ through game programming" just teaches bad coding practice.
http://www.youtube.com/user/MrDeathNote1988
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
-
- Chaos Rift Newbie
- Posts: 34
- Joined: Sat Mar 27, 2010 5:16 pm
Re: Is STL a neccisity
True you did. Its a shame really because Pointer and References are explained pretty well.
- RyanPridgeon
- Chaos Rift Maniac
- Posts: 447
- Joined: Sun Sep 21, 2008 1:34 pm
- Current Project: "Triangle"
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C/C++
- Location: UK
- Contact:
Re: Is STL a neccisity
Most of the time strings are just as fast as char[].Ginto8 wrote:(for example, std::string's are a lot slower and resource-hogging than dynamic char arrays,avansc wrote:Here, I'll actually answer the question.
No, STL is NOT a necessity.
STL is good when used well
- Bullet Pulse
- Chaos Rift Cool Newbie
- Posts: 89
- Joined: Sun Feb 21, 2010 6:25 pm
Re: Is STL a neccisity
The Beginning C++ Through Game Programming book will teach you almost all of the things you need to know to start learning SDL or another API.
However, it will take experimentation on your part to learn the book, because it is brief.
But as a programmer, you should be doing that anyway.
So good luck, and remember that it's important to test your knowledge by making programs that implement the things you are learning in whatever book you choose to learn from.
However, it will take experimentation on your part to learn the book, because it is brief.
But as a programmer, you should be doing that anyway.
So good luck, and remember that it's important to test your knowledge by making programs that implement the things you are learning in whatever book you choose to learn from.
- MrDeathNote
- ES Beta Backer
- Posts: 594
- Joined: Sun Oct 11, 2009 9:57 am
- Current Project: cocos2d-x project
- Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
- Programming Language of Choice: C/++
- Location: Belfast, Ireland
- Contact:
Re: Is STL a neccisity
Are you telling him to keep learning from a book that encourages bad programming practice? Just because the books brief doesn't mean it should be shit. It's the same length as Accelerated c++ practical programming by example which covers things like using header files/template classes/friend classes/STL and shitloads more that aren't covered in Beginning C++ Through Game Programming.Bullet Pulse wrote:The Beginning C++ Through Game Programming book will teach you almost all of the things you need to know to start learning SDL or another API.
However, it will take experimentation on your part to learn the book, because it is brief.
But as a programmer, you should be doing that anyway.
So good luck, and remember that it's important to test your knowledge by making programs that implement the things you are learning in whatever book you choose to learn from.
http://www.youtube.com/user/MrDeathNote1988
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup