-
Notifications
You must be signed in to change notification settings - Fork 2
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
Convert simulations to ES6/class #1050
Comments
I used the Sublime script to convert fraction-comparison, and it went very smoothly. There was one occurrence of |
I finished my remaining sim. We are down to 868 occurrences of |
With this timeline, I would like to promote priority. |
I removed Shreyas because he is not currently working for us. I haven't worked on the sim development since mid-2016. Is there a quick guide to what needs to be done for me to complete work on a sim? If not, it may be more efficient to remove me from this list. |
I noted that @mattpen wasn't listed in https://github.com/phetsims/phet-info/blob/master/sim-info/responsible_dev.md, so I'm going to check him off and unassign. Sorry for the confusion! |
Marking to check in for dev meeting |
I've ported Faraday's Law using the script. The script is awesome, and I think I may use it to port a sim or two a week until mine are all done. Thanks @jonathanolson. Unassigning myself. |
Similar story to @zepumph's comment above. I ended up using Sublime to avoid any potential Intellij compatibility issues. Masses and Springs converted nicely. Capacitor-Lab-Basics still required additional workarounds due to using |
I used the plugin on trig-tour using Sublime Text 3, it was great and saved a ton of time. I had to do very few things manually, they were
|
@ariel-phet will create a chip-away issue to apply the change to all sims. @jonathanolson will try to address some of the above comments. |
I was able to have success converting all js files recursively in a directory using this script after you cd to that dir (like
|
…as used before 'super()'. phetsims/tasks#1050.
I converted Plinko Probability and Color Vision above. Thanks @jonathanolson! And thanks @zepumph for the recursive suggestion in #1050 (comment) - that worked very well for me. |
I think all that is left in this issue are the improvements to classify.py, like #1050 (comment) |
No need to handle the python bits, I'm not using them in Sublime anymore. Closing. |
Similarly to #1044, we would now like to investigate converting simulation repos to use ES6/class/arrow functions/
this
instead ofself
/const, etc. @jonathanolson demonstrated a utility he developed to assist in this task. @ariel-phet asked me to create a checklist issue in the tasks repo to track each developer porting one simulation forward by Thursday Oct 22.@ariel-phet can you please review the developer list? I'm not sure if everyone should be on there, or if I've missed someone. Also, I discovered GitHub issues have a max of 10 assignees, so I was unable to assign @shreyas-g-ucb.
UPDATE: I finished a sim, so I unassigned myself, and that made room for @shreyas-g-ucb.
UPDATE: For the record, at the time of this issue creation, we had 3119 occurrences of
class ... extends
and 887 occurrences ofinherit(
EDIT: Saurabh and Brandon removed
The text was updated successfully, but these errors were encountered: