Week 12: RESTful Project Part 2

This week we flushed out server-side programming for two RESTful project devices along with skeletons of their front ends.

Both devices are similar in that their clients update according to changes in data stored in a JSON object in the back end (and for this assignment, those changes are intended to be made with physical controllers made by other groups). For this we used P5’s loadJSON method (although I suppose httpGet() would work, too) at regular intervals to retrieve the data. I learned that this is called polling. Wondering what other methods we should consider (especially since this is not a socket server)?

For our Robo-Karaoke, see here.

For Alden and Beverly’s Super Cool VJ Machine, see here.