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

Pages: 1-4041-

C books

Name: noobie 2010-05-17 0:25

I got The C Programming Language, and The C Answer Book (both second edition)

What should I expect?

I also got the C Toolbxo, copyright 1985.

Name: Anonymous 2010-05-17 0:32

C is obsolete. Learn C++ (C is a subset of C++ so the knowledge is applicable anyway). For learning C++, I highly recommend Herbert Schlidt's C++: A Beginner's Guide (ISBN 0-07-219467-7, Osborne/McGraw Hill, 2002).

Name: Anonymous 2010-05-17 0:33

You should expect to learn Haskell by the end of the season.

Name: Anonymous 2010-05-17 0:38

C is a subset of C++ so the knowledge is applicable anyway
that may have been in 1970, but it certainly hasn't been true any time since then.

Name: Anonymous 2010-05-17 0:44

>>4
This is what I figured, I see everyone saying systems and many game engines are still written in C.

For reference, I've watched some of the SICP videos. Great stuff.

>>3
Any specific reason you mention Haskell? Is it like a C with more functional/abstract programming?

Name: Anonymous 2010-05-17 1:01

>>5
Any specific reason you mention Haskell? Is it like a C with more functional/abstract programming?
Not even in the slightest.

HIBT?

Name: Anonymous 2010-05-17 1:05

>>6
No, no trolling.

Had to look up what that meant, I come from 4chan and just happened to get some C books >_>

Name: Anonymous 2010-05-17 1:12

I come from 4chan
please go back there.

Name: Anonymous 2010-05-17 1:15

>>8
But I thought programmers liked C, or talking about how shitty it is.

This is not a discussion board ;_;

Name: Anonymous 2010-05-17 2:06

>>9
A lot of people around here like C, but don't like talking about shitty C books. If you want to learn C, this is the way to do it: http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1256.pdf

Name: Anonymous 2010-05-17 12:20

>>10
"Committee Draft — Septermber 7, 2007"

Name: Anonymous 2010-05-17 12:31

The C Programming Language is for C89 whereas the current version of C is C99. Not recommended.

Name: Anonymous 2010-05-17 12:55

>>9
Nah, C is not/barely used for game engines anymore, C++ is preferred.

Name: Anonymous 2010-05-17 13:22

>>13
PREFER MY ANUS++

Name: Anonymous 2010-05-17 13:34

K&R is still the only book on C worth reading. If you're an idiot you can try to learn it by reading the standard (which >>10 tried to suggest, but messed up by linking to the wrong one), but the standard is by necessity littered with clutter useless to the beginner, and omits a lot of things you should know.

Ignore people like >>12-13. The only language they know is Sepples, and they think that means that everyone else should only be using that one as well.

Name: Anonymous 2010-05-17 13:56

>>13
With a few exceptions like Pokemon (C++) and Puzzle Quest (C, but mostly (lua?) scripted), very nearly 100% of DS titles are written in C.

Name: Anonymous 2010-05-17 14:01

>15
C++ doesn't even support C99 features so that makes no sense. The fact is that C has moved on since 89, but "The C Programming Language" has not.

Name: Anonymous 2010-05-17 14:05

>>17
C hasn't either. A small subset of morons who thought Sepples was an improvement over C decided to force some of their misfeatures into a new standard, and because the C community is on the whole sensible, that new standard has been widely ignored. There's a reason most compilers consider -ansi to mean C89, and it's not because people are lazy.

Name: Anonymous 2010-05-17 15:39

the standard (which >>10 tried to suggest, but messed up by linking to the wrong one)
the one >>10 linked to is the current ISO and ANSI standard (ISO 9899:1999 + TC1 + TC2 + TC3).
would you have preferred the latest C1x draft instead?

C hasn't either. A small subset of morons who thought Sepples was an improvement over C decided to force some of their misfeatures into a new standard, and because the C community is on the whole sensible, that new standard has been widely ignored.
ANSI disagrees with you. also, C99 is a huge improvement over C89 (which was itself a huge improvement over sepples), and C1x is going to be even better.
the only misfeature C99 copied from sepples was single-line comments, and if you don't use those, there's not any significant whitespace in the language.

Name: Anonymous 2010-05-17 15:49

>>16
How do you know this?
Also one of Sony's studios used Lisp in their PS2 games.
SONY WINS AGAIN

Name: Anonymous 2010-05-17 15:53

>>19
And inline variable declarations.

Name: Anonymous 2010-05-17 15:56

>>16
Pokemon uses C++? since when? I think it would be possible to verify this by examining the ROM, but I can't be bothered to find out.

Name: Anonymous 2010-05-17 15:59

