openframeworks / ofBook

openFrameworks community book
706 stars 201 forks source link

included full code too #191

Open awaywiththespoons opened 8 years ago

awaywiththespoons commented 8 years ago

I know it's a book, but it would be really useful to access whole sections of code so that you can work through the examples, and then check your work.

I am learning of after a few years of playing with processing, and it's a big jump mainly because of the organization of the code (errr....and all the rest!). If there was a way of seeing how the snippets fit together I think it would make the learning processes easier.

ofZach commented 8 years ago

some chapters have code (see for example https://github.com/openframeworks/ofBook/tree/master/chapters/intro_to_graphics/code) but not all do -- maybe you can file an issue for a specific chapter (like hardware) about what you'd like to see with regards to code?

also, I know @firmread is working on getting all the code examples in one place and making sure they are up to date -- will ping you when it's done, hopefully it will help.

awaywiththespoons commented 8 years ago

Thanks. I am not very experienced using github (hence not filing an issue in the right place!)

I found examples in -communication- folder in the OF package which helped me get it working (yay!). But yes, being including or referring to the full code in the book tutorials would be super helpful :)

elliotwoods commented 8 years ago

did we get anywhere with having embeddable ofSketch in documentation pages?

On Tue, Mar 8, 2016 at 11:10 PM Becca Rose notifications@github.com wrote:

Thanks. I am not very experienced using github (hence not filing an issue in the right place!)

I found examples in -communication- folder in the OF package which helped me get it working (yay!). But yes, being including or referring to the full code in the book tutorials would be super helpful :)

— Reply to this email directly or view it on GitHub https://github.com/openframeworks/ofBook/issues/191#issuecomment-193797932 .

mikewesthad commented 8 years ago

Last time I talked with @brannondorsey that sounded like something that could be on the ofSketch roadmap, but that there wasn't a specific timeline and might not happen for a bit. I'd love for that to exist. I'm a big fan of the p5js documentation pages that have embedded examples.

Pinging @bakercp & @brannondorsey

bakercp commented 8 years ago

We had a mini conference about the future of ofSketch and it seemed pretty clear that refining its target to web / embeddable / sharing was its real strength and its future (if it ends up having one long term). The fundamental problem was that from an IDE perspective it tries to be both suuuper simple and openFrameworks get suuuuper complex really quickly ... then then just when you needed an advanced feature, you have to jump out to a normal IDE and re-learn everything ... which defeats the purpose. Anyway, we're working on refining the space that would make the most sense ... and this online possibility would probably be one. For real-time web interaction though, it might be tricky though because it still would need an nmake script running safely on a server somewhere ... unless we can compile clang into javascript and run a c++ to javscript cross compiler in the browser ... which seems ... like terribleness.

bakercp commented 8 years ago

Wow. there is this I guess https://github.com/kripken/clangor.

firmread commented 8 years ago

@awaywiththespoons I had some code for most chapter up at https://github.com/firmread/ofBookExamples do you have any specific chapter you're looking for?