Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. "They had no concept of a duty of care to their users." (aresluna.org)
    88comments
  2. In an $80 Motel Room, a Discovery to Shed Light on the Origins of Life (nytimes.com)
    18comments
  3. The Normalization of Inexplicable Failures (ihatethefuture.com)
    1comments
  4. Replacing the old battery on rechargeable bike lights (jvns.ca)
    16comments
  5. Writing Efficient C++ Code (asawicki.info)
    3comments
  6. Font where each token is equal-width (twitter.com/amplifiedamp)
    5comments
  7. Flip Fluid on Flip Dots (mitxela.com)
    17comments
  8. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    18comments
  9. Show HN: A CC0 museum of retro 3D tricks you can paste into a page (3d-retro.com)
    5comments
  10. Ten Lines of Code That Changed My World (pixelambacht.nl)
    2comments
  11. Does Georgism work? Five years later (astralcodexten.com)
    349comments
  12. Unsealed Briefs in Authors’ Case v. Microsoft/OpenAI (authorsguild.org)
    473comments
  13. Go Concurrency Distilled (antonz.org)
    134comments
  14. Finally, A True Blue Rose Exists (sciencenews.org)
    26comments
  15. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    250comments
  16. The internet discovers TLA+. Now what? (reasonable.io)
    40comments
  17. Rusty thoughts on "Parse, don't validate" (thegreenplace.net)
    11comments
  18. DeepSeek Elastic Compute (DSec) (arxiv.org)
    94comments
  19. Show HN: Reladraw – A diagram language where you decide where to place things (github.com/reladraw)
    95comments
  20. 10 Tells of a Slop UI (hereticpleb.vercel.app)
    120comments
  21. postmarketOS Rebrand: Nura (nura.eco)
    —discuss
  22. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    786comments
  23. "As a Language Model": Chat Template Switches LLM Self-Referential Voice (arxiv.org)
    88comments
  24. Biology might not be quantum, but its math is quantumlike (quantamagazine.org)
    41comments
  25. A searchable library of forgotten public-domain film clips from 1915 onward (movingimagearchive.com)
    26comments
  26. An agent used DNS to reach an external chatbot (alignment.openai.com)
    141comments
  27. Fifteen years later, the Apple Cards origin story (lexontech.org)
    110comments
  28. How I changed teaching after AI managed to do all my homework assignments (thelastsoftwareengineer.substack.com)
    250comments
  29. Exploding variance of means of exponentials: least-squares to the rescue (francisbach.com)
    —discuss
  30. Promising discoveries about the potential for life on one of Saturn’s icy moons (fu-berlin.de)
    51comments

Ten Lines of Code That Changed My World

15 pointsby 2h agopixelambacht.nl
2 comments
17m agoHN ↗

I have been collecting small code snippets that would make for good tattoos and I have to say, some of these ones would probably make a good addition to the collection.

I'm partially more in favor of "red" instead of "hotpink" for CSS, but that's just me.

13m agoHN ↗

The BASIC print+goto loop might have been my first ever program too (in the 80s) but one thing for sure for me: it was definitely not “Hello, World”. I and others filled the screen with any number of silly things, random words, jokes and juvenile phrases, whatever, but for some reason, “Hello, World!” was a C thing, and I remember seeing it for the first time in a C class in high school, and then much more often in college.

I have memories of ‘poke’ as well. On the Atari 800 you could poke memory to change the keystroke repeat rate and delay before repeat started, so obviously we would turn down the delay to zero and turn up the repeat to max (it was maybe 60 characters per second), so anyone trying to type couldn’t hit the keys quickly enough to avoid repeating. You’d have to power-cycle the machine to fix it, so it was hilarious to 11 year old me.

Similar to his description of ‘poke’, but different mechanism - using debug.com on an IBM PC jr to edit the Ultimate III save files, and give myself maximum money and lives.

Good times!