frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Formatting a 25M-line codebase overnight

https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
47•r00k•1h ago

Comments

andrewstuart•1h ago
A major financial processing company writes it money handling systems in Ruby.

Terrifying.

skinfaxi•1h ago
Why is that terrifying?
Jtsummers•1h ago
It's not particularly terrifying. Some people really just don't like Ruby.
mikedelago•22m ago
Some folks don't like shipping
fantasizr•8m ago
ive yet to see a compelling elitist programming language opinion. especially when used at big successful companies. these companies don't function in spite of their technology choices.
sikozu•1h ago
The systems have to be written in some kind of programming language, and I think Ruby is a perfectly fine choice.
Imustaskforhelp•44m ago
Not denying that Ruby is a perfectly fine choice but within the article itself it says that Stripe runs the world's largest Ruby codebase so certainly it might be testing the constraints of the language.

The thing I am interested is that I don't suppose that Stripe always had these many LOC's and so I would be curious to know if at any point as the codebase was increasing, were they looking at other new languages which were coming like golang or rust which was more suited for their work or not and what were there decisions/thinking process to continue using ruby.

mbStavola•1h ago
Considering that it's been doing so successfully at volume for just over 15 years, I think their language choice was fine.
semiquaver•46m ago
I’d hardly call Sorbet Ruby :)
sixo•37m ago
This ought to change your mind about Ruby!
sunrunner•35m ago
Things can always be worse. It could be PHP, for example.
burnte•17m ago
Facebook runs in it, so I think the language itself is probably a fine choice.
varun_ch•1h ago
I’m shocked at the 25M line part! That is a completely unfathomable amount of code for one codebase. I really want to know more about that.
jsnell•1h ago
Right, where is the rest of the code?
mr_mitm•54m ago
They're up to 42 million now, as per the article
lukan•36m ago
That sounds even more insane to me, but I guess most of that code does not really touch financial transactions, otherwise it would be a nightmare being responsible to verify that.
bruckie•21m ago
Only 25 million? :) Google had billions a decade ago...

https://research.google/pubs/why-google-stores-billions-of-l...

hokkos•35m ago
Now it makes me wonder, are those 45M LoC are untyped ?
m12k•31m ago
https://brandur.org/nanoglyphs/015-ruby-typing#ruby-typing
c3ab8ff137•18m ago
No, Stripe has its own Ruby typechecker - https://sorbet.org/
burnte•31m ago
The floating spiral thing is so distracting I spent more time deleting it in Inspector than reading the article. I feel like they hate their readers. Awful.
CrzyLngPwd•25m ago
One of my first jobs was a small software company writing software for a small number of clients, in MS basic PDS.

The lead developer didn't like to bother with formatting code, so I wrote a tool called makenice to format his nasty spaghetti gibberish into something with good indents and layout to make it easier for us normal people to parse.

He was furious, literally spun in circles about it right in the office in front of everyone, so I wrote makenasty to format code into the way he appeared to like.

I only shared makenasty/nice with a couple of the team, who loved it, as it allowed easy conversion between something readable and something the team lead like.

He never knew about makenasty.

CrzyLngPwd•20m ago
Surely, it no longer needs to be human-readable, and the era of write-only code is finally upon us with the dawn of AI writing our mealtickets.

Why bother formatting 25m lines of slop, and why is AI wasting tokens on making code look human-readable anyway?

hobofan•10m ago
I'm surprised they went with a all-at-once reformat. Even when doing it over a weekend this is bound to mess with a lot of open PRs at their scale.

I had to introduce a formatter in a few sizeable codebases in the past (few 100k to few million LOC), and I always did it incrementally via a script that reformatted all files that are not touched in any open PR. The initial run reformatted 95% of all files. Then I ran the script every day for ~two weeks and got up to 99.5% of all files and then manually each time one of the remaining ~dozen PRs that were WIP for longer were merged.

How OpenAI delivers low-latency voice AI at scale

https://openai.com/index/delivering-low-latency-voice-ai-at-scale/
113•Sean-Der•2h ago•55 comments

I am worried about Bun

https://wwj.dev/posts/i-am-worried-about-bun/
306•remote-dev•5h ago•206 comments

Securing a DoD contractor: Finding a multi-tenant authorization vulnerability

https://www.strix.ai/blog/how-strix-found-zero-auth-vulnerability-dod-backed-startup
135•bearsyankees•4h ago•61 comments

Talking to strangers at the gym

https://thienantran.com/talking-to-35-strangers-at-the-gym/
951•thitran•10h ago•472 comments

