codeinabox@programming.dev to Programming@programming.devEnglish · 2 days agoEvery dependency you add is a supply chain attack waiting to happenbenhoyt.comexternal-linkmessage-square27linkfedilinkarrow-up1160arrow-down11
arrow-up1159arrow-down1external-linkEvery dependency you add is a supply chain attack waiting to happenbenhoyt.comcodeinabox@programming.dev to Programming@programming.devEnglish · 2 days agomessage-square27linkfedilink
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up2·16 hours agoI think the only mainstream language with a standard library that is both good and comprehensive is Go. All of the others either have smaller standard libraries (e.g. Rust) or poorly designed ones (Python).
minus-squareGiorgioPerlasca@lemmy.mllinkfedilinkarrow-up2·11 hours agoJava, .net and C++ have standard libraries that are much bigger and much more battle tested than the one of Go.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up2·10 hours agoI haven’t used Java for decades and never used .net so I’ll take your word for those. Absolutely not for C++ though. Go’s standard library has: JSON, XML, etc. A web client and server Bigints Logging JPEG, PNG and GIF SQL client SSH client All the crypto algorithms Gzip, zlib, deflate, etc. C++ has none of that. Hell C++ only got a function to check if a string starts with a prefix a few years ago.
I think the only mainstream language with a standard library that is both good and comprehensive is Go. All of the others either have smaller standard libraries (e.g. Rust) or poorly designed ones (Python).
Java, .net and C++ have standard libraries that are much bigger and much more battle tested than the one of Go.
I haven’t used Java for decades and never used .net so I’ll take your word for those. Absolutely not for C++ though.
Go’s standard library has:
C++ has none of that. Hell C++ only got a function to check if a string starts with a prefix a few years ago.