Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Laya the open source version of Jev(convaiinnovations.com ↗)
    69comments
  2. What Zig felt like, coming from Rust(besok.github.io ↗)
    25comments
  3. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    6comments
  4. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    353comments
  5. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    162comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    3comments
  7. “The Secret Life of Circuits” is here(coredump.cx ↗)
    34comments
  8. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    4comments
  9. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    515comments
  10. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    5comments
  11. San Francisco Onion Futures Company(onionfutures.com ↗)
    91comments
  12. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    163comments
  13. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    120comments
  14. Learning Another Language May Be One of the Best Ways to Keep Your Brain Healthy(theconversation.com ↗)
    3comments
  15. Cloudflare Quick Tunnels(cloudflare.com ↗)
    299comments
  16. Communication by means of modulated Johnson noise(pnas.org ↗)
    16comments
  17. How to Write with an LLM(sockpuppet.org ↗)
    356comments
  18. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    23comments
  19. SDCC – Small Device C Compiler(sourceforge.net ↗)
    22comments
  20. Saving another 100TB of RAM(cloudflare.com ↗)
    87comments
  21. Science Is Open Software(jepedersen.dk ↗)
    46comments
  22. From Stonemasons to Carpenters(thelastsoftwareengineer.substack.com ↗)
    4comments
  23. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    44comments
  24. Ctenophores: Wonders of Biology(quantamagazine.org ↗)
    6comments
  25. NASA-IBM Lunar Foundation open-Source Geospatial AI Model(usra.edu ↗)
    5comments
  26. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    118comments
  27. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    114comments
  28. OpenJev(openjev.com ↗)
    275comments
  29. Goroutine Leak Profiles(go.dev ↗)
    6comments
  30. Ray Ozzie and the Optimism of Being Early(reproof.app ↗)
    5comments

-2000 Lines of Code (2004)

179 pointsby 16y agofolklore.org
39 comments
16y agoHN ↗

The other day I calculated my net contribution to the IMVU client, in lines of code. Excluding third-party libraries, I have subtracted about 100,000 lines since 2005.

Reminds me of an old presentation by Alan Kay. He was demoing some networked virtual world he'd written, including avatars, portals, and chat. He wrote it in Smalltalk, and said it summed to 60,000 lines. He said with a bit more effort, he could probably reduce it to 20,000.

There's something to be said for a complete lack of duplication in the system.

16y agoHN ↗

"I have made this letter longer than usual, because I lack the time to make it short" - Pascal, Lettres Provinciales

16y agoHN ↗

Thanks! I think you're right! I saw the video in 2004 or 2005, so he must've just begun the project.

16y agoHN ↗

Good. Now delete those lines making those annoying ads ;)

16y agoHN ↗

Delete those people making those annoying ads. ;-)

16y agoHN ↗

Given IMVU's development practices I think your problem is more like "Delete all those people who click on photos of big-chested anime girls in sapphic embraces." (Edited to add: I assume they go on to convert as well. sigh)

Heads up to every person who wants to run an ad-based startup: remnant inventory is the term for the inventory -- i.e. page views -- you have to sell after you sell those spots which are actually worth money. Remnant inventory is nearly worthless. The only people who will pay money for it are either a) idiots who will shortly exit the business or b) people appealing to the lowest common denominator.

If you don't want your website to be cluttered up with Punch My Scantily Clad Diploma Now, My Lord, then you should charge money for it.

16y agoHN ↗

Is there code I can download for this project?

I'm about to pay $1,300 so I can legally purchase a Genera system. I'd love to look at similar projects.

16y agoHN ↗

Who was that guy who suggested using lines written plus lines deleted. Was it Knuth?

16y agoHN ↗

All numeric metrics of programmer productivity are easily gamed, but yours is particularly so: just add and delete one line repeatedly.

16y agoHN ↗

That's true, when you use the metric to influence some material gain or loss for the developer. As an indicator for the state of a project (and its speed) together with other metrics, it may not be too bad.

16y agoHN ↗

Holy shit, I just thought of this yesterday after making great progress by deleting code.

16y agoHN ↗

Always remember that you are a problem solver first and a coder second. Sometimes you can solve a customer's problem without writing a single line of code.

16y agoHN ↗

that's a great quote. i'll probably start using that.

16y agoHN ↗

"Measuring software productivity by lines of code is like measuring progress on an airplane by how much it weighs."- Bill Gates.

16y agoHN ↗

link? I'm just curious. Would love to read more about BG's thoughts on coding.

16y agoHN ↗

Can't locate a source for this on google. I'm calling urban legend.

16y agoHN ↗

"Just because Google cant find it, doesn't mean it doesn't exist" - Albert Einstein.

16y agoHN ↗

"A witty saying proves nothing" - Voltaire

Look, this saying is by Bill Gates, should have been made in the last 30 years, it returns three pages of results, and yet none of them are mentioning a source. Some are referencing each other, and some are also including the '640k should be enough for anyone' legend. Yes, it's not 100%, but the indications are not good. The ultimate counterargument of course would be a source.

16y agoHN ↗

"I hate quotations. Tell me what you know."

-- Ralph Waldo Emerson

16y agoHN ↗

"Famous remarks are seldom quoted correctly." -Simeon Strunsky

16y agoHN ↗

"Simeon Strunsky never said that" - Joe Ball

16y agoHN ↗

That's interesting because Andy, on the first episode of "Nerd TV" said Bill was big on trying to get developers brag about how little time/code/etc, and implied it was so he could try and get them to commit to smaller budgets

16y agoHN ↗

Just by including jQuery in a project I was able to shave a total of 22kb off a range of files without much trouble. But the current release version, minified jQuery is about 23kb. It's a balancing act.

EDIT: Also, in the next version of jQuery, they plan to separate out the core code such that you can include only what you need, so that 23kb will drop to only what you need.

16y agoHN ↗

For me at least, the main benefit by far of fewer lines of code is fewer bugs and maintainability. Code kilobytes rarely matter (though I concede "k" can be relevant on the web).

16y agoHN ↗

It was an easy way for me to illustrate how many lines of code I culled. I make it sound amazing, but the majority of changes involved turning 20 line functions with for loops into a simple 2 line jQuery snippet.

Also, jQuery means rarely declaring in-function variables therefore avoiding memory leaks.

Happy coders all round :)

16y agoHN ↗

You know you are doing it write when you do that.

For added value combine with sloccount when removing code (I removed $200k value from our software, fixed 8 bugs, and removed that stupid limitation about green text today)...

16y agoHN ↗

I removed $200k value from our software

That sounds like a bad thing...

16y agoHN ↗

Not when you are using sloccount to measure the 'value' of the software.

16y agoHN ↗

I remember a story (don't know from where) in which someone was hired to reduce the size of a code base. His compensation went up for each line of code deleted and went down (by a bigger amount) for each time he caused a crash.

It may not be true, but I like the story anyway.

16y agoHN ↗

can anyone help me find a favorite of mine? Its the one where they are building a program and the employee working on it had been let go from apple, but he snuck in every day to finish it.