nature-of-code / The-Nature-of-Code-archive

The very first build system for The Nature of Code
http://natureofcode.com
913 stars 151 forks source link

Examples, Exercises and Accompanying code sketch names need to be synchronised! #227

Closed brownidj closed 11 years ago

brownidj commented 11 years ago

Perhaps in 2nd Edition, it would be worth changing the naming of sketch examples and exercises to a scheme that followed Processing's sketch naming conventions more consistently. This would allow the code examples in The-Nature-of-Code-Examples-master to be found more easily.

For example, in the Intro in the PDF (28/519) The exercise is I.1 whilst the Sketch folder is called: NOC_I_3_RandomWalkTendsToRight. So although this is the first exercise, it is not distinguished from the examples...

Sorry to be pedantic - feel free to ignore! I don't have a particular scheme in mind but, by way of penance, I would be willing to work a suggestion out if that would help!

shiffman commented 11 years ago

They should all match! For example, if it says:

"Example 4.5 Particle Blah Blah"

in the text, you'll find:

NOC_4_05_Particle_Blah_Blah

in the examples.

For the exercises, I think I'm just missing some. But if you see

Exercise I.1 Walker

Then you'll find

Exercise_I_1_Walker

in the examples.

I just fixed the intro:

https://github.com/shiffman/The-Nature-of-Code-Examples/commit/c49bbbaa8f068aa6e31d3d53e963c847cb1660ad https://github.com/shiffman/The-Nature-of-Code-Examples/commit/d6a3f69b20bf6c9f2714219904f4e023bef3bb1c

Let me know if you see any more that don't match!

(Maybe I could come up with a more clear naming convention, but this is what I have for now. I can always rename the files in the repo later if you have ideas. The book, however, is getting set as of this week.)