>>20
That was Naughty Dog. They also switched to C++.
What does that tell you?

Name: Anonymous 2010-05-17 16:00

>>23
That people who write games for a living are the bottom of the barrel when it comes to programmers.

Name: Anonymous 2010-05-17 16:00

>>23
That enterprises like having their code bases in popular languages so they could more easily hire off random people for them?

Name: Anonymous 2010-05-17 16:02

>>23
Yes, that's why I said PS2 games. Well the guy who maintained their language left (one of the cofounders) so maybe that was one reason.

How do you know that most DS games are written in C? DO YOU WORK AT NINTENDO? TELL ME, IS METROID OTHER M GONNA BE AWESOME? I MUST KNOW!

Name: Anonymous 2010-05-17 16:04

>>26
You know that it's possible to find out almost everything you want about any game with the right reverse engineering skills? Finding out what compiler was used is usually trivial work.

Name: Anonymous 2010-05-17 16:06

>>21
ok, there are two misfeatures copied from sepples. but they don't affect your code if you don't use them. and things like VLAs, compound literals, and designated initializers more than make up for those.

Name: Anonymous 2010-05-17 16:06

>>26
Was it that Paul Grayham guy? I heard they rewrote everything in Java.

Name: Anonymous 2010-05-17 16:09

Name: Anonymous 2010-05-17 16:11

>>22
that explains why there are so many bugs...

Name: Anonymous 2010-05-17 16:13

>>19
No one gives a shit about your "significant whitespace". The pretence of being unable to differentiate between the space and the tab key is bad enough, but now you're going to tell us that your shit editor can't even display line breaks?
\n is at least as reasonable and practical as a comment terminator as any other ASCII character, so deal with it.

Name: Anonymous 2010-05-17 16:17

>>32
>>19 wasn't complaining about significant whitespace. that's just the only complaint anyone has about single-line comments.
if you look closely, >>19 was advocating C99 over C89.
please read more carefully before replying to posts in the future. we wouldn't want people to think the rest of us are that stupid.

Name: Anonymous 2010-05-17 16:19

>>32
You're a moron. Significant whitespace is fine in language that are designed to take advantage of it, like Python and Haskell. It isn't fine when it's suddenly inflicted on a language that hasn't had it, just to appease Sepples users who can't keep their bad habits to their own fucking language.

Name: Anonymous 2010-05-17 16:25

>>33
>>19 explicitly named single line comments as a `misfeature', and of his own accord, as no one else in the thread had brought it up.

>>34
And a deafening silence filled the room as absolutely nothing changed.  `Inflicted' would generally imply some kind of negative effect, so feel free to name any one.  Most C compilers already supported single line-line comments as an extension just for the heck of it anyway.

Name: Anonymous 2010-05-17 16:27

>>35
I bet you're one of these people who argues that Sepples is alright because if you're careful you can just write C in it. Maybe /pr/ would be a better place for you.

Name: Anonymous 2010-05-17 16:34

suddenly inflicted on a language that hasn't had it
actually, comments are removed by the preprocessor and the preprocessor has always had significant whitespace.
// blah blah
isn't really any different from
#comment blah blah
except that the first one works and the second one doesn't.

Name: Anonymous 2010-05-17 16:37

>>37
Comments can be removed by the preprocessor, but don't have to be. The preprocessor has always had significant newlines, and that's fine, but /**/ and // comments aren't preprocessor syntax. The former is pure C, the latter is Sepples.

Name: Anonymous 2010-05-17 16:40

>>38
the point is that C already had significant newlines and no one complained about it until sepples-style comments became part of the C standard (long after most C compilers implemented them as an extension).

Name: Anonymous 2010-05-17 16:42

>>39
The C preprocessor and C the language are separate things. C has never had significant newlines.
Standard-breaking behavior on the part of C compilers isn't something that should be considered a feature. GNU C is even worse than C99.

Name: Anonymous 2010-05-17 16:44

Comments can be removed by the preprocessor, but don't have to be.
sure, they don't have to be... but it doesn't make sense to do it any other way.

Name: Anonymous 2010-05-17 16:49

>>41
It does when you want a clear delineation between the two languages.

Name: Anonymous 2010-05-18 1:40

Is K&R really the best book?

Name: Anonymous 2010-05-18 1:48

>>43
Yes.

Name: Anonymous 2010-05-18 4:29

>>43
No.

Name: Anonymous 2010-05-18 9:11

>>43
The best book is SICP.

Name: Anonymous 2010-05-18 17:08

>>44
>>45
>>46

Okay.

Name: Anonymous 2011-02-03 6:55

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