We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Why the folder as well
Page Index Toggle Pages: 1
Why the folder as well? (Read 353 times)
Why the folder as well?
Apr 18th, 2008, 8:57pm
 
I'd like to have my own file system structure, e.g. under Windoze:
"D:\Projects\Project_1\Program_1.pde".
Instead Processing insists on creating a folder as well:
"D:\Projects\Project_1\Program_1\Program_1.pde".
I fail to see the rationale behind this, and thus only find it irritating. Can anybody enlighten me?
TIA
Steven
Re: Why the folder as well?
Reply #1 - Apr 18th, 2008, 9:30pm
 
Why to put each sketch in its own folder:

1. If you use tabs, each tab becomes its own file.  So if you had a tab called "drawing" in multiple  sketches, if they were all in the same folder then the drawing.pde files would conflict.

2. similarly, the data folder exists in your sketch when you need to load fonts, images, etc.  

Its a good system, if you give it a chance.
Re: Why the folder as well?
Reply #2 - Apr 19th, 2008, 1:15pm
 
I understand your point, but I don't agree. Smiley

It is convenient to have all files of a project in the same folder, and many people will be happy with it. But if you let people choose those people still can put everything in this (default) folder, while others may opt for their own file structure.
In general people, esp. the creative kind Smiley, don't like being told how to work.

Another point is redundancy. If I use the same file in 5 programs I have to keep 5 copies, with the inherent problem of consistency. I can share files between projects when programming in Delphi or POVray, so why not in Processing?
Also, since "loadImage" looks in the program's "data" folder, I may need to have several copies of identical images. That's not what you want if each copy takes 10 or 20 MB.

Regards,
Steven
Page Index Toggle Pages: 1