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

Comments

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

Rockstar employee shares account of the company's union-busting efforts

https://gtaforums.com/topic/1004182-rockstar-games-alleged-union-busting/
188•mrzool•1h ago•110 comments

Vodafone Germany is killing the open internet – one peering connection at a time

https://coffee.link/vodafone-germany-is-killing-the-open-internet-one-peering-connection-at-a-time/
306•PhilKunz•3h ago•96 comments

Myna: Monospace typeface designed for symbol-heavy programming languages

https://github.com/sayyadirfanali/Myna
63•birdculture•1h ago•19 comments

Ruby Solved My Problem

https://newsletter.masilotti.com/p/ruby-already-solved-my-problem
52•joemasilotti•1h ago•11 comments

Gmail AI gets more intrusive

https://daveverse.org/2025/11/07/gmail-ai-gets-even-more-intrusive/
154•speckx•3h ago•75 comments

Venn Diagram for 7 Sets

https://moebio.com/research/sevensets/
31•bramadityaw•3d ago•2 comments

I Love OCaml

https://mccd.space/posts/ocaml-the-worlds-best/
219•art-w•6h ago•139 comments

James Watson, Co-Discoverer of the Structure of DNA, Is Dead at 97

https://www.nytimes.com/2025/11/07/science/james-watson-dead.html
56•granzymes•46m ago•1 comments

Angel Investors, a Field Guide

https://www.jeanyang.com/posts/angel-investors-a-field-guide/
35•azhenley•3h ago•5 comments

Leaving Meta and PyTorch

https://soumith.ch/blog/2025-11-06-leaving-meta-and-pytorch.md.html
630•saikatsg•14h ago•150 comments

Denmark's government aims to ban access to social media for children under 15

https://apnews.com/article/denmark-social-media-ban-children-7862d2a8cc590b4969c8931a01adc7f4
243•c420•3h ago•167 comments

A Fond Farewell

https://www.farmersalmanac.com/fond-farewell-from-farmers-almanac
527•erhuve•17h ago•185 comments

My Experience of building Bytebeat player in Zig

https://blog.karanjanthe.me/posts/zig-beat/
66•KMJ-007•3d ago•4 comments

Skeena Indigenous Typeface

https://microsoft.github.io/Skeena-Indigenous-Typeface/
33•Bogdanp•4d ago•4 comments

PyTorch Helion

https://pytorch.org/blog/helion/
116•jarbus•5d ago•34 comments

Toxic Salton Sea dust triggers changes in lung microbiome after just one week

https://phys.org/news/2025-10-toxic-salton-sea-triggers-lung.html
73•PaulHoule•3h ago•21 comments

Comparison Traits – Understanding Equality and Ordering in Rust

https://itsfoxstudio.substack.com/p/comparison-traits-understanding-equality
42•rpunkfu•5d ago•9 comments

OpenMW 0.50.0 Released – open-source Morrowind reimplementation

https://openmw.org/2025/openmw-0-50-0-released/
218•agluszak•6h ago•77 comments

A.I. and Social Media Contribute to 'Brain Rot'

https://www.nytimes.com/2025/11/06/technology/personaltech/ai-social-media-brain-rot.html
168•pretext•4h ago•128 comments

Sweep (YC S23) is hiring to build autocomplete for JetBrains

https://www.ycombinator.com/companies/sweep/jobs/8dUn406-founding-engineer-intern
1•williamzeng0•8h ago

1973 implementation of Wordle was published by DEC (2022)

https://troypress.com/1973-implementation-of-wordle-was-published-by-dec/
67•msephton•6d ago•29 comments

How to Keep Winning

https://amasad.me/keep-winning
38•daviducolo•4d ago•17 comments

Revisiting Interface Segregation in Go

https://rednafi.com/go/interface-segregation/
41•ingve•5d ago•33 comments

Meta projected 10% of 2024 revenue came from scams

https://sherwood.news/tech/meta-projected-10-of-2024-revenue-came-from-scams-and-banned-goods-reu...
528•donohoe•7h ago•420 comments

From Memorization to Reasoning in the Spectrum of Loss Curvature

https://arxiv.org/abs/2510.24256
49•andy12_•7h ago•14 comments

We chose OCaml to write Stategraph

https://stategraph.dev/blog/why-we-chose-ocaml
124•lawnchair•7h ago•98 comments

Text case changes the size of QR codes

https://www.johndcook.com/blog/2025/10/31/smaller-qr-codes/
140•ibobev•5d ago•42 comments

Game design is simple

https://www.raphkoster.com/2025/11/03/game-design-is-simple-actually/
478•vrnvu•21h ago•139 comments

Show HN: I scraped 3B Goodreads reviews to train a better recommendation model

https://book.sv
545•costco•2d ago•223 comments

The Silent Scientist: When Software Research Fails to Reach Its Audience

https://cacm.acm.org/opinion/the-silent-scientist-when-software-research-fails-to-reach-its-audie...
71•mschnell•6d ago•46 comments