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•7mo ago

Comments

turtleyacht•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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•7mo 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".

Show HN: Terminal UI for AWS

https://github.com/huseyinbabal/taws
181•huseyinbabal•5h ago•89 comments

Lessons from 14 Years at Google

https://addyosmani.com/blog/21-lessons/
816•cdrnsf•10h ago•370 comments

Why does a least squares fit appear to have a bias when applied to simple data?

https://stats.stackexchange.com/questions/674129/why-does-a-linear-least-squares-fit-appear-to-ha...
127•azeemba•5h ago•29 comments

The Unbearable Joy of Sitting Alone in a Café

https://candost.blog/the-unbearable-joy-of-sitting-alone-in-a-cafe/
426•mooreds•11h ago•269 comments

Linear Address Spaces: Unsafe at any speed (2022)

https://queue.acm.org/detail.cfm?id=3534854
113•nithssh•4d ago•75 comments

Eurostar AI vulnerability: When a chatbot goes off the rails

https://www.pentestpartners.com/security-blog/eurostar-ai-vulnerability-when-a-chatbot-goes-off-t...
89•speckx•4h ago•25 comments

Street Fighter II, the World Warrier (2021)

https://fabiensanglard.net/sf2_warrier/
308•birdculture•11h ago•48 comments

Millennium Challenge: A corrupted military exercise and its legacy (2015)

https://warontherocks.com/2015/11/millennium-challenge-the-real-story-of-a-corrupted-military-exe...
17•lifeisstillgood•2h ago•5 comments

Ripple, a puzzle game about 2nd and 3rd order effects

https://ripplegame.app/
75•mooreds•8h ago•13 comments

The Showa Hundred Year Problem

https://www.dampfkraft.com/showa-100.html
6•polm23•4d ago•0 comments

The Year of the 3D Printed Miniature (and Other Lies We Tell Ourselves)

https://matduggan.com/the-year-of-the-3d-printed-miniature-and-other-lies-we-tell-ourselves/
94•sagacity•6d ago•55 comments

Web development is fun again

https://ma.ttias.be/web-development-is-fun-again/
281•Mojah•10h ago•369 comments

Show HN: An interactive guide to how browsers work

https://howbrowserswork.com/
174•krasun•10h ago•28 comments

Server-rendered multiplayer games with Lua (no client code)

https://cleoselene.com/
54•brunovcosta•5h ago•32 comments

Six Harmless Bugs Lead to Remote Code Execution

https://mehmetince.net/the-story-of-a-perfect-exploit-chain-six-bugs-that-looked-harmless-until-t...
18•ozirus•3d ago•1 comments

Claude Code On-the-Go

https://granda.org/en/2026/01/02/claude-code-on-the-go/
208•todsacerdoti•6h ago•138 comments

Agentic Patterns

https://github.com/nibzard/awesome-agentic-patterns
66•PretzelFisch•6h ago•6 comments

Show HN: Hover – IDE style hover documentation on any webpage

https://github.com/Sampsoon/hover
35•sampsonj•7h ago•16 comments

The great shift of English prose

https://www.worksinprogress.news/p/english-prose-has-become-much-easier
27•dsubburam•3d ago•20 comments

OpenGitOps

https://opengitops.dev/
34•locknitpicker•5h ago•35 comments

Using Hinge as a Command and Control Server

https://mattwie.se/hinge-command-control-c2
91•mattwiese•11h ago•42 comments

Moiré Explorer

https://play.ertdfgcvb.xyz/#/src/demos/moire_explorer
127•Luc•12h ago•17 comments

Stop Forwarding Errors, Start Designing Them

https://fast.github.io/blog/stop-forwarding-errors-start-designing-them/
71•andylokandy•6h ago•45 comments

Trellis AI (YC W24) is hiring engineers to build AI agents for healthcare access

https://www.ycombinator.com/companies/trellis-ai/jobs/ngvfeaq-member-of-technical-staff-full-time
1•macklinkachorn•8h ago

Show HN: An LLM-Powered PCB Schematic Checker (Major Update)

https://traceformer.io/
29•wafflesfreak•4h ago•14 comments

Maybe comments should explain 'what' (2017)

https://www.hillelwayne.com/post/what-comments/
187•zahrevsky•15h ago•180 comments

Show HN: Quantum Tunnel

https://chuanqisun.github.io/quantum-tunnel/
13•osmoscraft•2h ago•5 comments

Bison return to Illinois' Kane County after 200 years

https://phys.org/news/2025-12-bison-illinois-kane-county-years.html
116•bikenaga•5d ago•33 comments

FreeBSD Home NAS, part 3: WireGuard VPN, routing, and Linux peers

https://rtfm.co.ua/en/freebsd-home-nas-part-3-wireguard-vpn-linux-peer-and-routing/
142•todsacerdoti•13h ago•7 comments

How I archived 10 years of memories using Spotify

https://notes.xdavidhu.me/notes/how-i-archived-10-years-of-memories-using-spotify
82•xdavidhu•10h ago•37 comments