ofBook icon indicating copy to clipboard operation
ofBook copied to clipboard

included full code too

Open awaywiththespoons opened this issue 8 years ago • 7 comments

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.

awaywiththespoons avatar Mar 08 '16 12:03 awaywiththespoons

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.

ofZach avatar Mar 08 '16 13:03 ofZach

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 :)

awaywiththespoons avatar Mar 08 '16 14:03 awaywiththespoons

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

On Tue, Mar 8, 2016 at 11:10 PM Becca Rose [email protected] 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 .

elliotwoods avatar Mar 09 '16 08:03 elliotwoods

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

mikewesthad avatar Mar 11 '16 04:03 mikewesthad

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 avatar Mar 11 '16 04:03 bakercp

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

bakercp avatar Mar 11 '16 04:03 bakercp

@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?

firmread avatar Mar 11 '16 04:03 firmread