5 ms·
I’m super impressed by how "zillions of lines of code" got re-branded as a reasonable metric by which to measure code, just because it sounds impressive to layp
by Sharlin 9mo ago
I’m super impressed by how "zillions of lines of code" got re-branded as a reasonable metric by which to measure code, just because it sounds impressive to laypeople and incidentally happens to be the only thing LLMs are good at optimizing.
- rvz 9mo agoThese 'metrics' are deliberately meant to trick investors into throwing money into hyped up inflated companies for secondary share sales because it sounds like progress. The reality was the AI made an uncompilable mess, adding 100+ dependencies including importing an entire renderer from another browser (servo) and it took a human software engineer to clean it all up.
- chankstein38 9mo agoThat's what got me. I've never written a browser from scratch but just telling me that it took millions of lines of code made me feel like something was wrong. Maybe somehow that's what it takes? But I've worked in massive monorepos that didn't have 3million lines of code and were able to facilitate an entire business's function.
- Sharlin 9mo agoTo be fair, it easily takes 3 million lines of code to make a browser from scratch. Firefox and Chrome both have around ten times that(!) – presumably including tests etc. But if the browser is in large part third-party libraries glued together, that definitely shouldn't take 3 million lines.
- simonw 9mo agoFastRender isn't "in large part third-party libraries glued together". The only dependency that fits that bill in my opinion is Taffy for CSS grid and flexbox layout. The rest is stuff like HarfBuzz for font rendering which is an entirely cromulent dependency for a project like this.
- mghackerlady 9mo agoDepending on how functional you want the browser to be. I can technically write a web browser in a few lines of perl but you wouldn't get any styling, let alone javascript. Plus 90% of the code is likely going to fixing compatibility issues with poorly designed sites.
- jamesfinlayson 9mo agoYeah I would have thought 3 million lines for a fully functional browser is a little lean, though I imagine that Chrome and Firefox have probably reinvented some STL stuff over the years (for performance) which would bulk it out.
- jihadjihad 9mo agoIt really is insane. I really thought we had made progress stamping out the idea that more LOC == better software, and this just flies in the face of that. I was in a meeting recently where a director lauded Claude for writing "tens of thousands of lines of code in a day", as if that metric in and of itself was worth something. And don't even get me started on "What percentage of your code is written by AI?"
- MonkeyClub 9mo agoLOC per day metrics are bovine metrics: how many pounds of dung per day.
- jihadjihad 9mo agoI'd argue porcine: how many pounds of slop per day.
- Veserv 9mo agoAs Dijkstra once opined in 1988: "My point today is that, if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger."
- cedws 9mo agoIn an adage: code is a liability, not an asset.
- embedding-shape 9mo agoAs a fun exercise, I tried to see how close I could get to Cursor's results without using any Rust crates, and by making the agent actually care about the code. End results: 20K LOC for a browser that more or less works the same, on three platforms, leveraging commonly available system libraries and no 3rd party Rust crates: https://emsh.cat/one-human-one-agent-one-browser/ https://emsh.cat/one-human-one-agent-one-browser/ (https://news.ycombinator.com/item?id=46779522 https://news.ycombinator.com/item?id=46779522) I'm not entirely sure what the millions of lines of code is supposedly doing.
- atrettel 9mo agoI completely agree. The issue is that some misconceptions just never go away. People were talking about how bad lines of code is as a metric in the 1980s [1]. Its persistence as a measure of productivity only shows to me that people feel some deep-seated need to measure developer productivity. They would rather have a bad but readily-available metric than no measure of productivity. [1] https://folklore.org/Negative_2000_Lines_Of_Code.html https://folklore.org/Negative_2000_Lines_Of_Code.html
- josefritzishere 9mo agoKPIs are slowly destroying the American economy. The idea that everything can be easily measured meaningfully with simple metrics by laypeople is a myth propagated by overpaid business consultante. It's absurd and facetious. Every attempt to do so is degrading and counter-productive.
- graemep 9mo agoOther western economies too. In the UK its destroying the education system too.
- mschuster91 9mo agoThe problem is that Western societies shifted into a "zero trust" mode - on all levels. It begins with something like being able to leave your house door unlocked after going for work to that not being reasonable due to thefts and vandalism, and it ends with insane amounts of "dumb capital" being flushed into public companies by ETFs and other investment vehicles. And the latter is what's driving the push for KPIs the most - "active" ETFs already were bad enough because their managers would ask the companies they invested in to provide easily-to-grok KPIs (so that they could keep more of the yearly fee instead of having to pay analysts to dig down into a company's finances), and passive ETFs make that even worse because there is now barely any margin left to pay for more than a cursory review. America's desire for stock-based pensions is frying the world's economy with its second and third order effects. Unfortunately, that rotten system will most probably only collapse when I'm already dead, so there is zero chance for most people alive today to ever see a world free of this BS.
- add-sub-mul-div 9mo agoCiting the ability to turn on an endless faucet of code as a benefit and not a liability should be disqualifying.
- Bukhmanizer 9mo agoLines of code is just phrenology for software development, but a lot of people are very incentivized to believe in phrenology.
- brokencode 9mo agoEvery line of code is technical debt. Some of the hardest projects I’ve ever worked on involved deleting as much code as I wrote.
- patrickmay 9mo agoExactly. I once worked on a large project where the primary contractor was Accenture. They threw a party when we hit a million lines of C++. I sat in the back at a table with the other folks who knew enough to realize it should have been a wake.
- brokencode 9mo agoIt’s just the easiest metric to measure progress. Measuring real progress in terms of meeting user needs with high quality is a lot harder.
- jamesfinlayson 9mo agoOh yeah. At a previous job there was a guy who'd deleted more code than he'd written which I always found a little amusing. Being in a similar position to him now though... if it can be deleted it gets deleted.
- nunez 9mo agoIt's only impressive if you've ever only saw code as a means to an end and SLOC never really mattered. If you write code in any capacity, you'll know that high LOC counts are usually a sign of a bad time, browsers and operating systems aside.