▲ | tmpz22 7 days ago | |||||||||||||
> That's life in the modern world. It is a deep problem that should theoretically affect every large software ecosystem because very few library authors can predict the future with great accuracy, and very few open source library authors have any significant incentive to support old ideas. I disagree. This is an easy problem to avoid with minimal due diligence, people just choose convenience and make unnecessary tradeoffs. * Use the standard library (ironically not available for Node projects). It will be built with better backwards compatibility almost every time. What deprecations do occur will likely be VERY WELL documented with much quicker adaptions. * Limit third party dependencies. Do you really need an ORM for your apps 40 sql queries? How long would it take you to scaffold it with GenerativeAI then make it production-worthy without the ORM? 1 hour? 5 hours? 20 hours? * Pick technologies with better track records. Maybe don't use Beta software like Swift Data for your iOS App. Maybe choose golang for your API even though it'll take a little bit longer to build it. | ||||||||||||||
▲ | Nadya 7 days ago | parent | next [-] | |||||||||||||
And this is how you end up with rewriting the world and spending more time rewriting dozens of existing libraries to avoid adding them as dependencies and less time working on the problem you're actually trying to solve because you're fixing the same dozen bugs that the first person already went through the trouble of fixing for you had you simply used their library instead of eschewing it and having to learn everything that they had already learned for you. Often times because the problem space is deeper than you could have known before getting into the weeds and hopefully you don't get bit by sunk cost and decide to do yourself a favor and just use a library instead of continuing to work on solving problems that aren't related to what you set out to do. There's a balance to be struck between LeftPad scenarios and "Now there are 37 competing libraries". | ||||||||||||||
| ||||||||||||||
▲ | pjc50 7 days ago | parent | prev | next [-] | |||||||||||||
> How long would it take you to scaffold it with GenerativeAI then make it production-worthy without the ORM? Having a machine do codegen to map your queries to objects is still an ORM, except now it's nondeterministic and not updateable. (mind you, I come from C# where you simply use LINQ+EF without worry, or occasionally Dapper for smaller cases) | ||||||||||||||
▲ | paulddraper 4 days ago | parent | prev [-] | |||||||||||||
> Use the standard library (ironically not available for Node projects) ??? Node.js has an extensive stdlib [1]. Contrast that with Python which practically requires a 3rd party HTTP client. Or Java that doesn't even have JSON support. |