this post was submitted on 04 Nov 2025
630 points (98.6% liked)

Programmer Humor

27389 readers
2039 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
 
top 50 comments
sorted by: hot top controversial new old
[–] bleistift2@sopuli.xyz 140 points 2 weeks ago* (last edited 2 weeks ago) (1 children)
[–] CHKMRK@programming.dev 11 points 2 weeks 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

[–] chazwhiz@lemmy.world 96 points 2 weeks ago (2 children)

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

[–] TeamAssimilation@infosec.pub 84 points 2 weeks ago (1 children)

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

[–] RagingRobot@lemmy.world 4 points 2 weeks 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 42 points 2 weeks ago (2 children)
[–] boonhet@sopuli.xyz 9 points 2 weeks ago

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

[–] Rusty@lemmy.ca 7 points 2 weeks ago (1 children)
[–] locuester@lemmy.zip 6 points 2 weeks 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.

[–] mr_satan@lemmy.zip 95 points 2 weeks ago (5 children)

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

[–] entwine@programming.dev 74 points 2 weeks ago (1 children)

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

[–] phoenixz@lemmy.ca 44 points 2 weeks ago (2 children)

Ding ding ding

Open source code is usually quite nice and well done because money pressure is way less of an issue and everyone knows people will be looking at your code

[–] ulterno@programming.dev 20 points 2 weeks ago

If you look at the casual code that I have shamelessly made public on my GitLab, that might change your mind on that.

[–] Lifter@discuss.tchncs.de 9 points 2 weeks ago (1 children)

That's probably also why development is usually really slow and most maintainers can't keep up/give up.

[–] SleeplessCityLights@programming.dev 16 points 2 weeks ago (1 children)

Nope, it is simply because they are overwhelmed. Either it's too much work to do after your day job or just too much work for one person.

load more comments (1 replies)
[–] mack@lemmy.sdf.org 9 points 2 weeks ago (1 children)

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 weeks ago (3 children)

Omitting source maps doesn't prevent that.

[–] mack@lemmy.sdf.org 4 points 2 weeks ago (1 children)

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

load more comments (1 replies)
load more comments (2 replies)
load more comments (3 replies)
[–] QuazarOmega@lemy.lol 84 points 2 weeks ago (3 children)

Copyrighted content

archived them

on GitHub

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

[–] refalo@programming.dev 22 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

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 2 weeks ago (1 children)

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

[–] refalo@programming.dev 4 points 2 weeks 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.

[–] bluemellophone@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

Yep, it’s got a DMCA takedown now

load more comments (1 replies)
[–] nihilomaster@lemmy.world 3 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

You could argue that since it's publicly available and this repo only archives it that... I don't know man Copyright law is confusing.

[–] rtxn@lemmy.world 4 points 2 weeks ago

I think you can get some kind of exemption for archival purposes. I know that the Internet Archive has one. But I also know that ultimately Microsoft is responsible for the data hosted on Github, and Microsoft's interest is to not even risk getting sued.

[–] dogs0n@sh.itjust.works 61 points 2 weeks ago (3 children)

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.

[–] mudkip@lemdro.id 15 points 2 weeks ago

we love svelte

[–] 87Six@lemmy.zip 14 points 2 weeks ago

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

[–] northernlights@lemmy.today 9 points 2 weeks ago

Or even sue them

[–] NotMyOldRedditName@lemmy.world 53 points 2 weeks ago

And now the source code is part of copilot

[–] kibiz0r@midwest.social 41 points 2 weeks ago (2 children)

You’re supposed to disable source maps in prod?

Asking for a friend

[–] dreadbeef@lemmy.dbzer0.com 34 points 2 weeks 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 17 points 2 weeks ago (3 children)

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

[–] brian@programming.dev 39 points 2 weeks 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.

[–] dreamkeeper@literature.cafe 6 points 2 weeks 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.

load more comments (1 replies)
[–] gravitas_deficiency@sh.itjust.works 30 points 2 weeks ago (1 children)

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

[–] mmmac@lemmy.zip 27 points 2 weeks 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

[–] 0x0@lemmy.dbzer0.com 27 points 2 weeks ago (2 children)

Is this interesting for some reason?

[–] panda_abyss@lemmy.ca 47 points 2 weeks ago (2 children)

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.

[–] Axolotl_cpp@feddit.it 9 points 2 weeks ago* (last edited 2 weeks ago)

It help users that make websites styles!

Eg. I have a discord style for fixing their bullshit

[–] dreamkeeper@literature.cafe 2 points 2 weeks ago

Anyone capable of doing damage already knows how to format and read minified code anyway. I do it in prod all the time when I want to test something with an override, which causes the source map to become invalid.

load more comments (1 replies)
[–] silt_haddock@lemmy.world 16 points 2 weeks ago

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

Try and stop me, Tim Apple!

[–] oopsallnaps@piefed.ca 9 points 2 weeks 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.

[–] vithigar@lemmy.ca 9 points 1 week ago (1 children)

// 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 week ago* (last edited 1 week ago)
[–] Jankatarch@lemmy.world 6 points 2 weeks ago

Incompetent-source!

load more comments
view more: next ›