Formatting a 25M-line codebase overnight

https://stripe.dev/blog/formatting-an-entire-25-million-line-codebase-overnight-the-rubyfmt-story
49•r00k•1h ago•26 comments

GameStop makes $55.5B takeover offer for eBay

https://www.bbc.co.uk/news/articles/cn0p8yled1do
586•n1b0m•12h ago•533 comments

Microsoft Edge stores all passwords in memory in clear text, even when unused

https://twitter.com/L1v1ng0ffTh3L4N/status/2051308329880719730
280•cft•3h ago•110 comments

Let's talk about LLMs

https://www.b-list.org/weblog/2026/apr/09/llms/
86•cdrnsf•4h ago•51 comments

Does Employment Slow Cognitive Decline? Evidence from Labor Market Shocks

https://www.nber.org/papers/w35117
156•littlexsparkee•6h ago•143 comments

Redis array: short story of a long development process

https://antirez.com/news/164
194•antirez•7h ago•74 comments

Welcome to Gas City

https://steve-yegge.medium.com/welcome-to-gas-city-57f564bb3607
15•teruakohatu•36m ago•19 comments

US healthcare marketplaces shared citizenship and race data with ad tech giants

https://techcrunch.com/2026/05/04/us-healthcare-marketplaces-shared-citizenship-and-race-data-wit...
348•ZeidJ•4h ago•123 comments

UK Fuel Price Intelligence – Market analytics from reporting stations

https://www.fuelinsight.co.uk
140•theazureguy•6h ago•69 comments

How Monero’s proof of work works

https://blog.alcazarsec.com/tech/posts/how-moneros-proof-of-work-works
205•alcazar•7h ago•163 comments

Pomiferous: The most extensive apples (pommes) database

https://pomiferous.com/
86•Ariarule•7h ago•34 comments

1966 Ford Mustang Converted into a Tesla with Working 'Full Self-Driving'

https://electrek.co/2026/05/02/tesla-1966-mustang-ev-conversion-full-self-driving/
82•Brajeshwar•6h ago•64 comments

Stop big tech from making users behave in ways they don't want to

https://economist.com/by-invitation/2026/04/29/stop-big-tech-from-making-users-behave-in-ways-the...
179•andsoitis•4h ago•118 comments

Sierra Raises $950M at $15B Valuation

https://sierra.ai/blog/better-customer-experiences-built-on-sierra
62•doppp•6h ago•86 comments

Heat pump sales rise across Europe

https://www.pv-magazine.com/2026/05/04/heat-pump-sales-rise-17-across-europe-in-q1-as-energy-pric...
160•doener•4h ago•82 comments

Show HN: nfsdiag – A NFS diagnostic application

https://github.com/lsferreira42/nfsdiag
23•lsferreira42•2d ago•1 comments

The Visible Zorker: Zork 3

https://eblong.com/infocom/visi/zork3/
29•zarlez•4h ago•1 comments

Frizbee is a tool you may throw a tag at and it comes back with a checksum

https://github.com/stacklok/frizbee
4•mooreds•2d ago•0 comments

Newton's law of gravity passes its biggest test

https://www.science.org/content/article/newton-s-law-gravity-passes-its-biggest-test-ever
116•pseudolus•9h ago•103 comments

Offenders sentenced up to 10 years for spying on TSMC

https://www.taipeitimes.com/News/front/archives/2026/04/28/2003856358
86•ironyman•3h ago•4 comments

“Kitten Space Agency”, a Spiritual Successor to “Kerbal Space Program” (2025)

https://www.space.com/entertainment/space-games/kitten-space-agency-is-the-spiritual-successor-to...
107•Tomte•4h ago•37 comments

A little comparison between R and Kap

https://blog.dhsdevelopments.com/a-little-comparison-between-r-and-kap
9•tosh•2d ago•0 comments

Trillions in Retirement Dollars Flow into Opaque Trusts

https://www.bloomberg.com/news/features/2026-05-03/trillions-in-us-retirement-dollars-flow-into-o...
92•koolhead17•4h ago•15 comments

Using “underdrawings” for accurate text and numbers

https://samcollins.blog/underdrawings/
353•samcollins•3d ago•126 comments

Why are neural networks and cryptographic ciphers so similar? (2025)

https://reiner.org/neural-net-ciphers
116•jxmorris12•2d ago•34 comments

Transformers Are Inherently Succinct

https://arxiv.org/abs/2510.19315
6•bearseascape•1h ago•1 comments