frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Samsung Embeds IronSource Spyware App on Phones Across WANA

https://smex.org/open-letter-to-samsung-end-forced-israeli-app-installations-in-the-wana-region/
232•the-anarchist•4h ago•115 comments

Sega mistakenly reveals sales numbers of popular games

https://www.gematsu.com/2025/06/sega-mistakenly-reveals-sales-numbers-for-like-a-dragon-infinite-wealth-persona-3-reload-shin-megami-tensei-v-and-more
57•kelt•1h ago•13 comments

AbsenceBench: Language models can't tell what's missing

https://arxiv.org/abs/2506.11440
213•JnBrymn•9h ago•44 comments

Phoenix.new – Remote AI Runtime for Phoenix

https://fly.io/blog/phoenix-new-the-remote-ai-runtime/
439•wut42•16h ago•195 comments

Harper – an open-source alternative to Grammarly

https://writewithharper.com
263•ReadCarlBarks•11h ago•57 comments

Chromium Switching from Ninja to Siso

https://groups.google.com/a/chromium.org/g/chromium-dev/c/v-WOvWUtOpg
31•hortense•2d ago•15 comments

YouTube's new anti-adblock measures

https://iter.ca/post/yt-adblock/
384•smitop•14h ago•655 comments

Learn You Galois Fields for Great Good (00)

https://xorvoid.com/galois_fields_for_great_good_00.html
53•signa11•7h ago•8 comments

Tiny Undervalued Hardware Companions (2024)

https://vermaden.wordpress.com/2024/03/21/tiny-undervalued-hardware-companions/
49•zdw•5h ago•9 comments

Mathematicians Hunting Prime Numbers Discover Infinite New Pattern

https://www.scientificamerican.com/article/mathematicians-hunting-prime-numbers-discover-infinite-new-pattern-for/
36•georgecmu•2d ago•17 comments

Augmented Vertex Block Descent (AVBD)

https://graphics.cs.utah.edu/research/projects/avbd/
15•bobajeff•3h ago•0 comments

Wiki Radio: The thrilling sound of random Wikipedia

https://www.monkeon.co.uk/wikiradio/
100•if-curious•10h ago•22 comments

Visualizing environmental costs of war in Hayao Miyazaki's Nausicaä

https://jgeekstudies.org/2025/06/20/wilted-lands-and-wounded-worlds-visualizing-environmental-costs-of-war-in-hayao-miyazakis-nausicaa-of-the-valley-of-the-wind/
204•zdw•16h ago•60 comments

Show HN: A color name API that maps hex to the closest human-readable name

https://meodai.github.io/color-name-api/
8•meodai•1d ago•0 comments

Show HN: Nxtscape – an open-source agentic browser

https://github.com/nxtscape/nxtscape
241•felarof•15h ago•166 comments

AMD's Freshly-Baked MI350: An Interview with the Chief Architect

https://chipsandcheese.com/p/amds-freshly-baked-mi350-an-interview
85•pella•10h ago•39 comments

People instantly decide whether to trust a product based on design

https://www.andrewcoyle.com/blog/beauty-is-objective
23•coyleandrew•1h ago•8 comments

College baseball, venture capital, and the long maybe

https://bcantrill.dtrace.org/2025/06/15/college-baseball-venture-capital-and-the-long-maybe/
149•bcantrill•4d ago•106 comments

Show HN: Inspect and extract files from MSI installers directly in your browser

https://pymsi.readthedocs.io/en/latest/msi_viewer.html
101•rmast•11h ago•19 comments

Oklo, the Earth's Two-billion-year-old only Known Natural Nuclear Reactor (2018)

https://www.iaea.org/newscenter/news/meet-oklo-the-earths-two-billion-year-old-only-known-natural-nuclear-reactor
178•keepamovin•21h ago•94 comments

Tuxracer.js play Tux Racer in the browser

https://github.com/ebbejan/tux-racer-js
108•retro_guy•14h ago•34 comments

Verified dynamic programming with Σ-types in Lean

https://tannerduve.github.io/blog/memoization-sigma/
71•rck•3d ago•24 comments

Alpha Centauri

https://www.filfre.net/2025/06/alpha-centauri/
128•doppp•14h ago•47 comments

Smartphones: Parts of Our Minds? Or Parasites?

