phetsims / arithmetic

"Arithmetic" is an educational simulation in HTML5, by PhET Interactive Simulations.
http://phet.colorado.edu/en/simulation/arithmetic
GNU General Public License v3.0
5 stars 5 forks source link

run through code review checklist prior to publication #158

Closed jbphet closed 8 years ago

jbphet commented 8 years ago

This sim was initially code reviewed before we had this checklist, so we should go through it is a separate pre-publication step.

Build and Run Checks

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

Memory Leaks

jbphet commented 8 years ago

For memory profiling (checking for leaks), I performed the following tests:

I will follow up on the potential leak with @jonathanolson, since my initial analysis is that the allocations are mostly scenery items (which doesn't necessarily implicate the scenery library, it may be how the sim is interacting with the library). I don't think that this should block the initial release candidate, since the leak is slow and would require many hours of play on the game before any impacts are likely to be seen.

jbphet commented 8 years ago

Done, closing.