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

GOOD C++ books

Name: LordRiordan 2007-01-04 11:27

For newbs that need a good book to learn from! (I have 2000 or so as it is :P) No dummies books, they blow.

Name: Anonymous 2007-01-20 14:02

>>38
Yeah it was good shit, but after you left we write "20KLOC v2.0", with riffles and stuff, all in 3D.

Name: Anonymous 2007-01-20 14:32

>>41
what's a riffle?

Name: Anonymous 2007-01-20 14:49

What's a good C++ book for people like me who've used C++ for at least 5 years?

I'm still stuck with that Deitel & Deitel book I bought in 1999, lol.  It was a decent (not great, not good, just "decent") enough book when I was a noob but now it's kind of... well I just don't want a bunch of cartoon ants teaching me C++ anymore.  Are there any C++ books targeted toward us more intermediate/advanced C++ programmers?

Name: Anonymous 2007-01-20 20:57

>>42
lol noob

Name: Anonymous 2007-01-21 2:38

>>43
Actualy mate, I have the same book and use it for refresher course somtimes just to buzzz the brain here and their.

The only issue im finding with most C++ books currently is they teach you the basic of the language. But don't teach you any modern design principle of smart pointers, design concepts, memory pools, and how to manage large complex projects.

Most of all the books are lacking in that last area. Allmost all of the books i've read have completly missed the point with exception handeling and error checking. Its a laugh really, that modern students who are learning C++ are just simply getting missled by alot of books out their.

I'm not suprised that the industry has moved to more friendlier languages like java or C#. If you take a deep hard look at books on C++ and anyalise them, you find they teach very bad programming practices in today's age.

I've yet to come accross a very good book that teaches good elegant design, from start to finish. Most of them are simply writen by university leactures who don't have any concept of the industry and software quality and reliability.

My 2 Cents, if you want to get in contact with me, post your email and i will contact you that way to discuss this topic further.

Name: Anonymous 2007-01-21 3:12

I use a set of C++ books.

The quickest return on the money is from Scott Meyer's Effective C++ series: Effective C++, More Effective C++ and Effective STL.
These cover modern C++, with smart pointers, RAII, etc.

For completeness, get the C++ STL book and the C++ language book.
The "Design and Evolution" book is also supposed to explain WTF Bjarne was thinking at times.

Name: Anonymous 2007-01-21 3:44

>>44
what's a noob?

Name: Anonymous 2007-01-21 4:58

>>47
Network Oriented Operating Book. A book that teaches you the basics about networking.

Name: Anonymous 2007-01-21 6:03

>>23
"There's absolutely nothing wrong with writing C.  Just don't call it C++..."

And fer God's sake do NOT mix and match C and C++ constructs in a program.

You'll make a future maintainer want to kill you *and* your children lest they become like you.

Name: Anonymous 2007-01-21 6:06

Stroustrop's "The C++ Programming Language"
Don't leave home without it.

Name: Anonymous 2007-01-21 13:57 (sage)

You guys are fucking morons.
Using C++ and not using the shit doesn't make it C++--.
It's still fucking C++.

Name: Anonymous 2007-01-21 13:58

>>49
>>do NOT mix and match C and C++ constructs in a program.

What's that supposed to mean?  I use classes when I need object-strong functionality, but I still use structs and unions in places where the situation is appropriate for the sake of terseness.

Name: Anonymous 2007-01-21 14:36

>>51
Please ignore the trolls ;)

Name: Anonymous 2007-01-21 14:41

do NOT mix and match C and C++ constructs in a program.
>>What's that supposed to mean?
Not what the last couple of you are thinking.  The biggest complaints with noobs are usually using C-standard headers without namespaces (or ignoring the C++ standard library on purpose); using namespace std; stupid use of malloc where new is just as good (or better); treating a class like a struct as a result of poor design (making everything with public access when you have no reason to).

Name: Anonymous 2007-01-21 14:56

>>54

Exactly the point I was trying to make. Thank you.

I shouldn't post after hacking on other peoples code for 19 hours straight. ;)

Name: Anonymous 2007-01-21 16:22

One of the problems with C++ and STL is that it isn't STANDARD. For alot of commercial packages, developers write their own library packages to suit their needs for the task at hand. The standard template is usefull when starting but when you need to corrilate a complete design persepective on your code, you just simply cannot do it with STL.

The next major problem is when you use STL your limited the version of the compiler and how it adhires to the standard. So the standard template library is infact not standard, it dependent on the compiler your using.

Go ahead be very arrogant that their is only one set way of development work in C++, and thats with the STL. But the truth of the matter is that the STL is very lacking in comformatity and simplcity to use, and doesn't have an good overview design perspective. To say otherwise just simply means you are a programmer and not a developer. Added to this, that the STL has to adhire to different compilers in what they can and cannot do. So when you get errors, god forsaken enjoy your debugging session.

Name: Anonymous 2007-01-21 18:23

C > C++-- > partial C++ > full C++

Name: Anonymous 2007-01-21 18:44

>>56