https://www.tandfonline.com/doi/full/10.1080/00048402.2025.2504070
68•cratermoon•12h ago•25 comments

A brief, incomplete, and mostly wrong history of robotics

https://generalrobots.substack.com/p/a-brief-incomplete-and-mostly-wrong
110•Bogdanp•4d ago•60 comments

Cracovians: The Twisted Twins of Matrices

https://marcinciura.wordpress.com/2025/06/20/cracovians-the-twisted-twins-of-matrices/
65•mci•15h ago•29 comments

Rose-Gold-Tinted Liquid Glasses

https://lmnt.me/blog/rose-gold-tinted-liquid-glasses.html
35•mantia•1d ago•5 comments

A Python-first data lakehouse

https://www.bauplanlabs.com/blog/everything-as-python
113•akshayka•3d ago•32 comments

Every Google &udm=? in the world (2024)

https://serpapi.com/blog/every-google-udm-in-the-world/
29•zdw•3d ago•0 comments

Dancing Naked on the Head of a Pin: The Early History of Microphotography

https://publicdomainreview.org/essay/dancing-naked-on-the-head-of-a-pin
55•crescit_eundo•2d ago•3 comments
Open in hackernews

I Dropped the Production Database on a Friday Night

https://vince.beehiiv.com/p/how-i-dropped-the-production-database-on-a-friday-night
30•vincejos•3d ago

Comments

cranberryturkey•3d ago
i dropped the dev database once at PayPal back in 2006
grepfru_it•2h ago
I once remailed emails to IEEE and ACM. I was ready to quit and take the L for such a bad mistake. Not write a blog post for Friday evening consumption
Arnt•2d ago
I hope the poster will learn about transactions at some point. Postgres even lets you alter the schema within a transaction.

What I learned, once upon a time, is that with a database, you shouldn't delete data you want to keep. If you want to keep something, you use SQL's fine UPDATE to update it, you don't delete it. Databases work best if you tell them to do what you want them to do, as a single transaction.

XorNot•3h ago
I mean

UPDATE users SET name='test'

is still effectively a delete...

Insanity•4h ago
Assuming storage cost is not a huge concern, I’m a big fan of soft deletes everywhere. Also leaves an easy “audit trail” to see who tried to delete something.

Of course - there are exceptions (gdpr deletion rules etc)

bloudermilk•4h ago
I dropped the production database at the first startup I worked at, three days after we went live. We were scrappy™ and didn’t have backups yet, so we lost all the data permanently. I learned that day that running automated tests on a production database isn’t a good idea!
noman-land•4h ago
I got deep pangs of pain and anguish for you and everyone involved. These lessons hurt so much to learn the hard way.
ghushn3•3h ago
> I learned that day that running automated tests on a production database isn’t a good idea!

There's novel lessons to be learned in tech all the time.

This is not one of them.

doubled112•3h ago
Learn lessons from other people. You can't learn them all yourself.
wombatpm•3h ago
Here is another one: Don't trust ops when they say they have backups. I asked and was told there are weekly full backups, with daily incrementals. The time came when I needed a production DB restored due to an upgrade bug in our application. That was bad - thank $DEIITY we have backups.

OPS: Huh, it appears we can't find your incremental.

ME: Well just restore the weekly, its only Tuesday.

Two Days later.

OPS:About that backup. Turns out it's a backup of the servers, not the database. We'll have to restore to new VM's in order to get at the data.

ME: How did this happen?

OPS: Well the backups work for MSSQL Server.

ME: This is PostgreSQl.

OPS: Yeah, apparently we started setting that up but never finished.

ME: You realize we have about 20 applications using that database?

OPS: Now we do.

Lesson: Until you personally have seen a successful restore from backup, you do not have backups. You have hopes and prayers that you have backups. I am forever in the Trust but Verify camp.

citizenpaul•2h ago
If your company is big enough to have dedicated ops then it should be running regular tests on backups. A disaster recovery process if you will.

At some point though its not your problem when the company is big enough. Are you gonna do everyone's job? You tell em what you need in writing and if they drop the ball its their head.

physix•4h ago
I dunno. The effort needed to ensure you have backups is tiny compared to the work done to create the product. And to pull a backup before deleting stuff in production only needs a smidgen of experience.

