Should I get some more general books, like "advanced self-teaching," or
can I start on specialized books like "Linux game programming?"
Any book recommendations?
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
1/30/2005 10:22:55 PM |
|
"Jacob Oost" <zork@columbus.rr.com> wrote
> Should I get some more general books, like "advanced self-teaching," or
> can I start on specialized books like "Linux game programming?"
>
> Any book recommendations?
>
C Unleashed, by Richard Heathfield and others, fills a gap between "C for
beginners" and specialised works like "3D graphics in C".
Try writing a few simple 2d games to get into the swing of games
programming. You might find that something like draughts is a bit harder to
write than it looks.
|
|
0
|
|
|
|
Reply
|
Malcolm
|
1/30/2005 10:40:51 PM
|
|
Malcolm wrote:
> C Unleashed, by Richard Heathfield and others, fills a gap between "C for
> beginners" and specialised works like "3D graphics in C".
>
> Try writing a few simple 2d games to get into the swing of games
> programming. You might find that something like draughts is a bit harder to
> write than it looks.
Thanks for the suggestions. I was thinking of writing a program to
decode the cryptoquip (by counting the occurences of numbers and
comparing them to a table of the most commonly-used letters in English),
and then a text adventure engine (I have never seen the source code for
a text adventure yet, I'm curious how they do it, I imagine some kind of
multi-branching linked list).
I'm a little worried that I might need to go take a calculus class when
I eventually get into 3D! I want to make my own raytracer.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
1/30/2005 10:45:26 PM
|
|
Don't know what other programming history you have (just that you're a
geek =) ), so assuming that this is your first language--or at least
first language where the intent is to do more than 50 line
scripts--would be to get some algorithm books and to get a "Programming
for your OS" book. Just getting a hand on creating a window and
plotting pixels or moving a box shape around the window without flicker
can be tough enough when just beginning, without even getting into
complicated math.
Another fun one is a recursive function that will search through all
directories on your computer for a certain file.
-Chris
|
|
0
|
|
|
|
Reply
|
thesagerat (66)
|
1/31/2005 12:27:33 AM
|
|
Chris Williams wrote:
> Don't know what other programming history you have (just that you're a
> geek =) ),
A few C++ and Java classes, that's it. I'm on C now and I've forgotten
most of what I learned about C++ and Java anyway (except that I hated Java).
Once I get comfortable with C I intend to learn assembly. Programming
is a hobby for me, not a job.
> so assuming that this is your first language--or at least
> first language where the intent is to do more than 50 line
> scripts--would be to get some algorithm books and to get a "Programming
> for your OS" book. Just getting a hand on creating a window and
> plotting pixels or moving a box shape around the window without flicker
> can be tough enough when just beginning, without even getting into
> complicated math.
>
I have a book laying around, "Linux Programming," and it's thicker than
my wrist. Not sure I really want to go through all of that, especially
since I'm really only interested in graphics.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
1/31/2005 2:57:33 AM
|
|
On Mon, 31 Jan 2005 02:57:33 GMT, Jacob Oost <zork@columbus.rr.com>
wrote:
> Chris Williams wrote:
> > Don't know what other programming history you have (just that you're a
> > geek =) ),
>
> A few C++ and Java classes, that's it. I'm on C now and I've forgotten
> most of what I learned about C++ and Java anyway (except that I hated Java).
>
> Once I get comfortable with C I intend to learn assembly. Programming
> is a hobby for me, not a job.
>
> > so assuming that this is your first language--or at least
> > first language where the intent is to do more than 50 line
> > scripts--would be to get some algorithm books and to get a "Programming
> > for your OS" book. Just getting a hand on creating a window and
> > plotting pixels or moving a box shape around the window without flicker
> > can be tough enough when just beginning, without even getting into
> > complicated math.
> >
>
> I have a book laying around, "Linux Programming," and it's thicker than
> my wrist. Not sure I really want to go through all of that, especially
> since I'm really only interested in graphics.
How broader the base of the pyramid, how higher it can become.
Make sure you keep your base as wide as possible when you start.
Focussing only on one topic right from the beginning will make you a
very narrow minded programmer. There are just to many fields,topics
that intermix...
g00dlUck..
Jig.
|
|
0
|
|
|
|
Reply
|
jiggly (1)
|
1/31/2005 3:23:29 AM
|
|
jiggly wrote:
> How broader the base of the pyramid, how higher it can become.
>
> Make sure you keep your base as wide as possible when you start.
> Focussing only on one topic right from the beginning will make you a
> very narrow minded programmer. There are just to many fields,topics
> that intermix...
>
> g00dlUck..
>
> Jig.
Seriously, I could beat somebody to death with this book. But I suppose
I'll give it a try. If I get bored after the first one hundred pages
I'll switch to something else.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
1/31/2005 3:47:03 AM
|
|
Jacob Oost wrote:
>
> I'm a little worried that I might need to go take a calculus class when
> I eventually get into 3D! I want to make my own raytracer.
>
Make that Linear Algebra(Which requires at least 1 calculus as a
prerequisite).
You will really benefit from a structured CS program if you want to do 3D
programming. You can look at my WWW to see the project I just did for my
OpenGL class.
--
WWW: http://haywire.csuhayward.edu/~jwells2
spinmaster ._______________________________________________________.
@ |When you are right you cannot be too radical; |
gmail.com |when you are wrong, you cannot be too conservative. MLK|
|
|
0
|
|
|
|
Reply
|
spinmaster (13)
|
1/31/2005 4:48:59 AM
|
|
"Jacob Oost" <zork@columbus.rr.com> wrote in message
news:XShLd.68822$re1.68257@fe2.columbus.rr.com...
> jiggly wrote:
> > How broader the base of the pyramid, how higher it can become.
> >
> > Make sure you keep your base as wide as possible when you start.
> > Focussing only on one topic right from the beginning will make you a
> > very narrow minded programmer. There are just to many fields,topics
> > that intermix...
> >
> > g00dlUck..
> >
> > Jig.
>
>
> Seriously, I could beat somebody to death with this book. But I suppose
> I'll give it a try. If I get bored after the first one hundred pages
> I'll switch to something else.
No offense intended, but that attitude makes me
question whether you have sufficient motivation
to learn to become a good programmer. A mere
hundred pages of a single book about a single
topic is an extremely small fraction of what you'd
need study. Especially if one of your goals is
something as complex as 3D graphics.
$.02,
-Mike
|
|
0
|
|
|
|
Reply
|
mkwahler (3821)
|
1/31/2005 7:13:46 AM
|
|
Jacob Oost <zork@columbus.rr.com> wrote:
> Chris Williams wrote:
> > Don't know what other programming history you have (just that you're a
> > geek =) ),
>
> A few C++ and Java classes, that's it. I'm on C now and I've forgotten
> most of what I learned about C++ and Java anyway (except that I hated Java).
Have you read "The C Programming Language", 2nd edition, by Brian
Kernighan and Dennis Ritchie? It's _the_ book on C.
Richard
|
|
0
|
|
|
|
Reply
|
rlb (4118)
|
1/31/2005 8:46:14 AM
|
|
On Sun, 30 Jan 2005 22:45:26 GMT, Jacob Oost
<zork@columbus.rr.com> wrote:
> Thanks for the suggestions. I was thinking of writing a program to
> decode the cryptoquip (by counting the occurences of numbers and
> comparing them to a table of the most commonly-used letters in English),
> and then a text adventure engine (I have never seen the source code for
> a text adventure yet, I'm curious how they do it, I imagine some kind of
> multi-branching linked list).
A numboer of them use a "game engine", which is an interpreter. Do a
Google search for "infocom" and "frotz", I know there is C source for
that (for Linux and DJGPP among others). But the code is not very
readable as I recall. Somewhere there is code for the original
"Colossal Cave" adventure as well...
(I note your email address, Infocom were the people who did Zork among
others.)
> I'm a little worried that I might need to go take a calculus class when
> I eventually get into 3D! I want to make my own raytracer.
If you want to do 3D (or even 2D) "real world" type programs then
calculus is rather useful. In fact if you're interested in any
mathematical modelling of "real world" stuff I'd advise it, if only so
you know what other people are talking about!
Writing a raytracer (or interactive games for that matter) is more about
knowing 'tricks' or shortcuts and algorithms than about raw mathematics,
bacause the 'obvious' (to a mathematician) route generally takes ages.
At the very least, you'll need to know about things like Fast Fourier
Transforms and other numerical methods, which aren't likely to be
covered in normal math classes (below degree course level, anyway).
Which is all off topic here, because it's about algorithms rather than
which language they are written in. Some newsgroups which may be more
helpful:
comp.games.development.programming.{misc,algorithms}
comp.sources.games
Chris C
|
|
0
|
|
|
|
Reply
|
chris23 (644)
|
1/31/2005 9:29:42 AM
|
|
On Mon, 31 Jan 2005 02:57:33 GMT, Jacob Oost
<zork@columbus.rr.com> wrote:
> Once I get comfortable with C I intend to learn assembly. Programming
> is a hobby for me, not a job.
It's both for me <g>.
> I have a book laying around, "Linux Programming," and it's thicker than
> my wrist. Not sure I really want to go through all of that, especially
> since I'm really only interested in graphics.
Unless you want to stick with one system (Windows, X, whatever) then
look at some of the already written multi-platform graphics libraries
which present a common interface to the application (and like swans
paddle furiously underneath).
If you want X graphics (Linux and other Unices) look at the O'Reilly
books on X programming (they're thick as well!), email me off-group for
some examples of libraries and books (it's off-topic here).
Chris C
|
|
0
|
|
|
|
Reply
|
chris23 (644)
|
1/31/2005 9:37:07 AM
|
|
Jacob Oost wrote:
> Should I get some more general books, like "advanced self-teaching," or
> can I start on specialized books like "Linux game programming?"
>
> Any book recommendations?
I can only recommend some of what I have read or am reading.1):
* The C Programming Language, 2nd edition, Kernighan and Ritchie
* C Unleashed, Richard Heathfield, Lawrence Kirby, Ben Pfaff,
Jack Klein, et al. (This is one awesome book and is written
by people including c.l.c. regulars.)
* The ISO/IEC 9899:1999 C Standard (Buy the PDF for $18
from here:
http://webstore.ansi.org/ansidocstore/product.asp?sku=INCITS%2FISO%2FIEC+9899%2D1999
) or get the n869.pdf and n869.txt files from one of the
links in my sig.
* Practical C Programming, 3rd edition, Steve Oualline
* Apart from these, there are several good articles
available on the Internet and USENET (all good reading).
There are too many of those to enlist here, so I'll leave that
to Google. (Look for articles by Richard Heathfield,
Chris Torek, Eric Giguere, Bruce Dawson, Peter Seebach,
David Goldberg, etc.)
-----
1) Stay away from anything written by Herb Schildt.
There are innumerable errors in his books (even entire
chapters are wrong!). ("Teach Yourself..." Is that the
one written by the same clown?)
-----
Regards,
Jonathan.
--
C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
C Library: http://www.dinkumware.com/refxc.html
C99 Standard Draft: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n869/
Common C Programming Errors:
http://www.drpaulcarter.com/cs/common-c-errors.php
Email: "jonathan [period] burd [commercial-at] gmail [period] com" sans-WSP
"We must do something. This is something. Therefore, we must do this."
- Keith Thompson
|
|
0
|
|
|
|
Reply
|
jburd (21)
|
1/31/2005 9:44:45 AM
|
|
Jacob Oost wrote:
> Should I get some more general books, like "advanced self-teaching," or
> can I start on specialized books like "Linux game programming?"
>
> Any book recommendations?
Some must-reads are:
- The Practice of Programming, by Kerighan&Pike.
- Code Complete, by Steve McConnell. I haven't read the second edition,
but customer reviews on Amazon indicate that it still is an excellent book.
- Programming Pearls is also very good, but maybe not ideal for beginners?
Bj�rn
|
|
0
|
|
|
|
Reply
|
boa11 (125)
|
1/31/2005 9:55:17 AM
|
|
Jonathan Burd wrote:
> Jacob Oost wrote:
>
<snip>
http://publications.gbdirect.co.uk/c_book/ is something I'm
going through now.
Be warned: It's an old book and not all code may be on par with
the current standard, but it has been made available online for free.
Regards,
Jonathan.
--
Email: "jonathan [period] burd [commercial-at] gmail [period] com" sans-WSP
"We must do something. This is something. Therefore, we must do this."
- Keith Thompson
|
|
0
|
|
|
|
Reply
|
jburd (21)
|
1/31/2005 10:10:57 AM
|
|
Chris Croughton <chris@keristor.net> wrote:
> On Sun, 30 Jan 2005 22:45:26 GMT, Jacob Oost
> <zork@columbus.rr.com> wrote:
>
> > Thanks for the suggestions. I was thinking of writing a program to
> > decode the cryptoquip (by counting the occurences of numbers and
> > comparing them to a table of the most commonly-used letters in English),
> > and then a text adventure engine (I have never seen the source code for
> > a text adventure yet, I'm curious how they do it, I imagine some kind of
> > multi-branching linked list).
>
> A numboer of them use a "game engine", which is an interpreter. Do a
> Google search for "infocom" and "frotz", I know there is C source for
> that (for Linux and DJGPP among others). But the code is not very
> readable as I recall. Somewhere there is code for the original
> "Colossal Cave" adventure as well...
But not, originally, in C. Advent was written in Fortran. The original
Infocom games were written in ZIL, which was a kind of MDL, which was a
Lisp-like language. I've no idea what their 'terps were written in.
Modern ZMachine games are often written in Inform, which is not
Lisp-like at all, but a slightly C-like, somewhat object-oriented
language; modern 'terps are often written in C, and, on-topically, in
theory one could probably write a primitive but conforming 'terp in ISO
C alone.
Richard
|
|
0
|
|
|
|
Reply
|
rlb (4118)
|
1/31/2005 4:46:16 PM
|
|
Jacob Oost wrote:
> Malcolm wrote:
> > C Unleashed, by Richard Heathfield and others, fills a gap between
"C for
> > beginners" and specialised works like "3D graphics in C".
> >
> > Try writing a few simple 2d games to get into the swing of games
> > programming. You might find that something like draughts is a bit
harder to
> > write than it looks.
>
> Thanks for the suggestions. I was thinking of writing a program to
> decode the cryptoquip (by counting the occurences of numbers and
> comparing them to a table of the most commonly-used letters in
English),
> and then a text adventure engine (I have never seen the source code
for
> a text adventure yet, I'm curious how they do it, I imagine some kind
of
> multi-branching linked list).
Depends on the text-adventure game. The most common ones are the ones
based on a sort of virtual machine. Then the code is actually written
some sort of language the virtual machine uses. One of the most popular
is Inform, which was sort of reverse-engineered from the system Infocom
(Zork et al) used many years ago.
Naturally, if you are doing your own game, you need not do it that way.
Your goal would be to develop skills, not write games as efficiently
and portably as possible.
Text games are well-suited for this task. You would need to deal with
most of the common software engineering issues: data storage, data
management, input parsing, decision-making, error-handling, all that
good stuff.
Brian
|
|
0
|
|
|
|
Reply
|
defaultuserbr (3657)
|
1/31/2005 9:04:41 PM
|
|
Mike Wahler wrote:
>>Seriously, I could beat somebody to death with this book. But I suppose
>>I'll give it a try. If I get bored after the first one hundred pages
>>I'll switch to something else.
>
>
> No offense intended, but that attitude makes me
> question whether you have sufficient motivation
> to learn to become a good programmer. A mere
> hundred pages of a single book about a single
> topic is an extremely small fraction of what you'd
> need study. Especially if one of your goals is
> something as complex as 3D graphics.
I have the sufficient motivation to become a good programmer in software
that interests me, which is mainly graphics. While I do want to learn
more advanced C stuff, I'm not sure I want to go through an 800 page
book on general Linux programming at this moment. What's the harm in
putting it off, especially if it is just "an extremely small fraction"
of what I need to study?
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
2/1/2005 12:15:38 AM
|
|
Richard Bos wrote:
>>A few C++ and Java classes, that's it. I'm on C now and I've forgotten
>>most of what I learned about C++ and Java anyway (except that I hated Java).
>
>
> Have you read "The C Programming Language", 2nd edition, by Brian
> Kernighan and Dennis Ritchie? It's _the_ book on C.
>
> Richard
I'd like to get it if I can find it for cheap.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
2/1/2005 12:16:29 AM
|
|
Jason Wells wrote:
>>I'm a little worried that I might need to go take a calculus class when
>> I eventually get into 3D! I want to make my own raytracer.
>>
>
>
> Make that Linear Algebra(Which requires at least 1 calculus as a
> prerequisite).
>
Actually I'm not in college or anything, I just have some books on
programming. I've learned algebra and calculus, but forgotten a lot of
it. I prefer to study at home rather than in a class room. I've
already learned more in a few weeks than I did in months of classes.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
2/1/2005 12:22:45 AM
|
|
Chris Croughton wrote:
> A numboer of them use a "game engine", which is an interpreter. Do a
> Google search for "infocom" and "frotz", I know there is C source for
> that (for Linux and DJGPP among others). But the code is not very
> readable as I recall. Somewhere there is code for the original
> "Colossal Cave" adventure as well...
>
If it's not readable then screw it. If there's one thing I intend to do
as a programmer it is to make my code readable and easy to upgrade.
> (I note your email address, Infocom were the people who did Zork among
> others.)
>
Believe it or not, I only ever got into the graphical Zork games. I
liked the text adventures when I was younger, but now that I've played
so many LucasArts adventure games, it's frustrating to play an adventure
where you can die or make irreparable mistakes.
> If you want to do 3D (or even 2D) "real world" type programs then
> calculus is rather useful. In fact if you're interested in any
> mathematical modelling of "real world" stuff I'd advise it, if only so
> you know what other people are talking about!
>
My problem with math is I tend to quickly forget it after learning. I
took two calculus classes and now I can't do a simple derivative by hand
(though I remember some of the rules for doing it in your head).
> Writing a raytracer (or interactive games for that matter) is more about
> knowing 'tricks' or shortcuts and algorithms than about raw mathematics,
> bacause the 'obvious' (to a mathematician) route generally takes ages.
> At the very least, you'll need to know about things like Fast Fourier
> Transforms and other numerical methods, which aren't likely to be
> covered in normal math classes (below degree course level, anyway).
>
As computers get faster though, real-time ray-tracing and radiosity
(instead of gimmicks to imitate them) will be standard.
> Which is all off topic here, because it's about algorithms rather than
> which language they are written in. Some newsgroups which may be more
> helpful:
>
> comp.games.development.programming.{misc,algorithms}
> comp.sources.games
>
> Chris C
Hold on, I just finished learning the preprocessor macros! I still
don't know anything about writing "real" programs. Unfortunately my
library is pretty slim on what they offer for programmers, and most of
the books I've seen in stores or have at home are just "this function
does this, and that function does that," with few source examples.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
2/1/2005 12:28:40 AM
|
|
Jonathan Burd wrote:
> -----
> 1) Stay away from anything written by Herb Schildt.
> There are innumerable errors in his books (even entire
> chapters are wrong!). ("Teach Yourself..." Is that the
> one written by the same clown?)
I have "Teach Yourself C in 24 Hours," by Tony Zhang. It was a basic
primer on the language, but not on actual software engineering,
organizing projects, style, etc.
--
----- BEGIN GEEK CODE BLOCK -----
Version 3.1
GAT d? !s !a C++++ UL+ P L++ E- W+ N+ o-- K- w--
O- !M !V PS-- PE++ Y+ PGP- t++>++++* 5? !X-- R- tv b++ DI+ D++
G e !h !r !y
...... END GEEK CODE BLOCK ----
|
|
0
|
|
|
|
Reply
|
zork (98)
|
2/1/2005 12:31:01 AM
|
|
Jacob Oost <zork@columbus.rr.com> writes:
> Richard Bos wrote:
>>> A few C++ and Java classes, that's it. I'm on C now and I've
>>> forgotten most of what I learned about C++ and Java anyway (except
>>> that I hated Java).
>> Have you read "The C Programming Language", 2nd edition, by Brian
>> Kernighan and Dennis Ritchie? It's _the_ book on C.
>> Richard
>
> I'd like to get it if I can find it for cheap.
There are many resources on the net for finding cheap books.
(I'm afraid comp.lang.c isn't one of them.)
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
|
|
0
|
|
|
|
Reply
|
kst-u (21474)
|
2/1/2005 12:41:19 AM
|
|
Jacob Oost wrote:
> Jason Wells wrote:
>>>I'm a little worried that I might need to go take a calculus class when
>>> I eventually get into 3D! I want to make my own raytracer.
>>>
>>
>>
>> Make that Linear Algebra(Which requires at least 1 calculus as a
>> prerequisite).
>>
>
> Actually I'm not in college or anything, I just have some books on
> programming. I've learned algebra and calculus, but forgotten a lot of
> it. I prefer to study at home rather than in a class room. I've
> already learned more in a few weeks than I did in months of classes.
>
The algebra you have learned has very little to do with Linear
Algebra(Matrices)... Maybe you could check out some of the math for
computer graphics books.
--
WWW: http://haywire.csuhayward.edu/~jwells2
spinmaster ._______________________________________________________.
@ |When you are right you cannot be too radical; |
gmail.com |when you are wrong, you cannot be too conservative. MLK|
|
|
0
|
|
|
|
Reply
|
spinmaster (13)
|
2/1/2005 2:51:06 AM
|
|
Jacob Oost <zork@columbus.rr.com> wrote:
> Richard Bos wrote:
> >>A few C++ and Java classes, that's it. I'm on C now and I've forgotten
> >>most of what I learned about C++ and Java anyway (except that I hated Java).
> >
> > Have you read "The C Programming Language", 2nd edition, by Brian
> > Kernighan and Dennis Ritchie? It's _the_ book on C.
>
> I'd like to get it if I can find it for cheap.
Get this one even if you can find it for the normal price. It's well
worth it.
Richard
|
|
0
|
|
|
|
Reply
|
rlb (4118)
|
2/1/2005 7:40:03 AM
|
|
"Jacob Oost" <zork@columbus.rr.com> wrote in message
news:KSzLd.6376$Wi6.1584@fe2.columbus.rr.com...
> Mike Wahler wrote:
> >>Seriously, I could beat somebody to death with this book. But I suppose
> >>I'll give it a try. If I get bored after the first one hundred pages
> >>I'll switch to something else.
> >
> >
> > No offense intended, but that attitude makes me
> > question whether you have sufficient motivation
> > to learn to become a good programmer. A mere
> > hundred pages of a single book about a single
> > topic is an extremely small fraction of what you'd
> > need study. Especially if one of your goals is
> > something as complex as 3D graphics.
>
> I have the sufficient motivation
Motivation implies that you're willing to exert
the necessary effort.
> to become a good programmer in software
> that interests me, which is mainly graphics. While I do want to learn
> more advanced C stuff, I'm not sure I want to go through an 800 page
> book on general Linux programming at this moment. What's the harm in
> putting it off, especially if it is just "an extremely small fraction"
> of what I need to study?
I gave my best advice, based upon thirty-five years of
my experiences learning about programming.
Take it or leave it. :-)
-Mike
|
|
0
|
|
|
|
Reply
|
mkwahler (3821)
|
2/1/2005 8:14:09 AM
|
|
Jacob Oost <zork@columbus.rr.com> wrote:
> Should I get some more general books, like "advanced self-teaching," or
> can I start on specialized books like "Linux game programming?"
>
> Any book recommendations?
I found _A_Book_on_C_ rather interesting, if a tad out of date
(last edition published in 1997, so no C99).
Others have recommened _C_Unleashed_, which is an excellent book
and I'm happy to own my copy.
OT: You want a good algorithm book.
PS: Try ebay and amazon.com for used books, the price is often
cheaper. K&R sells for $42.00 new (Amazon), but the lowest used
price is $24.95. Or try a public library system, if available in
your area. There are often services available at local libraries
to find and borrow books from remote libraries.
--
With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where they
are going to land, and it could be dangerous sitting under them
as they fly overhead. -- RFC 1925
|
|
0
|
|
|
|
Reply
|
meyer_spammenot_ (17)
|
2/1/2005 8:30:16 AM
|
|
In article <95ALd.6381$Wi6.5795@fe2.columbus.rr.com>, zork@columbus.rr.com
says...
> Jonathan Burd wrote:
> > -----
> > 1) Stay away from anything written by Herb Schildt.
> > There are innumerable errors in his books (even entire
> > chapters are wrong!). ("Teach Yourself..." Is that the
> > one written by the same clown?)
>
> I have "Teach Yourself C in 24 Hours," by Tony Zhang. It was a basic
> primer on the language, but not on actual software engineering,
> organizing projects, style, etc.
Perhaps you will be fortunate enough to forget most of that one soon.
--
Randy Howard (2reply remove FOOBAR)
|
|
0
|
|
|
|
Reply
|
randyhoward (3272)
|
2/1/2005 8:28:46 PM
|
|
Jacob Oost wrote:
> Richard Bos wrote:
>
>>> A few C++ and Java classes, that's it. I'm on C now and I've
>>> forgotten most of what I learned about C++ and Java anyway (except
>>> that I hated Java).
>>
>>
>>
>> Have you read "The C Programming Language", 2nd edition, by Brian
>> Kernighan and Dennis Ritchie? It's _the_ book on C.
>>
>> Richard
>
>
> I'd like to get it if I can find it for cheap.
>
List price is cheap. It's about $40 anywhere you go.
--
Joe Wright mailto:joewwright@comcast.net
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
|
|
0
|
|
|
|
Reply
|
joewwright (1737)
|
2/1/2005 11:21:36 PM
|
|
In article <41fe5f05.12406349@news.individual.net>,
Richard Bos <rlb@hoekstra-uitgeverij.nl> wrote:
>Chris Croughton <chris@keristor.net> wrote:
>
>> On Sun, 30 Jan 2005 22:45:26 GMT, Jacob Oost
>> <zork@columbus.rr.com> wrote:
>>
>> > Thanks for the suggestions. I was thinking of writing a program to
>> > decode the cryptoquip (by counting the occurences of numbers and
>> > comparing them to a table of the most commonly-used letters in English),
>> > and then a text adventure engine (I have never seen the source code for
>> > a text adventure yet, I'm curious how they do it, I imagine some kind of
>> > multi-branching linked list).
>>
>> A numboer of them use a "game engine", which is an interpreter. Do a
>> Google search for "infocom" and "frotz", I know there is C source for
>> that (for Linux and DJGPP among others). But the code is not very
>> readable as I recall. Somewhere there is code for the original
>> "Colossal Cave" adventure as well...
>
>But not, originally, in C. Advent was written in Fortran. The original
>Infocom games were written in ZIL, which was a kind of MDL, which was a
>Lisp-like language. I've no idea what their 'terps were written in.
The original code in MDL is, as far as I can tell, still a trade
secret, after more than 25 years.
I have the code for what I know as dungeons, aka Zork on my site.
http://home.hccnet.nl/a.w.m.van.der.horst/games.html
It is in fact a 1991 source intended for MSDOS, but after conversion
to Unix text files, it compiles perfectly on Linux, gcc.
It is a testament to the practical portability of C.
I didn't want to look into the source (I want to play it, and don't
want spoilers) but I didn't need to. So I don't know whether it is
a good idea to study it.
<SNIP>
>Richard
--
Groetjes Albert
--
Albert van der Horst,Oranjestr 8,3511 RA UTRECHT,THE NETHERLANDS
One man-hour to invent,
One man-week to implement,
One lawyer-year to patent.
|
|
0
|
|
|
|
Reply
|
albert37 (2988)
|
2/13/2005 11:44:24 AM
|
|
Albert van der Horst wrote:
> Richard Bos <rlb@hoekstra-uitgeverij.nl> wrote:
>
.... snip ...
>>
>> But not, originally, in C. Advent was written in Fortran. The
>> original Infocom games were written in ZIL, which was a kind of
>> MDL, which was a Lisp-like language. I've no idea what their
>> 'terps were written in.
>
> The original code in MDL is, as far as I can tell, still a trade
> secret, after more than 25 years.
> I have the code for what I know as dungeons, aka Zork on my site.
>
> http://home.hccnet.nl/a.w.m.van.der.horst/games.html
>
> It is in fact a 1991 source intended for MSDOS, but after
> conversion to Unix text files, it compiles perfectly on Linux,
> gcc. It is a testament to the practical portability of C.
> I didn't want to look into the source (I want to play it, and
> don't want spoilers) but I didn't need to. So I don't know
> whether it is a good idea to study it.
The secrets are in the encoded .dat file, so reading the source
won't spoil your fun. At a first glance it seems fairly nicely
organized, but could do with advancing to C89 standards. Lots of
warnings under -ansi -pedantic, but none extremely serious, and the
result compiles and runs under DJGPP/windoze.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
|
|
0
|
|
|
|
Reply
|
cbfalconer (19183)
|
2/13/2005 11:56:39 PM
|
|
Albert van der Horst <albert@spenarnc.xs4all.nl> wrote:
> In article <41fe5f05.12406349@news.individual.net>,
> Richard Bos <rlb@hoekstra-uitgeverij.nl> wrote:
> >But not, originally, in C. Advent was written in Fortran. The original
> >Infocom games were written in ZIL, which was a kind of MDL, which was a
> >Lisp-like language. I've no idea what their 'terps were written in.
>
> The original code in MDL is, as far as I can tell, still a trade
> secret, after more than 25 years.
The original code is in ZIL, not in MDL (there are quite a few
differences), and they aren't so much a trade secret as simply lost in
the mist of times.
> I have the code for what I know as dungeons, aka Zork on my site.
>
> http://home.hccnet.nl/a.w.m.van.der.horst/games.html
>
> It is in fact a 1991 source intended for MSDOS, but after conversion
> to Unix text files, it compiles perfectly on Linux, gcc.
You do realise that the original was in Fortran for a DEC, more than ten
years earlier? A Fortran version is TTBOMK still available from the IF
Archive.
> It is a testament to the practical portability of C.
True; the Fortran version is not quite as portable. Never mind the
original Advent: that required you to save a core file if you wanted to
change the settings...
A text adventure is actually a good example of a fairly complex program
that can be written entirely in ISO C, if you don't care about the
looks.
Richard
|
|
0
|
|
|
|
Reply
|
rlb (4118)
|
2/14/2005 4:15:47 PM
|
|
rlb@hoekstra-uitgeverij.nl (Richard Bos) wrote:
> Albert van der Horst <albert@spenarnc.xs4all.nl> wrote:
>
> > In article <41fe5f05.12406349@news.individual.net>,
> > Richard Bos <rlb@hoekstra-uitgeverij.nl> wrote:
> > >But not, originally, in C. Advent was written in Fortran. The original
> > >Infocom games were written in ZIL, which was a kind of MDL, which was a
> > >Lisp-like language. I've no idea what their 'terps were written in.
> >
> > The original code in MDL is, as far as I can tell, still a trade
> > secret, after more than 25 years.
>
> The original code is in ZIL, not in MDL (there are quite a few
> differences), and they aren't so much a trade secret as simply lost in
> the mist of times.
>
> > I have the code for what I know as dungeons, aka Zork on my site.
> >
> > http://home.hccnet.nl/a.w.m.van.der.horst/games.html
> >
> > It is in fact a 1991 source intended for MSDOS, but after conversion
> > to Unix text files, it compiles perfectly on Linux, gcc.
>
> You do realise that the original was in Fortran for a DEC, more than ten
> years earlier? A Fortran version is TTBOMK still available from the IF
> Archive.
Ho-hum. I must correct myself. The original for Dungeon _was_ written in
MDL. The originals for the separate Zorks and subsequent Infocom games
were in ZIL, though, and do appear to be lost rather than kept secret
(as, AFAICT, is the original Dungeon). The Fortran version appears to be
later than that.
Richard
|
|
0
|
|
|
|
Reply
|
rlb (4118)
|
2/15/2005 1:42:18 PM
|
|
"Albert van der Horst" <albert@spenarnc.xs4all.nl> wrote in message
news:ibuly0.p8q@spenarnc.xs4all.nl...
> The original code in MDL is, as far as I can tell, still a trade
> secret, after more than 25 years.
> I have the code for what I know as dungeons, aka Zork on my site.
>
> http://home.hccnet.nl/a.w.m.van.der.horst/games.html
>
What does this line mean (from your website):
"My modification to the source code of dungeons are in the public
domain. This mainly amounts to replacing pairs by only and selection a
scroll mode in the Makefile"
--
Mabden
|
|
0
|
|
|
|
Reply
|
mabden2 (464)
|
2/16/2005 1:00:16 PM
|
|
|
33 Replies
27 Views
(page loaded in 0.362 seconds)
Similiar Articles: Learning Ideal VS MASM syntax - comp.lang.asm.x86Hi all, next month I'll must learn assembly for school. ... Happily, before the course started I bought the book ... be more concerned about whether your instructor is teaching ... improve strlen - comp.lang.asm.x86> > /* > One of the good things when 64 bit x86 gets going in the next few ... teach yourself pic microcontroller book - comp.lang.labview ... improve strlen - comp.lang.asm.x86 an ... Beginner Projects - comp.lang.java.help// The next prime P' is between P+2 and P^2 - 2 ... teach yourself pic microcontroller book - comp.lang.labview ... this book is very good for beginners ... how to bucket fill? - comp.graphics.apps.gimpThere are lots of possible ways to tie yourself up with ... When finished merge the layer down. -- rich ... Links, and Ideas to match this Awesome book & Some ... Recommendations for Newbie - comp.lang.asm.x86... the registers ESP/EBP (stack pointer), EIP (next ... You might be interested in my free on-line book. ... must say that MASM32 is a great package to teach yourself. Disk I/O, BIOS, dosemu, FreeDOS, linux host with Virtual Machines ...Regarding NASM, what book or online source can help ... or in the source (if you don't mind locking yourself out ... to select a shortcut name and icon, then hit Finish to ... efficiency in awk - comp.lang.awk... processing and then pass the output along to the next ... The book I was attempting to mention is actually called ... I've finished an awk exercise. Here it is: Code: #!/bin ... Key press question - comp.lang.perl.miscAnd the next time a readline statement is encountered ... And when the evaluation process was finished I made the ... level of translating Shift plus A into capital-A yourself. Java Collections List : Converting from List '... that returns a list like this:- List > Next I ... Following your argumentation the GOF book is written by ... You can check for yourself. -- Lew Honi soit qui mal y ... writing a dailer in c for a 8051 based system - comp.unix ...That portion is finished ;) but i am now i trouble of ... you might even be able to see my points by yourself... ... or TSOAP based client? - comp.lang.tcl ... by the next ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Where did Fortran go? - comp.lang.fortran... of computational software, looking at new amazon books ... inexpensively means it was picked up by uni's as a teaching ... fields is blank, it will ignore it and read the next ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...Next, I want to try embedding audio in some documents (e ... left hand, meet up with your right hand "mid-line", finish ... resolution imiages, repeat the exercise for the book ... instruction to wait all childs ? - comp.unix.programmer:) I think not to buy one and wait for the next generation of 64's ... ... With the composition of today's classroom in mind, this book approaches teaching and planning ... FAQ -- assembly-language/x86/general/part1 - comp.lang.asm.x86 ...When you are finished composing your post just send ... as in, you have to be able to sell yourself ... I am going to study this book eventually (next year): http ... Amazon.com: Teach Yourself Finnish: Complete Course (Book & CD ...Terttu Leney is an experienced teacher, teacher trainer, translator and broadcaster of Finnish. She has taught Finnish in various firms and language schools, at ... Amazon.com: Teach Yourself VISUALLY Jewelry Making and Beading ...Her next book, More Teach Yourself Visually Jewelry Making, will help readers take their ... both men's and women's), bracelets, and anklets to common finishing ... Teach Yourself Complete Finnish - 2 Audio CDs and Book - Learn to ...Learn to speak,understand and write Finnish ... Teach Yourself Complete Finnish 2 CDs and Book Audio CD Get Other Teach Yourself Language Learning Audio click here Teach Yourself Programming in Ten Years - Peter Norvig... more books, with 77 computer books followed by Teach Yourself ... this is not enough, as the next section shows. Teach Yourself ... only hear the notes after you finish a ... What Should I Read Next? Book recommendations from readers like youEnter a book you like and the site will analyse our huge database of real readers' favorite books to provide book recommendations and suggestions for what to read next. What is the best way to teach yourself math from the beginning ...... the beginning and totally re-teach yourself math? Is there some book ... of them), so don't expect to finish ... You can take the next step ... Books will not give ... Teach Yourself Finnish Complete Course Package (Book + 2CDs ...From Cantonese to Thai, Gaelic to Modern Persian, learning the languages of the world is attainable for any beginning student. Learners can use the Teach Yourself ... 6/22/2012 10:56:07 PM
|