JonWash86 / Bonsai-Radio

A playlist management application which leverages the spotify and last.fm apis to bring joy to music nerds
http://www.bonsairadio.com
1 stars 1 forks source link

Pass information more cleanly as an object #35

Open JonWash86 opened 4 years ago

JonWash86 commented 4 years ago

As I'm finding more information has to be passed from my initial api calls, some functions are accepting a wide variety of arguments (e.g. getPlayListTracks() takes four arguments, possibly 5). Depending on where we are in the lifecycle of the application, some of these arguments aren't defined variables. Storing the variables as attributes of an umbrella object would simplify this sort of juggling process we're currently engaging in.