openglsuperbible / sb7code

Source code and supporting material for the 7th Edition of OpenGL SuperBible
727 stars 251 forks source link

Chapter info in samples #6

Closed jesta88 closed 7 years ago

jesta88 commented 9 years ago

It would be very helpful to have the chapter number as a prefix to the sample folders.

CRTX commented 8 years ago

Don't bother, the author doesn't seem to ever reply. Such a shame.

CFoltin commented 7 years ago

I totally agree. Currently, I grep for parts of the book's listing to find the right one. That can't be the intended way.

grahamsellers commented 7 years ago

Quoting from the book, last bullet of "How to Build the Samples", page 6:

The samples don't match up with the book directly. Where possible, I note in the book which sample goes with the description. This is the intended way.

CFoltin commented 7 years ago

You disappointed me. Is that too much expectation to want to see a relation between book and code? A simple comment at the top of each file like // discussed in Chapter x.y and z.w would be more helpful than your comment.

jesta88 commented 7 years ago

If you don't have time to update this repo just say so. Simple comments as @CFoltin said would be very useful.

grahamsellers commented 7 years ago

I may apply some updates to the repo. I do have some outstanding pull requests which I acknowledge are somewhat old. The request was to "have the chapter number as a prefix to the sample folders" which clearly isn't going to work as some samples demonstrate topics from multiple chapters and some samples don't fit clearly into any. @CFoltin's request is reasonable although time consuming - there are something like 80 samples in the repository. A pull request that added such comments would be welcome.