adicu / Courses

A course management application for Columbia.
courses.adicu.com
Other
16 stars 12 forks source link

Makes AJAX calls more consistently #56

Closed rbtying closed 11 years ago

rbtying commented 11 years ago

Makes a consistent interface for getting sections and courses based on their primary keys, and encapsulates the API call into a fillData() call.

Can easily be improved by making Course.prototype.getSections() prefill data for Section, much like how ejs is prefilled for Course. This will reduce API calls by (n-m), where n is the number of sections and m is the number of courses.