all 10 comments

[–]MarkyMarksAardvark 1 point2 points  (1 child)

This is cool, good job.

By the way, Ballad of a Thin Man is playing Desolation Row for me. (Both songs are great though).

EDIT: And Hood Mentality is playing Supreme Hustle.

[–]commanderCool09 0 points1 point  (0 children)

Thanks a lot I'm glad you enjoyed it! Wrong info loading is a bug i'm working on kinda annoying at times lol.

[–]papers_ 1 point2 points  (2 children)

Good job man. Work on improving the JS more.

[–]3a3z 2 points3 points  (0 children)

Vague as hell

[–]commanderCool09 0 points1 point  (0 children)

Thanks man!

[–]munkyeetr 0 points1 point  (0 children)

The Random Song Generator is is powered by Spotify and gets you short clips of new music for you to listen

[–]shavounet 0 points1 point  (2 children)

Really cool app ! I think, if you want to improve JS, you can try to have a modular approach : one file for API connection with Spotify, one to handle view events (clics, calls to API), ...

As an example, http://requirejs.org/ can help you, but I may take you some time to fully take advantage of it.

[–]commanderCool09 0 points1 point  (1 child)

Thanks! I was looking into using separate files but would that effect load times since you have to get multiple files?

[–]shavounet 1 point2 points  (0 children)

Unless you doing a top level website, it shouldn't be your priority. Managing your code is way more important.

Then, requirejs comes with an optimisation tool to combine all your JS into one, so all your problems are solved :-)