phetsims / plinko-probability

"Plinko Probability" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 7 forks source link

Internal check list in preparation of code review #22

Closed veillette closed 8 years ago

veillette commented 8 years ago

Prior to doing a code review for this sim we should make sure we tick all the check boxes

PhET code-review checklist

Build and Run Checks

Strings

Repository structure

   my-repo/
      assets/
      audio/
         license.json
      doc/
         model.md
         implementation-notes.md
      images/
         license.json
      js/
         my-repo-config.js
         my-repo-main.js
      .gitignore
      my-repo_en.html
      my-repo-strings_en.json
      Gruntfile.js
      LICENSE
      package.json
      README.md

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.

   my-repo/
      js/
         common/
            model/
            view/
         custom
            model/
            view/
         introduction
            model/
            view/
         my-repo-config.js
         my-repo-main.js

Coding conventions

Documentation

Common Errors

Organization, Readability, Maintainability

Performance, Usability

// Cap large dt values, which can occur when the tab containing 
// the sim had been hidden and then re-shown
dt = Math.min( 0.1, dt );

Memory Leaks

veillette commented 8 years ago

Let's close this internal issue since we are currently going under code review