frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: How do you improve code for future AI?

2•tmaly•1d ago
I am sitting on tons of legacy code at my day job. I keep looking at how fast AI is improving over the last few years.

I am thinking what can I do to improve the massive amount of legacy code I have to maintain so that eventually I can let a better AI in the near future help me more?

What are your best tips that are working now?

Comments

lucfranken•1d ago
Did you try running some ai over it to see if it is capable of being useful?

Legacy code is a statement but in the end it only matters if it works and is maintainable.

It might surprise you.

tmaly•22h ago
I got mixed results. A good portion of the code was written by former employees. There is little documentation.
apothegm•21h ago
AI has limited context windows and little ability to reason about what complex code does.

If you can refactor it to small modules with simple interfaces and properly document the interfaces and what the modules do, AI can work with your code more easily. Think of the ideal AI codebase as being assembled from libraries (even if private internally developed ones) with a small amount of glue code in between.

tmaly•12h ago
This is exactly the thought I had. The challenge is starting with messy undocumented code that sprawls out all over the place.

How to you go from spaghetti code to nice neat modular code using AI?

Show HN: Mindly – One chat interface for GPT-4o, Claude, Gemini and more

https://mindly.chat
1•riley-wv•1m ago•0 comments

Want a humanoid, open-source robot for just $3k? Hugging Face is on it

https://arstechnica.com/ai/2025/05/hugging-face-hopes-to-bring-a-humanoid-robot-to-market-for-just-3000/
2•walterbell•19m ago•1 comments

Scientists Discover Brain 'Time Cells' That Enable 'Mental Time Travel' (2021)

https://www.vice.com/en/article/scientists-discover-time-cells-in-the-brain-that-enable-mental-time-travel/
1•walterbell•20m ago•1 comments

UK to build up to 12 new attack submarines

https://www.bbc.com/news/articles/c4g2jr1m49no
1•geox•29m ago•0 comments

DuckLake with Ibis Python DataFrames

https://emilsadek.com/blog/ducklake-ibis/
1•esadek•37m ago•0 comments

Show HN: Moon Phase Algorithms for C, Lua, Awk, JavaScript, etc.

https://github.com/oliverkwebb/moonphase
1•oliverkwebb•51m ago•0 comments

The Internet of Consent

https://www.anildash.com//2025/05/27/2025-05-27-internet-of-consent/
1•Refreeze5224•56m ago•0 comments

Show HN: NextGP – a clean F1 countdown app built with Expo and React Native

https://apps.apple.com/us/app/nextgp/id6746546202
1•flakii•1h ago•0 comments

Fireside Chat with Kelsey Hightower: An Outsider's Look at Nix

https://www.youtube.com/watch?v=caxcawUCSZ8
3•kesor•1h ago•0 comments

Absurdly Good Doggo Consistency with Flux.1 Kontext

https://notesbylex.com/absurdly-good-doggo-consistency-with-flux1-kontext
2•lexandstuff•1h ago•0 comments

Run LLM models on your Android phone locally

https://github.com/google-ai-edge/gallery
2•sarusso•1h ago•0 comments

A beginner's guide to constant-time cryptography

https://www.chosenplaintext.ca/articles/beginners-guide-constant-time-cryptography.html
3•susam•1h ago•1 comments

Show HN: Wikigen.ai – an engaging way to learn [video]

https://www.youtube.com/watch?v=Ov4aE7F_DnE
2•priorityfill•1h ago•0 comments

Structured Concurrency in Robot Control

https://max.xz.ax/blog/structured-concurrency-robot-control/
1•susam•1h ago•0 comments

Scientific Computing in Rust 2025

https://scientificcomputing.rs/2025/
1•susam•1h ago•0 comments

Show HN: Feedback Wanted: Gemini-Engineer Tool

https://github.com/ozanunal0/gemini-engineer
1•rtfm01•1h ago•0 comments

Why do lawyers keep using ChatGPT?

https://www.theverge.com/policy/677373/lawyers-chatgpt-hallucinations-ai
3•pseudolus•1h ago•0 comments

Show HN: Better-Experiments – open-source A/B testing library

https://github.com/0xgautam/better-experiments
2•0xgautam•1h ago•0 comments

The robot vacuums we've tested

https://www.theverge.com/22997597/best-robot-vacuum-cleaner
3•walterbell•1h ago•0 comments

Real TikTokers are pretending to be Veo 3 AI creations for fun, attention

https://arstechnica.com/ai/2025/05/real-tiktokers-are-pretending-to-be-veo-3-ai-creations-for-fun-attention/
2•pseudolus•1h ago•0 comments

OAuth 2.0 Flows

https://www.workflows.guru/resources/oauth2-flows-explained
3•ask3m•1h ago•1 comments

Codex Seraphinianus: The Weirdest Book

https://www.abebooks.com/books/rarebooks/serafini-fantasy-art-weird/codex-seraphinianus.shtml
4•Koshkin•1h ago•1 comments

Ask HN: Simple open source to remove the bright background on a web page?

1•9o1d•1h ago•3 comments

A Future of Software Development?

https://nathanlubchenco.substack.com/p/a-future-of-software-development
1•nathanlubchenco•1h ago•1 comments

Ask HN: Why are dating apps so bad? Why hasn't anyone made a good one?

13•1270018080•1h ago•28 comments

DreaMS: Self-Supervised Molecular Representations from Mass Spectra

https://www.nature.com/articles/s41587-025-02663-3
1•gnabgib•1h ago•0 comments

How to Agentically Deconstruct CC

https://southbridge-research.notion.site/How-to-agentically-deconstruct-CC-2055fec70db18150bfa6d218a91c1322
1•handfuloflight•2h ago•0 comments

A Glucose Monitor for Someone Without Diabetes: Optimal or Overkill?

https://www.wsj.com/tech/personal-tech/wearable-glucose-monitor-stelo-dexcom-6655e84d
2•bookofjoe•2h ago•2 comments

The Custodial Stablecoin Rekt Test

https://blog.trailofbits.com/2025/05/29/the-custodial-stablecoin-rekt-test/
2•wslh•2h ago•0 comments

Innovations in aging biology: highlights from the ARDD emerging science workshop

https://www.nature.com/articles/s41514-025-00193-5
2•walterbell•2h ago•0 comments