frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Making code last a long time

https://twitter.com/jonathan_blow/status/1923414922484232404
22•robinhouston•6h ago

Comments

turtleyacht•6h 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•5h 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•5h 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•5h 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.

henning•5h 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•5h 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.
boznz•5h 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•5h 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•2h 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: Roast My Dish – AI roasts your food photos with brutal honesty

https://www.roastmydish.online/
1•romeumaleiane•6m ago•0 comments

Show HN: Merliot – plugging physical devices into LLMs

https://github.com/merliot/hub
3•sfeldma•11m ago•0 comments

Doom: One of gaming's oldest series reckons with the challenges of 2025

https://www.bbc.com/news/articles/c4gezq2q911o
1•andsoitis•12m ago•0 comments

Microsoft confirms May Windows 10 updates trigger BitLocker recovery

https://www.bleepingcomputer.com/news/microsoft/microsoft-confirms-may-windows-10-updates-trigger-bitlocker-recovery/
1•Elliott-Diy•15m ago•0 comments

Floating Point Math

https://0.30000000000000004.com/
1•mooreds•17m ago•1 comments

Auth Providers and the Zero Trust Architecture

https://fusionauth.io/articles/security/zero-trust-identity-provider
2•mooreds•18m ago•0 comments

The web lives in WordPress and Mastodon (2024)

http://scripting.com/2024/10/11/132736.html
1•MaysonL•19m ago•0 comments

I'll see your 372 lines of Verilog and raise you five lines of math.

https://jamesevery.org/hollywood.html
1•JamesEvery•25m ago•1 comments

Ask HN: Do startup founders/teams care about health during stressful times?

1•Bkimmy16•31m ago•1 comments

Divorce Is a Gift

https://www.nytimes.com/2025/05/16/style/modern-love-divorce-is-a-gift.html
1•littlexsparkee•32m ago•1 comments

WebGL Gray-Scott Explorer (2012)

http://www.mrob.com/pub/comp/xmorphia/ogl/index.html
5•joebig•35m ago•0 comments

Raspberry Pi Reduces Prices on 4GB and 8GB Compute Module 4

https://linuxgizmos.com/raspberry-pi-reduces-prices-on-4gb-and-8gb-compute-module-4/
1•teleforce•42m ago•0 comments

The Rift over Trump's A.I. Deals in the Gulf

https://www.nytimes.com/2025/05/16/business/dealbook/trump-nvidia-ai-middle-east.html
3•1659447091•42m ago•1 comments

Three-Dimensional Printing Resin-Based Dental Provisional Crowns and Bridges

https://www.mdpi.com/1996-1944/18/10/2202
1•PaulHoule•47m ago•0 comments

TabPFN: Foundation Model for Tabular Data

https://github.com/PriorLabs/TabPFN
1•talles•47m ago•0 comments

Coming to a Brain Near You: A Tiny Computer

https://www.wsj.com/tech/brain-implant-musk-als-tbi-neuralink-f733998f
1•Bostonian•49m ago•1 comments

PIGO8 – A PICO-8 Inspired Fantasy Console Framework in Go

https://github.com/drpaneas/pigo8
1•drpaneas•49m ago•0 comments

Trump’s Push to Defund Harvard Prompts Clash Over Veteran Suicide Research

https://www.nytimes.com/2025/05/16/us/politics/trump-harvard-veterans-research.html
4•standardUser•50m ago•0 comments

Mnemonic Finder – Extension to find mnemonic meanings by right-clicking words

https://chromewebstore.google.com/detail/mnemonic-finder-–-right-c/dlfjdmnhefchjkndgpfjobabibdomifh
1•harivpanjwani•55m ago•1 comments

Show HN: VibePM, a Lightweight Task Manager for Cursor

https://getvibepm.com
1•baetylus•55m ago•1 comments

Grml 2025.05 – codename Nudlaug – Release Notes

https://grml.org/changelogs/README-grml-2025.05/
1•pabs3•56m ago•0 comments

OSSF Best Practices

https://github.com/ossf/wg-best-practices-os-developers
2•Brysonbw•59m ago•0 comments

I made a floor out of popsicle sticks

https://buttondown.com/redmonk/archive/redmonk-may-2025-update/
1•mooreds•59m ago•0 comments

Microsoft provided AI to Israeli military but denies use to harm people in Gaza

https://apnews.com/article/microsoft-israel-military-gaza-hamas-artificial-intelligence-20b2adb438b39ee9cb6eb2f52c1ae44a
2•c420•1h ago•0 comments

Regular Expression Denial of Service – ReDoS

https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
2•Brysonbw•1h ago•0 comments

New stem cell model sheds light on human amniotic sac development

https://www.crick.ac.uk/news/2025-05-15_new-stem-cell-model-sheds-light-on-human-amniotic-sac-development
1•gmays•1h ago•0 comments

The Arm Evolution: From IP to Platform for the AI Era

https://newsroom.arm.com/news/new-arm-product-naming-architecture
1•layer8•1h ago•0 comments

A rare snail is filmed laying an egg from its neck

https://apnews.com/article/zealand-snail-egg-neck-powelliphanta-augusta-3cb8082547a83b8c47848b6621c06cb0
4•gmays•1h ago•0 comments

Google Worried It Couldn't Control How Israel Uses Project Nimbus, Files Reveal

https://theintercept.com/2025/05/12/google-nimbus-israel-military-ai-human-rights/
4•zhengiszen•1h ago•0 comments

When was peak message in a bottle?

https://interconnected.org/home/2025/05/16/bottle
1•LorenDB•1h ago•2 comments