phetsims / projectile-motion

"Projectile Motion" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
15 stars 13 forks source link

Convert to typescript #306

Open zepumph opened 1 year ago

zepumph commented 1 year ago

Wahoo!

zepumph commented 1 year ago

Please note https://github.com/phetsims/phet-info/blob/master/doc/typescript-conventions.md#L19. And we should probably go through the options and enums patterns together.

zepumph commented 1 year ago

After discussing with @matthew-blackman, I decided to convert a single model/view pair as reference. Here are some notes about my conversion:

I'm excited to discuss further!

matthew-blackman commented 1 year ago

The common model/view is fully converted, so I think this may be a good time for a code review before the final conversion push @zepumph

zepumph commented 1 year ago

Overall things are looking really really good. Thanks for all the hard work here, it is really helping me to understand the sim code.

UPDATE: 1/11/23

Thanks for all the good work. I definitely went fast and could have missed some stuff. I'd say stay diligent as you go through these items and feel free to convert the rest. I also think we likely want another issue to try to tease out the options type where we were mixing things in ProjectileMotionUIOptions. Likely a separate issue, and I believe you will run into that much much more in the specific screen code. Thanks!

samreid commented 1 year ago

@matthew-blackman has said the conversion to TypeScript is partway done, and I see lots of great review recommendations above. Also, this sim is in a sprint team for this sprint, so I think will get appropriate attention. Thus, removing the ready-for-review label for now.