Leakoo
Tim Rodenbröker from patreon
Tim Rodenbröker patreon

New course: Sketching with Code 🎨

🕑 Added 2023-05-12 14:00:59 +0000 UTC
New course: Sketching with Code 🎨

Comments

Tim Rodenbröker

Hi Ricardo, this is a really good question. I have experimented with this a long time ago, but i didn't solve the problem. Symlinks are not an option for me and my teaching, because leaving the Processing-"sandbox" could lead to many additional obstacles for my students. I also have to say that the videoExport.pde never really changed, so i don't have any problems with versioning this file. That's why i simply accept and live with the fact that i have to add this file into every single sketch. Not ideal, but its okay. Many greets! Tim

Ricardo Lodroño

Tim, related to the 'Sketching with code' course, the 'decoupling paths' subject is especially interesting to me. You expose it related to assets, but I was wondering how we can make the same approach to reuse for example the aforementioned 'VideoExport' function and not having to copy it in every sketch. At the moment I've seen on the internet that you can create a 'symlink' on the sketch folder to the original file containing the VideoExport function (that could be in a 'common' folder), but it involves using the terminal to create this symlink with a code similar to this: ``` ln -s ../../_common/video_export.pde . ``` Do you know If something similar can be done inside of Processing IDE, or it will involver something more complex like creating your own library of functions? I think that this subject about code reuse is pretty interesting and related to the 'Sketching with code' course.


More Creators