They were extremely lucky. Imagine what the boss would have said if they hadn't managed to recover the data.

endorphine•3h ago
This _was_ one of the bosses.
physix•2h ago
Ah, yes.

> I immediately messaged my co-founders.

peterldowns•4h ago
The “and honestly?” phrase smells like AI writing to the point I stopped there and closed the post.

Don’t fuck your database up and do have point-in-time rollbacks. No excuses it’s not hard. Not something to be proud of.

pton_xd•3h ago
Yeah, the whole thing is full of AI-isms. Started skimming and every other sentence has one.

"Picture this: Panic mode activated. You heard that right. But here's what surprised me the most" and so on. Ugh.

mulmen•2h ago
Let he who is without sin cast the first DELETE CASCADE.
munchler•4h ago
Developing directly on the production database with no known backups. Saved from total disaster by pure luck. Then a bunch of happy talk about it being a "small price to pay for the lessons we gained" and how such failures "unleash true creativity". It's amazing what people will self-disclose on the internet.
jacobsenscott•3h ago
Yeah. Imagine everything else that's completely wrong in that app.
000ooo000•3h ago
I cut my dev teeth in a financial institution so I'll concede I'm biased away from risk, but devving directly on the prod DB, not having a local enviroment to test changes against, and worse: literally no backups.. it screams wreckless, stupid, cheap, arrogant, and immature (in the tech sense). Nothing I'd like my name against publicly.
physix•2h ago
A colleague upgraded the production database for a securities financing settlement system on a Friday evening by accident 20 years ago.

We were devs with root access to production and no network segregation. He wanted to upgrade his dev environment, but chose the wrong resource file.

He was lucky it was a Friday, because it took us the whole weekend working round the clock to get the system and the data to a consistent state by start of trading.

We called him The Dark Destroyer thereafter.

So I would add network segregation to the mix of good ideas for production ops.

grepfru_it•2h ago
I’m building my toy project and I have an LTO drive taking backups every night. Here I am complaining that having 2Tb of backups is too much.

lol good luck op

orochimaaru•2h ago
That's the first thing I took away. The author ignores every sane software engineering practice, is saved by pure luck and then dives into what commands not to use in supabase. Why do this? Why not spend a week or two before you launch to setup a decent ci/cd pipeline? That's the real lesson here.
lovehashbrowns•1h ago
Right?! This whole post is kinda absurd. It has the feel of a kid putting a fork into an outlet, getting the shock of a lifetime and then going “and thanks to this, everyone in my household now knows not to put a fork into an outlet.” You didn’t have to go through all this to figure out that you need backups. The fluff is the cherry on top
max0563•4h ago
Uhh, no, the answer is not to avoid cascading deletes. The answer is to not develop directly on a production database and to have even the most basic of backup strategies in place. It is not hard.

Also, “on delete restrict” isn’t a bad policy either for some keys. Make deleting data difficult.

throwdbaaway•2h ago
> Here's the technical takeaway: Never use CASCADE deletes on critical foreign keys. Set them to NULL or use soft deletes instead. It's fine for UPDATE operations, but it's too dangerous for DELETE ones. The convenience of automatic cleanup isn't worth the existential risk of chain reactions.

I actually agreed 100% with this learning, especially the last sentence. The younger me would write a long email to push for ON DELETE CASCADE everywhere. The older me doesn't even want to touch terraform, where an innocent looking update can end up destroying everything. I will rather live with some orphaned records and some infra drifts.

And still I got burnt few months ago, when I inadvertently triggered some internal ON DELETE CASCADE logic of Consul ACL.

(I do agree with your other points)

oulu2006•3h ago
This is such a poorly written post, and im sure there are on-going disasters waiting to happen -- I've built 3 startups and sold 2 of them and never ever developed on production. ?? What level of crazy is this?
codesnik•1h ago
supabase kiinda pushes you in that direction though.
heroprotagonist•3h ago
I'm sorry, but there's "move fast and break things" and then there's a group of junior devs not even bothering to google a checklist of development or moving to production best practices.

