-
Notifications
You must be signed in to change notification settings - Fork 3
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
Code Review for Curve Fitting #31
Comments
Initial review complete. @ariel-phet, to whom should I assign review issues that need to be handled? |
@jonathanolson please assign to @andrey-zelenkov |
Thanks! I'll take care of the remaining issues and verify the checklist. Assigning to myself, and removing the review tag. |
This sim was recently assigned to me to complete. @jonathanolson I'll take it from here. Looks like all code review issues are in separate GitHub issues, so I'm going to close this issue. I'll do memory leak testing, etc. a little later. |
PhET code-review checklist
Build and Run Checks
Repository structure
Are all required files and directories present?
For a sim repository named “my-repo”, the general structure should look like this (where audio/ or images/ may be omitted if the sim doesn’t have those types of assets).
For a common-code repository, the structure is similar, but some of the files and directories may not be present if the repo doesn’t have audio, images, strings, or a demo application.
Is the js/ directory properly structured?
All JavaScript source should be in the js/ directory. There should be a subdirectory for each screen (this also applies for single-screen sims). For a multi-screen sim, code shared by 2 or more screens should be in a js/common/ subdirectory. Model and view code should be in model/ and view/ subdirectories for each screen and common/. For example, for a sim with screens “Introduction” and “Custom”, the general directory structure should look like this:
grunt generate-published-README
orgrunt generate-unpublished-README
?chipper/js/grunt/Gruntfile.js
?Coding conventions
Documentation
Common Errors
Math.random
used wheredot.Util.randomSymmetric
should be used? Math.random does not treat positive and negative numbers symmetrically, see fix nearest-neighbor rounding in Util.toFixed dot#35 (comment)toFixed
used wheredot.Util.toFixed
ordot.Util.toFixedNumber
should be used? JavaScript'stoFixed
is notoriously buggy, behavior differs depending on browser, because the spec doesn't specify whether to round or floor.Organization, Readability, Maintainability
Performance, Usability
Memory Leaks
tandem.addInstance
should be accompanied bytandem.removeInstance
or documented why removeInstance is unnecessary.The text was updated successfully, but these errors were encountered: