Trott / musicroutes-playlist-generator

Create a playlist of songs with common musicians. Like Six Degrees of Kevin Bacon but for music. Sort of.

Home Page:http://musicroutes.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playlist module refactor

Trott opened this issue · comments

Separate out the stuff that maintains playlist state/contents from the stuff that selects a new track (basically, findNewTrack() and everything it depends on)

Maybe have a playlist object composed of track objects and connector objects. (Or find a library to reuse that handles graphs. That's just nodes and vertices, yo.) Then all the "business logic" of the playlist can be in the composed playlist object, isolated from the stuff that just, you know, is information.