4 ms·
Just an hour ago I had to downgrade my npm install to build a project from four years ago because some random npm dependency used the print statement from 2 ins
by onychomys 4y ago
Just an hour ago I had to downgrade my npm install to build a project from four years ago because some random npm dependency used the print statement from 2 instead of 3. So annoying, especially since I'll need to switch back over to run a more modern app.
- eropple 4y agoI've had really good luck with asdf (https://asdf-vm.com https://asdf-vm.com) to manage per-project versions to avoid this sort of thing.
- lanstin 4y agoWeird, there are two package management things called asdf. Here is the lisp one: https://asdf.common-lisp.dev/ https://asdf.common-lisp.dev/
- jdxcode 4y agoalso check out rtx (my project), which does everything asdf does but 20x-200x faster and with better UX https://rtx.pub https://rtx.pub
- jimmaswell 4y agoI'm still mad about this disaster of a language upgrade. I want my dumb byte strings and convenient print statement back.
- nick238 4y agoHaving print as a function is actually useful if you want to use it like any other function, e.g. `def whatever(x, y, z, , output=print):` then you could use the default or put in whatever that's like `print`. I also don't get what you mean by "dumb byte strings", it's just that the default* string type, i.e. when you have a literal `"foo"` in source, it's a sequence of codepoints vs. a sequence of octets. Assuming file systems use UTF-8 was broken in very early 3.x (I think before 3.3?) but it's something I've never struggled with (pure ASCII filenames for me). Forcing the programmer to know if they're dealing with characters & code points vs. bytes/structs/network buffers is a good thing, IMHO.
- djmax 4y agoUse patch-package
- doodlesdev 4y agoManage multiple npm versions at once using a node package manager manager such as: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions https://github.com/nvm-sh/nvm Volta - The Hassle-Free JavaScript Tool Manager https://volta.sh/ asdf - Manage multiple runtime versions with a single CLI tool https://asdf-vm.com/ Eventually we might need a node package manager manager manager to make sure we are using the right one for a project lol