39 comments

[ 4.9 ms ] story [ 97.8 ms ] thread
Just came here to post this.

Curious if it was done intentionally or simply due to hurrying.

It's not a bug! Websites are supposed to have human-readable markup and scripts.
the sourcemap has been removed and repos DMCAd
sourcemaps should be enabled -- that's how people learn.

a lot of people learned to code on the web via viewsource - now we are obfuscating the code

Probably due to usage of fat front end frameworks which also include whole business logics.
sourcemaps are not for learning, it's for debugging
Idk why you are getting downvoted.

To elaborate on your comment, if you just ship sourcemaps in production, that means you can ship minified code and track down what _actual_ source that you _aren't_ shipping to users is getting called, is in stack traces, etc.

I'm not aware of a point of sourcemaps otherwise.

Yep, sourcemaps are essential to get usable error stack traces, and that's their only purpose.
App store uses svelte? :o
And the Windows 11 start menu is just React Native. Strange times indeed.
(comment deleted)
There was Cappucino by ex-Apple employees, and actual Apple devs had SproutCore. So where did they go? Why some unknown libraries?
Unsurprisingly there are many frameworks/initiatives that end up falling by the wayside over the years, e.g. MacRuby was being lined up to supersede Objective-C for app development at one point.
It's using Svelte, I wouldn't exactly call that unknown. Why maintain your own library when a third party one does exactly what you need?
Didn’t SproutCore become Ember [1]? Just my vague recollection, not sure if that was the case though. Anyway, Ember is still used and maintained, despite not being very well known.

1. https://emberjs.com/

As a frequent user of the backend (Connect), I am skeptical that this is source that you want to reproduce (unless you're a scammer).
The source code had a very elegant and systematic use of intents (including prefetched intents) and a dependency injection container.

The pattern itself is a little bit different, has some conceptual overhead, but it's also fairly clean and scaleable.

Dumb question but Apple’s apps are buttery smooth. I just assumed they were using swift and not a web stack to render their UI. Am I completely wrong?!
Apple Music is not buttery smooth and was just a web view for a long time. I feel like I read that this changed a few years ago. This didn’t change the fact that it’s very slow.
In case you want to save sources with the ability to fetch all possible lazy chunks, last year I made a tool to do exactly that: https://github.com/zb3/getfrontend

(note it won't work on apps.apple.com because apple has removed these sourcemaps)

Damn, I was about to clone this but it's now taken down :(
I downloaded the code from the repository yesterday, but it's really not very interesting.
Still not sure What was the excitement about.

Was it, HTML, CSS & Javascript?

Honestly the site[1] is very basic and pretty damn slow. When I click into a different category there is a noticeable delay of 1-2 seconds before the new page loads. I don't want to replicate this in any of my own projects.

1: https://apps.apple.com/

Just checked, and it's pretty snappy... under Firefox... on 10-year old hardware... that was originally a Chromebook.

Have you tried visiting the site on a worse machine?

I wanted to write, 'They have to load the entire catalogue for a category, including all the images. What did you expect?' However, having looked into it a bit more, it seems that they didn't particularly care about optimising load times.
Is there any reason sourcemaps are a genuine problem? I'm out of touch with the JS world, but I wonder if code is shared between server and client and server code may show in sourcemaps.
I remember when all websites “exposed” their source code.
How DMCA can take down code that was published in the web?
Is that a problem if the design is good & secrets did not leek as well ? :)