frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Making code last a long time

https://twitter.com/jonathan_blow/status/1923414922484232404
28•robinhouston•8mo ago

Comments

turtleyacht•8mo ago
Make and maintain the virtual machine that runs your program, which executes custom instructions.

See uxn and justification: https://wiki.xxiivv.com/site/now_lie_in_it.html

And https://100r.co/site/story.html

kevmo314•8mo ago
> The way you make code last a long time is you minimize dependencies that are likely to change and, to the extent you must take such dependencies, you minimize the contact surface between your program and those dependencies.

A lot of value is driven from those dependencies though. Zapier as a pointed example: Zapier sans dependencies is ... well I don't even know. So sure, you could avoid dependencies at all cost, but at some point you might end up deleting the reason someone else wants to use your code in the first place.

Of course, if you're writing code only for yourself that will totally work, but most professional software engineers are not -- it's a balance and it's not fair to say all they have to do is stop writing glue code.

j45•8mo ago
Your example of Zapier dependence resonates - being sure to put a simple layer between your code and Zapier is the critical component.

The code makes the same call to a Zapier type command but it could be routed to Zapier today, and somewhere else in the future.

This can take a nominal amount of time longer than integrating Zapier directly.

It could be a couple more tables to setup and manage, or it can be done in the code somewhere.

caseyohara•8mo ago
I've been working on the same product for ~13 years and I can confidently say the most important thing to ensure the longevity and long-term maintainability of a codebase is aggressive minimization of dependencies.

Engineering is all about compromises. If near-term velocity is more important to you than long-term evolution and maintainability, then go ahead and use all of the dependencies if it allows you to ship faster. But that is a form of technical debt that you will have to pay down eventually.

QuadrupleA•8mo ago
What are you doing with Zapier that you couldn't do with your own code, or carefully curated small set of libraries? For networked services, the REST APIs of popular providers (Stripe, AWS, etc.) are usually kept backwards compatible for a long time.
henning•8mo ago
I was about to comment how easy Zig makes it to make platform layers where the right code for an OS is compiled at compile-time and AFAIK there is no runtime cost, it's basically conditional compilation. But the Zig language itself is incredibly unstable and code you write now probably won't compile a year from now.
taylorallred•8mo ago
This seems like another case where jblow's opinions are guided by his experience as a game dev. Games can be "finished" and never touched again. I think I mostly agree with him that software could be made to be timeless to some degree. But, in the world of web apps and saas, the culture is to offload much of the work to third party libraries/APIs which locks you into a never-ending cycle of dependency management. I don't know if this culture is totally necessary (maybe to ship fast and keep up with security updates?), but in a world where users expect software to be constantly improving you can't expect anything to be "done". Maybe you could get close if you built everything in-house, but even still you have to keep up with security flaws.
QuadrupleA•8mo ago
From experience - if you look at the "security flaws" in detail that updates and patches address, an app with good dependency hygiene is rarely vulnerable to them, and doesn't need the purported fixes. So in those cases it's mostly a comforting mirage that your software is improving as you do "security updates" on your libraries and dependencies, except in rare cases.

And, security updates should not break your app! What breaks your app are feature changes, API changes, and the like, which is a breach of backwards compatibility and IMHO kind of lazy and hostile on the part of the library developers. It creates massive unnecessary work for developers, and unnecessary bugs and problems for millions of end users.

boznz•8mo ago
Software in a closed ecosystem should run for the life of that ecosystem, an example would be Firmware on a non-connected device. eg the ECU in my car from 1991.
juancn•8mo ago
I kind of agree. There's another world, where software lasts a really long time, it's a much better world, but just a few of us get to live in it.

Building tools for other engineers is where it's at, the library maintainers for long lived libraries, like libc or any collections library.

If you get a sorting algorithm in a mainstream language library, it will likely live forever (or forever-ish in software terms).

The harder the problem you solve (in the math sense) the more likely that if you craft that code properly and carefully, it will outlive you.

burnt-resistor•8mo ago
Well, when I was in school, the goals were wide compatibility and portability. I was writing network C code in the 00's that could run without any changes on Windows, Linux, FreeBSD, HP-UX, AIX, SGI, SCO, and Solaris.

Code only "rots" when its dependencies rot from assholes who churn the language or break API promises. These low expectations lead to normalization of deviancy that churn without clear and present value is "okay", when it's merely job security or coding theater to appease others that everything must be touched and changed constantly or otherwise it's "broken".

