3 ms·
How is it surprising to people that zip and XML are in stdlibs for a programming language? Btw, you should have looked at dotnet for this as well. There is a v
by martinald 4mo ago
How is it surprising to people that zip and XML are in stdlibs for a programming language?
Btw, you should have looked at dotnet for this as well. There is a very good library ( DocumentFormat.OpenXml) that can handle all docx/xlsx/pptx files. And dotnet can ship standalone binaries (though AOT probably won't work).
- pier25 4mo agoMany runtimes/languages rely on third party deps for that. Also plenty of devs think the stdlib should be as lean as possible. Personally, I think there should be a balance. The direct consequence of a barebones stdlib is NPM and having to download hundreds of dependencies for a hello world.
- wky 4mo agoGolang has the golang.org/x packages, which avoids too much stdlib bloat while still providing the niceties of “pre-vetted” packages that don’t pull in a massive dependency tree.
- pier25 4mo agoyeah I wish Node had something like that
- slopinthebag 4mo agoIt does! (well Deno does but you can use them in Node) https://jsr.io/@std https://jsr.io/@std
- pier25 4mo agosupport is not uniform though eg: https://jsr.io/@std/dotenv https://jsr.io/@std/dotenv
- tanin 4mo agoYeah, I try to avoid 3rd party libraries unless it comes from credible sources/companies or vetted by famous frameworks e.g. Rails uses it. Not just for NPM but for Intellij plugin, VSCode extension, and etc. If Node has officially pre-vetted libraries, that would be really awesome.
- CharlieDigital 4mo agohttps://github.com/dotnet/Open-XML-SDK https://github.com/dotnet/Open-XML-SDK First party from Microsoft; feels like it would be the way to go.
- deleted 4mo ago[deleted]
- xnorswap 4mo agoThat is the source of DocumentFormat.OpenXml, you're talking about the same package, https://github.com/dotnet/Open-XML-SDK#packages https://github.com/dotnet/Open-XML-SDK#packages Microsoft are incapable of: 1. naming things well 2. keeping those names stable
- rjrjrjrj 4mo agoDifficult to square the author's surprise with the later comment "I have my fair share of building a Java desktop application and know jpackage and alike very well" You can't get very far in Java development without working with .jar files (which are zip archives).