How is Javascript used within the Spotify desktop application?
quora.com
quora.com
Developer vs computer time trade-off works only when software already works reasonably well. Which is not the case.
The thing that hadn't changed is humans - it was and it's still acceptable for an application to take a second or another to load.
Technical details had changed, but I can't really judge if those changes were drastically innovative or we're just redoing the same shit over and over, and can't tell if world has gone better or worse. I guess such judgements are highly subjective.
The spotify mobile app has some odd behavior from time to time. The UI will continue to respond to my actions but nothing actually happens for 20 seconds, during that time i'll click on several different songs attempting to get them to play.
Finally, for whatever reason, the app springs back to life an begins to execute the actions out of some sort of queue leading to several songs playing. It seemed very odd to queue song plays in such manner. I would've assumed it would be last one wins rather than "Song 1" - play for 2 seconds "Song 2" - Play for 2 seconds "Song 3" - play for 2 seconds
I may have clicked "Play song 2" 15 seconds ago before the song is actually played.
Overall, I love spotify though. I use it everywhere.
On the good side, since all the webviews are right there in the app as renamed zip files, I suppose they could easily be edited to cut out some of the bottlenecks?
It may very well be the ads responsible for at least a memory leak in my case.
Luckily there is a way to downgrade to the earlier version: http://www.reddit.com/r/spotify/comments/2y239w/a_guide_to_d... (The second method works for me)
I just started Spotify with a stopwatch:
2:26 for the main Browse to completely render
2:42 for the live search window to give suggestions
2:52 (+10 seconds) for the search to return a result
I once thought it was because of the massive local library that had to be loaded and sorted into Spotify, but I've done away with local files to try to speed up the start up. The results on my laptop are not any better. Maybe it's because I've been updating the same client since 2012?
Are you on a mechanical hard drive perhaps?
The network performance though is quite bad, searching for some song often fails or just is very slow to load and render.
Similar criticisms have been made of iTunes over the years (though I find it's not bad in the current version). Things like laggy scrolling are a bit understandable there, since they've defaulted to the grid of album covers view for a while. But Spotify looks like it's all just columns of text and a few thumbnails on the side?
I'm a recent convert from grooveshark, so I've been using the spotlight web player and I find it a pretty nice web app to be honest. I haven't dealt with any of the actual desktop clients yet, so don't know if anything I said above is true.
From a users perspective, that is an implementation detail and doesn't matter. A users only cares if his music player feels slow or not.
"We decided to develop it on HTML and JS" is a lame excuse for slow mobile apps, and IMO it's even worse on desktop.
Related: http://techcrunch.com/2012/12/13/facebook-android-faster/
Why do they care if I spend more or less time in the app if I'm a premium user, surely that can't be the reason for this regression.
When I went from win -> nix so many years, all I wanted was a music player with the interface that of winamp2. xmms gave that and I was happy.
But then I discovered mpd+ncmpcpp. Really great if you have large music collections, have been using it since.
I'll try XMMS, I have tried it before but it never "clicked". I'll give it another shot, thanks!
You see, I was a very avid fan of winamp(2) about 10 years ago. Nothing else came close. Then onto linux, xmms did the trick (as all I needed was a winamp2 replacement). Then as my collection grew, my priorities change, I was after speed. So mpd was thing. In the past few years I haven't had a personal collection, now it's more often listening to music on grooveshark/youtube. After grooveshark went down, I got spotify (paid subscription), and I find myself being _stunned_ how bad, how slow, how ugly, how anti-UX it is. I think I may go back to having the collection on my HDD once again with mpd as that is still really fast. But that'll be difficult, as I'm often on the go and want to listen to stuff on my cell phone (where spotify is okay actually).
As for aero tiles... That's a Win8 thing? I guess it's a valid complaint. I think you can set global keyboard shortcuts for those actions, if that helps.
Foobar is classic to the cost of UX. We've figured out for a long time now bigger buttons are important, there's no need for separate pause/play especially if stop is right there.
It doesn't need a slew of crappy gradients and fancy shit, Just drag the interface forward a decade that's all. Usable with a touch screen should be a minimum now.
Though this is on Ubuntu, and Spotify is still a beta app on that platform last I checked. I don't think I've had this problem on Windows.
Or maybe just use the Clementine add on?
My keyboard has media keys, but I thought I would prefer short textual commands to having to move my hand to the upper right of my keyboard (and probably miss the key if I wasn't looking?).
The Windows experience is the same if the window is from an application that is running in the systray. In that case clicking the X closes the last window but leaves the application running.
I think daheza was saying that the removal of the systray caused the same actions (closing a window) to no longer do the same thing (get this window out of my way, but keep playing music) across operating systems when they used to in the past.
which is pretty much a giant fucking failure for a mobile app that's used by people in the car, bluetooth, people on the go, etc.
i wish i could say mobile itunes stayed useable, but it didn't either. we're basically choosing from the worst of the best, these days.
That resulted in a big performance boost, at least on my Core i7 MacBook Pro. With older machines I can guess that the performance might still not be that good.
However, this refresh also removed the ability to filter the playlist content view (cmd+F). The worst part of losing that feature is trying to find stuff in "Local Files". Very awkward.
"Oh, you've.. you've redesigned? Yeah no — it's.. it's kind of dark don't you think? ... no-no, I like it honey."
"Playlist-search isn't there anymore? Oh, ok.. :|"
"Hey, some of my songs aren't playing anymore, do you know anything about that? No.. ?"
"My offline-playlist is showing me a spinner instead of playing.. sigh, no it's fine, I'll just dig up my old mp3's in the garage."
At this point I'm seriously considering a divorce.
* Searching in playlists was removed
* Searching in local files was removed (and the local file support has always been crap anyway, please work together with Last.fm to properly match files)
* Creating a new playlist in a folder was removed (you now have to create and move the playlist)
* Sorting playlist folders was removed.
* The option to turn off your 'volume normalisation' was removed. Because your algorithm is really broken and severely compresses the music, removing any dynamic range, this is the biggest showstopper for me. Check your forums, tens if not hundreds of people already left because of this.
* Apps were removed (tbh, I can live with this)
Oh, another one, please give us an option to turn off 'Spotify Connect'. It prevents my Android phone from entering deep sleep, and thus it is a battery drain. You don't need to fix the battery drainage, just give me an option to turn the feature off.
For me "Your Music" only contains songs I explicitly add to it, so not songs from playlists or artist that I follow.
I still have no idea how to find a specific album in an artist's page, but of course that is a minor concern, compared to their ability to "to work with whatever frameworks they need, without the need to coordinate tooling and dependencies with other squads".
The one thing Apple got right is to always optimize for user experience, never for engineering convenience. Native code, no garbage collection - still pays off today.
What would be a good cross-platform tech stack that satisfies those needs, and isn't C++? Anything with a QT binding I suppose?
This is driving me crazy. I managed to stumble across this feature via cmd+f one day and as quickly as I find it, they remove it. Seriously?
The only way this feature could be used was via a keyboard shortcut, it wasn't a something cluttering the UI or adding additional cognitive load in a menu for a user - and it was damn handy.
The day where the update removed this feature I wanted to find the product manager at Spotify and yell WTF at their face.
[edit] Apparently it has been added again in 1.0.5.x, but I'm not getting that update yet...
This is where the praise ends. As a Spotify Premium user, I love the service, but the interface as many others have pointed out has really gone downhill. I don't know who is leading the UX squad over at Spotify, but the app needs considerable work. High startup times, incredible amounts of frame rate lag and removal of the system tray icon. What is going on over there? I have also noticed that the app can play a song quickly, but browsing and searching is incredibly slow (even on a fast connection).
I always assumed parts of the Spotify-client had to be HTML/JS based, but I had no idea it was done to such an extensive degree.
If this is really true, "intricate" probably means "needlessly complex" because the interface, while by no means bad, is nowhere near as sophisticated as many JS apps I have seen and worked on. Off the top of my head, I would be willing to bet GMail, Google Spreadsheets, and Facebook are all vastly more "intricate" than the Spotify client based purely on number of features.
For anyone who's curious, it's easy to take a look under the hood from the Spotify installation folder. (Windows users can find it at %APPDATA%/Spotify/)
The Apps directory is full of *.spa files. These are zip files; if you extract them to folders with the same names and delete the zips, the application will still work, but you'll be able to edit the code.
The zlink directory is the most useful. This holds the main UI and much of the logic that powers it. Search through main.js in this directory for the Session.prototype.isDeveloper declaration. If you force it to return true, the Spotify UI will refresh when you press F5 inside it. Now you don't have to close and reopen every time you make a change! This will also add some miscellaneous UI embellishments (they aren't terribly useful and can be disabled by hardwiring logic elsewhere in main.js).
Initially, I thought the about directory would be a handy sandbox to mess around in, but then I realized that you can easily add new apps! Integrating them into the UI takes a bit of effort, but you can easily get to them by putting the app URI into the search bar (spotify:app:___). (Each app's URI is defined within the its js file. Make sure you give it a unique name in its manifest, too.)
Additionally, you can open cef.pak and devtools_resources.pak with a text editor and mess around (though they're not terribly useful).
NB: If you're really motivated, it shouldn't be too hard to set up a complete development environment for this. I was able to quickly dump most of the concatenated files to zips - all I needed to do to finish was to cut off some of the module wrapper code and reformat directory paths. I quit when I accomplished my goals of shuffling the UI around, but if you're interested, I have a simple concatenated files dumper at https://gist.github.com/GeorgeHahn/0deef2fb0d392ef507dd.
It takes a bit of mucking around, but it's not too hard to achieve a legacy-UI feel (volume on the left, no lyrics button, de-uglified media control buttons, compact playlist/track lists, etc). Of course, this will get ruined the next time Spotify updates, so you should block updates and make backups if you want to keep your changes.
One of the problems though – the user experience of the app is rather unpleasant. It's extremely laggy and noticeably non-native – using incorrect keyboard shortcuts, and so on.
I'm sure it's possible to do it better, but the UX of the app used to be great and is slowly declining, which is a real shame.
According to their blogs etc the main purpose of the Linux version is internal use by spotify developers working on Linux workstations - it is only released to the public because, "why not?". I wonder if this is why the Linux version is 'behind' the windows/OSx versions but actually works better. I.e. they dogfood it more but don't feel the need for constant UI 'improvements'.
I hope this chromium crap isn't his decision.
I don't think the move from the C/C++ client was something he liked, tbh :)
I can still search in playlists! And i get the Top Lists for all the contries instead of just a few (Spotify decimated the avaiable contries in top lists in the JS version).
Stay on the native app as long as you can.
[1] https://community.spotify.com/t5/ideas/v2/ideapage/blog-id/i...