Your Joe AI customers should be worried. Anyone actually using the RankBid you did a Show HackerNews on 8 months ago should be worried (particularly by the "Secure by design: We partner with Stripe to ensure your data is secure." line.

If you don't want to get toasted by some future failure where you won't be accidentally saved by a vendor, then maybe start learning more on the technical side instead of researching and writing blogspam like "I Read 10 Business Books So You Don't Have To".

This might sound harsh, but it's intended as sound advice that clearly nobody else is giving you.

geuis•2h ago
Owww. The first or second paragraph of this made me cringe

"I had just finished what I thought was a clean migration: moving our entire database from our old setup to PostgreSQL with Supabase" ... on a Friday.

Never do prod deploys on a Friday unless you have at least 2 people available through the weekend to resolve issues.

The rest of this post isn't much better.

And come one. Don't do major changes to a prod db when critical team members have signed off for a weekend or holiday.

I'm actually quite happy OP posted their experiences. But it really needs to be a learning experience. We've all done something like this and I bet a lot of us old timers have posted similar stories.

grepfru_it•2h ago
No. Never release/upgrade on a Friday. Had too many late night weekends when I should be happily drinking beer. Never release at eod Friday. Never.
Arainach•2h ago
>Here's the technical takeaway: Never use CASCADE deletes on critical foreign keys.

The technical takeaway, as others have said, is to do prod deployment during business hours when there are people around to monitor and to help recover if anything goes wrong, and where it will be working hours for quite a while in the future. Fridays are not that.

danesparza•2h ago
Also: don't brag about doing the opposite of what this guy says.
heyarviind2•2h ago
Your website title is "Profitable Programming" with a blog post "How I Dropped the Production Database on a Friday Night"

Thats not very profitable

RVuRnvbM2e•2h ago
This is a good story and something everyone should experience in their career even just for the lesson in humility. That said:

> Here's the technical takeaway: Never use CASCADE deletes on critical foreign keys. Set them to NULL or use soft deletes instead. It's fine for UPDATE operations, but it's too dangerous for DELETE ones. The convenience of automatic cleanup isn't worth the existential risk of chain reactions.

What? The point of cascading foreign keys is referential integrity. If you just leave dangling references everywhere your data will either be horribly dirty or require inconsistent manual cleanup.

As I'm sure others have said: just use a test/staging environment. It isn't hard to set up even if you are in startup mode.

JonoBB•1h ago
> The point of cascading foreign keys is referential integrity.

Not quite. Databases can enforce referential integrity through foreign keys, without cascading deletes being enabled.

“On delete restrict” vs “on delete cascade” still enforces referential integrity, and is typically a better way to avoid the OP’s issue.

booleandilemma•2h ago
Who is this guy? He seems like a poser. I wouldn't be surprised if these articles are AI-generated.
grepfru_it•2h ago
To be fair this was the norm 10 years ago. Just seems like he is stuck in the past. Really no excuse to provision an ec2 volume and dump all backups there. I’m not even in prod yet and have full backups to LTO to be ready for launch next month
danesparza•2h ago
This was never the norm for successful companies. This is only the norm for cowboys who have more pizza than good sense.
lawgimenez•2h ago
Did I read that correctly? They’re on Supabase’ free plan in production?

We’re just getting started and we’re even in Supabase’ paid plan.

catapps•2h ago
Echoing the other comments about just how bad the setup here is. Setting up staging/dev environments does not take so much time as to put you behind your competition. There's a vast, VAST chasm between "We're testing on the prod DB with no backups" and the dreaded guardrails and checkboxes.

That being said, I would love to see more resources about incident management for small teams and how to strike this balance. I'm the only developer working on a (small, but somehow super political/knives-out) company's big platform with large (F500) clients and a mandate-from-heaven to rapidly add features -- and it's by far the most stressed out I've ever been in my career if not life. Every incident, whether it be the big GCP outage from last week or a database crash this week, leads to a huge mental burden that I have no idea how to relieve, and a huge passive-aggressive political shitstorm I have no idea how to navigate.

b0a04gl•1h ago
this is exactly how you earn your prod stripes. dropped the db on day 3? good. now you’re officially a backend engineer.

no backups? perfect. now you'll never forget to set one up again. friday night? even better. you got the full rite of passage.

people act like this's rare. it’s not. half of us have nuked prod, the other half are lying or haven't been given prod access yet.

you’re fine. just make the checklist longer next time. and maybe alias `drop` to `echo "no"` for a while