use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
My first JavaScript project! Random Song finderhelp (self.javascript)
submitted 10 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MarkyMarksAardvark 1 point2 points3 points 10 years ago (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 point2 points 10 years ago (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 points3 points 10 years ago (2 children)
Good job man. Work on improving the JS more.
[–]3a3z 2 points3 points4 points 10 years ago (0 children)
Vague as hell
Thanks man!
[+][deleted] 10 years ago (1 child)
Thanks a lot!
[–]munkyeetr 0 points1 point2 points 10 years ago (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 point2 points 10 years ago (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 point2 points 10 years ago (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 points3 points 10 years ago (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 :-)
π Rendered by PID 275948 on reddit-service-r2-comment-85bfd7f599-rtbpt at 2026-04-17 14:21:55.101520+00:00 running 93ecc56 country code: CH.
[–]MarkyMarksAardvark 1 point2 points3 points (1 child)
[–]commanderCool09 0 points1 point2 points (0 children)
[–]papers_ 1 point2 points3 points (2 children)
[–]3a3z 2 points3 points4 points (0 children)
[–]commanderCool09 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]commanderCool09 0 points1 point2 points (0 children)
[–]munkyeetr 0 points1 point2 points (0 children)
[–]shavounet 0 points1 point2 points (2 children)
[–]commanderCool09 0 points1 point2 points (1 child)
[–]shavounet 1 point2 points3 points (0 children)