phetsims / pendulum-lab

"Pendulum Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
4 stars 10 forks source link

Code Review #161

Closed jonathanolson closed 6 years ago

jonathanolson commented 7 years ago

Looks like some review has been done before, but this checklist will help me finish the sim.

NOTE! Prior to doing a code review, copy this checklist to a GitHub issue for the repository being reviewed.

PhET code-review checklist

Build and Run Checks

Internationalization

Repository structure

   my-repo/
      assets/
      audio/
         license.json
      doc/
         model.md
         implementation-notes.md
      images/
         license.json
      js/
         (see section below)
      .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/
         introduction/
            model/
            view/
         lab/
            model/
            view/
         my-repo-config.js
         my-repo-main.js
         myRepo.js

Coding conventions

Documentation

Math Libraries

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

PhET-iO

jonathanolson commented 6 years ago

Self-review complete, some things moved to issues. Closing here.