I'm working on a sketch that has different functions and I'd like to organize my code, with one file (pde or else) for each function ...Can somebody tell me what's the way of doing that? If I work with class, should I write down a reference to the class in the main sketch, or putting them in the same folder would be enough? Thanks in advance
One function per file is a bit too little. One class per file, if you use classes, is better. And Processing just concatenates the contents of the files, to make the equivalent of one .pde file, so you don't have to make references or whatnot.