-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[p5.js 2.0 RFC Proposal]: Pruning #7090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nickmcintyre Just want to note that I am thinking about pruning many of the things you listed as well (particularly those that thinly wrap JS functions and p5.Table). I wouldn't necessarily remove the mobile events if at all possible and I would still keep the IO loading and http functions as they have their uses, perhaps with some API updates. Some idea around whether people are using p5.Table for example can greatly help with decision making here. |
One other WebGL feature that may be able to be pruned is the |
@GregStanton pointed out that we have both |
@nickmcintyre and @limzykenneth: Any updates on whether Back when I was using ProcessingJS, I made a library that could render tables in the canvas, for math-education purposes. It had a number of features including custom styling. A minimal example is below. Code:
On the one hand,
Maybe it'd make sense to remove |
@GregStanton @ksen0 Is putting together something to collect community comments about p5.Table and other pruning related things above more generally and outside of GitHub to collect more diverse data. We can make a decision about it after that and it's not in a hurry since it is relatively trivial to remove a feature. p5.Table even if removed can live on as a community maintained addon library so if there are things that depend on it, it should be relatively easy to have it around still. |
I found this thread after encountering some surprising [Let me mention the surprising behaviour, for the record. The method |
...And for the record I agree with @nickmcintyre's list of the many vestigial functions left over from Processing that simply aren't needed in P5.js. (There are some that I know could be deleted immediately, and others that I'd have to learn more about first.) |
Closing this one as complete for 2.0! The community feedback mentioned above has a writeup about it here and p5.Table related API has been marked for later removal but was kept in 2.0, as there is not yet an alternative. Potentially HTML tables might be a way forward, and is currently in a discussion and design stage. |
Increasing access
My sense is that this proposal affects maintainability and sustainability more than accessibility. That said, a smaller, more focused core library could be viewed as more accessible to beginners and contributors because there are fewer moving/interrelated parts.
Which types of changes would be made?
Most appropriate sub-area of p5.js?
What's the problem?
Many classes and functions aren't used widely, if at all. Others were ported directly from Processing and may no longer be needed given all the goodies in modern JavaScript. And a few are broken.
What's the solution?
Prune the following classes and functions. Maybe add some tutorials on data wrangling with arrays and objects.
Data
Events
The entire Acceleration section is broken on iOS without a workaround, so I suggest removing it.
IO
Pros (updated based on community comments)
Example list:
Cons (updated based on community comments)
TBD
Proposal status
Under review
The text was updated successfully, but these errors were encountered: