r/programming • • Sep 04 '26

Avoid adding new library to project: 10-year retrospective

https://pvs-studio.com/en/blog/posts/1408/
170 Upvotes

35 comments sorted by

View all comments

Show parent comment

4

u/Flimsy_Complaint490 Sep 05 '26

Agree. And they dont seem to be trained to do any trade-off reasoning during the implementation either. There is never "is this or this better", but "do that" and if that doesnt work, immediatly move to plan b and stay within original constraints. Like, if you are doing a CLI app, it will never do research, pick a flag parsing library and such, it will poop out 1000 LoC file from its training data.

But ask it to do exactly that and it will do a very admirable job picking a flag parsing library, hook up the machinery and remove those 1000 LoC.