logoalt Hacker News

invalidusertoday at 11:05 AM2 repliesview on HN

For a lot of code, I switched to generating code rather than using 3rd party libraries. Things like PEG parsers, path finding algorithms, string sanitizers, data type conversion, etc are very conveniently generated by LLMs. It's fast, reduces dependencies, and feels safer to me.


Replies

troadtoday at 11:08 AM

Ah, so you've traded the possibility of bad dependencies for certainty.

show 2 replies
tzstoday at 12:40 PM

Or find the best third party library and copy the code from a widely used version that has been out long enough to have been well tested into your source tree.

The problem is not third party libraries. It is updating third party libraries when the version you have still works fine for your needs.

show 1 reply