From Tobacco to Ultraprocessed Food: How Industry Fuels Preventable Disease

https://onlinelibrary.wiley.com/doi/10.1111/1468-0009.70066
36•jbotz•1h ago•30 comments

What's up with all those equals signs anyway?

https://lars.ingebrigtsen.no/2026/02/02/whats-up-with-all-those-equals-signs-anyway/
10•todsacerdoti•12m ago•0 comments

Floppinux – An Embedded Linux on a Single Floppy, 2025 Edition

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
132•GalaxySnail•5h ago•87 comments

Astrological CPU Scheduler

https://github.com/zampierilucas/scx_horoscope
43•fratellobigio•5d ago•9 comments

The Codex App

https://openai.com/index/introducing-the-codex-app/
676•meetpateltech•15h ago•485 comments

How does misalignment scale with model intelligence and task complexity?

https://alignment.anthropic.com/2026/hot-mess-of-ai/
182•salkahfi•9h ago•52 comments

Anki ownership transferred to AnkiHub

https://forums.ankiweb.net/t/ankis-growing-up/68610
390•trms•13h ago•124 comments

Coding assistants are solving the wrong problem

https://www.bicameral-ai.com/blog/introducing-bicameral
123•jinhkuan•5h ago•66 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
441•wodniok•16h ago•218 comments

GitHub experience various partial-outages/degradations

https://www.githubstatus.com?todayis=2026-02-02
213•bhouston•12h ago•66 comments

See how many words you have written in Hacker News comments

https://serjaimelannister.github.io/hn-words/
72•Imustaskforhelp•3d ago•107 comments

Archive.today is directing a DDoS attack against my blog?

https://gyrovague.com/2026/02/01/archive-today-is-directing-a-ddos-attack-against-my-blog/
160•gyrovague-com•2d ago•50 comments

LNAI – Define AI coding tool configs once, sync to Claude, Cursor, Codex, etc.

https://github.com/KrystianJonca/lnai
6•iamkrystian17•1h ago•1 comments

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
693•g-mork•11h ago•1544 comments

The Connection Machine CM-1 "Feynman" T-shirt

https://tamikothiel.com/cm/cm-tshirt.html
78•tosh•4d ago•16 comments

Ask HN: Who is hiring? (February 2026)

272•whoishiring•17h ago•337 comments

Carnegie Mellon Unversity Computer Club FTP Server

http://128.237.157.9/pub/
85•1vuio0pswjnm7•5d ago•15 comments

The TSA's New $45 Fee to Fly Without ID Is Illegal

https://www.frommers.com/tips/airfare/the-tsa-new-45-fee-to-fly-without-id-is-illegal-says-regula...
408•donohoe•11h ago•456 comments

Hacking Moltbook

https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
321•galnagli•17h ago•185 comments

Phenakistoscopes (1833)

https://publicdomainreview.org/collection/phenakistoscopes-1833/
14•tobr•2d ago•0 comments

GitHub – BenjaminPoilve/minichord: A pocket-sized musical instrument

https://github.com/BenjaminPoilve/minichord
20•surprisetalk•5d ago•7 comments

4x faster network file sync with rclone (vs rsync) (2025)

https://www.jeffgeerling.com/blog/2025/4x-faster-network-file-sync-rclone-vs-rsync/
304•indigodaddy•4d ago•141 comments

Linux From Scratch ends SysVinit support

https://lists.linuxfromscratch.org/sympa/arc/lfs-announce/2026-02/msg00000.html
163•cf100clunk•16h ago•208 comments

Court orders restart of all US offshore wind power construction

https://arstechnica.com/science/2026/02/court-orders-restart-of-all-us-offshore-wind-construction/
369•ck2•11h ago•232 comments

Zig Libc

https://ziglang.org/devlog/2026/#2026-01-31
258•ingve•16h ago•110 comments

Julia

https://borretti.me/fiction/julia
117•ashergill•10h ago•16 comments

Ask HN: Where do all the web devs talk?

47•LinguaBrowse•6h ago•39 comments

The Physics of Ideas: Reality as a Coordination Problem

https://bpe.xyz
41•shoes_for_thee•4d ago•10 comments

Frog 'saunas' could help endangered species beat a deadly fungus (2024)

https://www.science.org/content/article/frog-saunas-could-help-endangered-species-beat-deadly-fungus
13•noleary•5h ago•1 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
248•yz-yu•20h ago•24 comments