650
top 50 comments
sorted by: hot top controversial new old
[-] vithigar@lemmy.ca 8 points 2 days ago

// these are unicode characters in four hex…

If your dev team needs a comment explaining this I have some serious concerns about their qualifications.

[-] ChaoticNeutralCzech@feddit.org 3 points 1 day ago* (last edited 1 day ago)
[-] mr_satan@lemmy.zip 96 points 3 days ago

Security through obscurity is not security. I see no reason why source maps should be unavailable.

[-] entwine@programming.dev 70 points 3 days ago

Because source maps show how shitty your organization's code and overall engineering practices are.

[-] mack@lemmy.sdf.org 9 points 2 days ago

depends.

if we're talking about a personal website nobody will care. if you are a multibillion company and there's the risk that literally anyone can create a 1:1 clone of your services... yeah that's a bit of a trouble

[-] mr_satan@lemmy.zip 8 points 2 days ago

Omitting source maps doesn't prevent that.

[-] mack@lemmy.sdf.org 4 points 2 days ago

no it doesn't, and I am very aware that if anything runs on someone's computer then it can get replicated. but it gets slightly harder, also to reverse-engineer it or find potential fallacies. as well as source maps on prod are just a waste of bandwidth

[-] mr_satan@lemmy.zip 2 points 2 days ago* (last edited 2 days ago)

Dunno, this "harder" argument while valid sounds just like false security. That's why I don't see much weight in it.

As for bandwidth, source maps are not automatically pulled from server, so it also seems like a false issue to me.

[-] Ibaudia@lemmy.world 1 points 2 days ago

No, but it's a sensible security measure. Anything to make it harder.

[-] mr_satan@lemmy.zip 3 points 2 days ago

That's the thing, it's not actually a security measure. Security through obscurity is not security. It can provide false security impression that is more harmful in my opinion.

Having source maps can encourage proper security practices. Which, in my books, very much outweighs any security benefits of hiding them.

[-] isVeryLoud@lemmy.ca 1 points 1 day ago
[-] mr_satan@lemmy.zip 2 points 1 day ago

It was mentioned before. Source map is a comment with an URL. It's not pulled automatically unless the client has devtools and supports that. It doesn't meaningfully increase the size of the site for normal users.

[-] isVeryLoud@lemmy.ca 1 points 1 day ago

Eh, true. It does clean up the payload, but I agree it's marginal.

[-] bleistift2@sopuli.xyz 142 points 3 days ago* (last edited 3 days ago)
[-] CHKMRK@programming.dev 9 points 2 days ago

Germany for example. There was just the Modern Solutions case and the ruling was that using a hex editor to get hardcoded MySQL passwords from a binary is considered hacking

[-] NotMyOldRedditName@lemmy.world 54 points 3 days ago

And now the source code is part of copilot

[-] QuazarOmega@lemy.lol 85 points 3 days ago

Copyrighted content

archived them

on GitHub

Idk man 🧐
Run the countdown to when it's taken down

[-] bluemellophone@lemmy.world 8 points 2 days ago* (last edited 2 days ago)

Yep, it’s got a DMCA takedown now

[-] QuazarOmega@lemy.lol 1 points 1 day ago

I'm not usually an "I told you so" person, but...

I told them so!

[-] refalo@programming.dev 22 points 3 days ago* (last edited 3 days ago)

There's lots of content sitting just below the surface on github. Any time you make a PR on a repo, even if it gets closed or "deleted" by the repo owner, the actual link to the file itself stays there forever if you save it. Github's own dmca repo even has warez links on it, sitting there for years.

[-] QuazarOmega@lemy.lol 5 points 3 days ago

Oh that's cool, I had no idea! Though does that apply to content removed for DMCAs?

[-] refalo@programming.dev 4 points 3 days ago

Usually entire repos are disabled in that case. I've never tried to access hidden content on a DMCA-removed repo, but I assume it would not work.

load more comments (2 replies)
[-] chazwhiz@lemmy.world 93 points 3 days ago

Isn’t that just effectively un-minified? It’s just the client side code in the first place?

[-] TeamAssimilation@infosec.pub 86 points 3 days ago