Yeah but then when you want to write your own containers or data structures to avoid this problem, and ask for help here (and other forums, though it's more retarded here), you get the cliche "LOL QUIT REINVENTING THE WHEEL AND USE THE STL" faggotry from people who don't know shit about shit.

Name: Anonymous 2007-01-21 18:55

Perhaps, instead of a good C++ book, we'd need good C++ students.

Name: Anonymous 2007-01-21 19:31

>>58

Yes i completly agree with you. I finding that with alot of produced C++ code is that the underlying design is wrong, so the implimentation becomes very complex. I just simply see it time and time again. Its frustrating to load STL up into all my packages and just see error occuring because people just don't have a good grasp on how to use it, because its freakn complex beast.

I read effective C++ today, and more effective C++, overall the book is nice. But the guy doesn't give an overview design how to handel things. He hints here and their on subjects and warnings. But gives no backup material for his comments. I think i just simply refers to the old saying 'if you can't do, you teach'. But its about 100% better than the crap i've been reading.

Name: Anonymous 2007-01-21 19:40

>>60

Is everything in the STL usually mucked up across implementations, or only the really hairy containers like hashtables and treemaps and such?  I've only used vectors so far in my game, but if worse comes to worst when I finish it and have troubles porting it, it shouldn't be hard to write my own resizeable array container.

I know for a fact John Carmack re-invents the wheel always specifically to make porting a cinch rather than a chore... sure, it adds a whole year of development time to a game when he COULD use the standard routines of C and C++, but it also makes *maintenance* easy -- when there's a bug in an id game, you immediately know, somewhere, it's id-caused, NOT caused by some third-party library or standard library routine has an unknown bug in it.

Name: Anonymous 2007-01-21 21:50

>>56

Where I work we standardize on a particular compiler to ensure that stuff like that doesn't happen.

Name: Anonymous 2007-01-21 22:04

>>61

Because C++ is machine dependent and compiler dependent, you have situation where STL on linux will be implimented differently than on visual studio 2003 or 2005. This is because of compilers and how they define how they will impliment the C++ standard. This is where suttle bugs creep in and your up to 4 in the morning trying to isolate bug. The STL advicates will jump on my back here, and say im wrong. Because i didnt have x.*** library file or **** compiler. I don't need that if i build my own and maintain my own flexible library that is compiler independent.

The way I see it, is that STL gets programmers to comform to a set standard of programing, and in my opinion is error prone and doesn't help. It just simply hides pointer behind iterators. What is really needed is a top down design of how you structure your library files and memory management.

One of the typical example is to have a look at the STL, auto_ptr. From the onset it looks like a good auto pointer, but this is where the STL forces the developer to conform to a bad design. The trouble with auto_ptr is that the ptr itself carries around the reference of the object. So to solve this issue they impliment a safe_ptr and also a nonsafe pointer, you have to type case between the two. The correct design is much more simplier and easier to maintain.

Please tell me you see the issue here. That from a poor design, you have a very complex implimentation. So either, you have the following options.

1. Use the STL, read up about all the books that show you how to use it, effectivly! but shouldn't it be easy to use right away?
2. Roll your own, read up on all the technical specifications that are needed and design a simple flexible system. You will come out of it better.

I really comes to preference really. Do you want to design software, or use API for the rest of your life? How come that John Carmack writes his own librarys, mabe because to his standard everthing else is poorly designed for what he needs?

Name: Anonymous 2007-01-21 22:08

>>62

So you let the vender lock you into one compiler? What happens if you need to sell your invention or system to another company that relys on a different compiler? Set the requirements so it only compiles with GCC 2.0 or VS 2003? Thats just scary.

Name: Anonymous 2007-01-22 3:39

Name: Anonymous 2007-01-22 5:32

STL sounds like STD

Name: Anonymous 2007-01-22 8:57

>>64

That is usually a pretty insignificant "what if"

Name: Anonymous 2007-01-22 13:10

>>63
Because C++ is machine dependent and compiler dependent

No, you don't get it, only the binary code compiled is machine dependant. That's because you're a noob.

you have situation where STL on linux will be implimented differently than on visual studio 2003 or 2005

Of course it's different, it's not written by the same guys, but the result is the same once it's executed.

This is because of compilers

No, this is because you're stupid, or because it's written in a different way, but it has nothing to do with the compiler.

auto_ptr

Auto_ptr sucks. Use boost::shared_ptr or something else.

Name: Anonymous 2007-01-22 21:42

>>68

Thats my whole entire point, IT ISNT STANDARD. It should really be renamed CTL, Compiler Template Library. It makes no sense, naming it standard when it isnt standard accross the broad with different compilers and diffirent implimentation. Such the only real alternative to the STL is to use Boost, although in my opinion its where all the old C++ compiler writers go to die.

C++ is machine dependent and compiler dependent you noob. Next time lookup your compiler specifications before you post crap.

Name: Anonymous 2010-12-10 9:42

Name: Sgt.KabuႬkiman㭬琇 2012-05-28 21:35

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

Name: Anonymous 2012-05-28 21:41

>>69
The interface to use STL is standard.

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