In the IDE is a new fixed inbuilt Tool
“Upload and share in Processing Forum”.
It :
executes ctrl-t on all tabs,
zips all files and uploads to a server (like weshare) that the Foundation provides and
returns a link to the zip that
automatically is posted in a new post in the forum that the user can then proceed to edit.
The post is opened in browser.
Hence the forum is simplified since the comments
“please show your code,
please format your code correctly,
please use ctrl-t on your code,
we can’t run your code because we don’t have the images / mp3…”
are no longer necessary.
A lot of frustration for beginners and helping people would end.
Nice idea but for large sketches we should still encourage users to provide short code snippets demonstrating what they want to know. Creating the code snippets might highlight the problem for the user and simplify the responder’s task. With luck they might even find their own solution
The last thing I want to do is download a 1000 lines of code, try to follow the programming logic, search the code for the problem or issue and then hack a solution. If I did download the sketch and found the code to be a rats nest I would simply move onto something else.
@Chrisir: the Intention is good but I need to agree with @quark.
Additionally, there is a chance that someone who tries to extract the potential problem to post a minified version will come across the broken code line(s) and be able to fix the problem themselves.
Just allowing the upload of a zip for sharing would be a welcome addition to the forum; not everybody knows how to use git and github/gitlab/…
The way you propose using an external server is not needed if we were allowed to upload zip files. I think it’s considered a security risk for those that download a zip and hence it’s not allowed; but downloading from an external server can be just as dangerous
I never mentioned mcve Personally I would simply ask the poster to trim the sketch to a minimum that still shows the problem / issue.
Generally the quality of the question gives me an insight into the posters knowledge and experience and I try to respond at their level. Sometimes that is not possible but in that case the poster must push against their own limitations and learn something new.
I agree that this proposal is valid and would benefit some, but it also encourages people to simply upload their code to get a fix without seriously making the effort to solve the problem themselves.
Although the poster gets a solution I think it is unlikely to help other forum readers / users because the volume of code makes the problem and solution difficult to find and understand.
The infrastructure for a centralized cloud-based solution may be out of reach in the short term. It brings a lot of complexity: data storage, scaling, potential liability, privacy regulations, hosting, maintenance, etc.
Forum members could then upload their .pdez files to their preferred file hosting service.
One thing to consider is that sharing code via external links would expose the forum to an increased risk of link rot as those files stop being hosted, making older posts less useful as a reference, so that is also not a perfect solution.
In summary, I think there is a lot of value in the proposal for certain use cases—like sharing your work with a teacher for evaluation/grading—but implementing it on the forum may have unintended side effects and is more complex than it might seem.
Additionally, @quark and @mnse also made some really good points about the value of asking people to post short and self-contained code snippets.
On a related note, it would be great to see more experimentation with the .pdez format from the community as it could enable some really fun use cases like online Processing sketch galleries for example.
I’m intrigued by the .pdez bundle possibility, but I cannot find how that’s accomplished from the editor. I’ve looked in all the menus and tools. I’m running v4.3 and I’m on Linux if that matters. Thanks for any help to find what I must have overlooked.
A .pdez file is just a zipped sketch folder with the extension changed. There isn’t a way to export a bundled sketch from the PDE yet, but you can manually compress your sketch folder and edit it to change the extension to .pdez. Then double-click the file and it should automatically open in the PDE.