Comments and full-length names make the source way more accessible.

[-] RagingRobot@lemmy.world 4 points 2 days ago

Yeah but even then they should be writing secure code anyways so it doesn't matter if someone reads it. It's just ui code. It's always readable

[-] locuester@lemmy.zip 44 points 3 days ago
[-] Rusty@lemmy.ca 7 points 2 days ago
[-] locuester@lemmy.zip 5 points 2 days ago

This is why you self host a private Gitea instance and have it auto mirror all of your github repos.

I forked it, and my instance automatically grabbed me a forever copy.

[-] boonhet@sopuli.xyz 9 points 3 days ago

Huh, I hate doing front end but I feel like in this team I'd manage. Shit even has comments.

[-] CodingCarpenter@lemmy.ml 20 points 3 days ago

Once the code is minified it's basically unreadable by humans it's useless this is far more readily available to anybody who may be curious about the work being done

load more comments (1 replies)
[-] mmmac@lemmy.zip 26 points 3 days ago

Our international teams kept enabling sourcemaps and I just had devops lock the directory to vpn access only 🤷

I know sourcemaps aren't the end of the world as it's all client side code that lives on the clients computer but it just feels dirty

[-] dogs0n@sh.itjust.works 62 points 3 days ago

SVELTE 🥹 (im very happy to see svelte)

Also I'm scared that this person may be risking their github account by posting this, I dunno if it's legal to "distribute" apples website code yourself. If not, best hope they dont ban your whole account.

[-] 87Six@lemmy.zip 13 points 3 days ago

I mean... They kinda distributed it themselves /s

[-] mudkip@lemdro.id 16 points 3 days ago

we love svelte

[-] northernlights@lemmy.today 9 points 3 days ago

Or even sue them

[-] kibiz0r@midwest.social 46 points 3 days ago

You’re supposed to disable source maps in prod?

Asking for a friend

[-] dreadbeef@lemmy.dbzer0.com 35 points 3 days ago

if you think your source code is that precious and unique and special, go ahead and worry about it haha

[-] dogs0n@sh.itjust.works 22 points 3 days ago

Just to save on wasted bandwidth for the client (and your server) is why I would disable them.

[-] brian@programming.dev 38 points 3 days ago

they're different files generally, the only client that will automatically request them is a debugger.

you turn them off because you don't want to expose your full source code. if you would be ok making your webpage git repo public then making sourcemaps available is fine.

[-] mic_check_one_two@lemmy.dbzer0.com 3 points 2 days ago* (last edited 2 days ago)

AFAIK, the source maps are only actually requested/downloaded when the user opens the dev tools. There’s no reason to have them automatically download for every visitor. The enable/disable simply toggles whether or not the request is accepted when the user opens the dev tools.

So if my understanding is correct, keeping it enabled wouldn’t really impact server load, unless lots of users are constantly using the dev tools.

[-] dreamkeeper@literature.cafe 6 points 2 days ago

I work for a large software corp and we generally keep them in prod because it makes debugging prod issues much easier. The browser only downloads them when the dev tools are open.

[-] Jankatarch@lemmy.world 6 points 2 days ago

Incompetent-source!

[-] 0x0@lemmy.dbzer0.com 29 points 3 days ago

Is this interesting for some reason?

[-] panda_abyss@lemmy.ca 50 points 3 days ago

It’s how the web worked before minifiers, so kinda but not really.

You just have comments and original variable/function names.

I’m sure someone will argue this helps scrapers or hackers, but really it’s not that big of a deal.

load more comments (2 replies)
load more comments (1 replies)

Yo gimme a repo link, you can’t blueball us like that

[-] oopsallnaps@piefed.ca 12 points 3 days ago

iirc Apple music's web ui also has sourcemaps, but I'm not subbed to apple music anymore to check. Its neat, but not really a huge blunder, nor takedown worthy.

[-] silt_haddock@lemmy.world 14 points 3 days ago

I’m gonna download this to my iPhone, just in case.

Try and stop me, Tim Apple!

load more comments
view more: next ›
this post was submitted on 04 Nov 2025
650 points (100.0% liked)

Programmer Humor

27246 readers
1971 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS