2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions
comment 3y ago · link · parent
That's fair, of course, and reading error messages can be very hard sometimes even for the best of us. Still, I think there is a psychological hurdle to understand errors as a process, not as a roadblock.
comment 3y ago · link · parent
The reason is most things are immutable. Frankly I’m just not used to writing code in that way (even though most of my scripting code is functional and not imperative). I find that when I refactor my Rust it requires significant work.
In mutable code I can just modify a class/struct when something needs to change but when it’s mostly immutable those changes often require significant redesigns.
Perhaps this is just because I’m new to Rust, but that’s just proving my point that it’s hard. I’m better setup to learn a new language than the majority of programmers for sure and it’s been a real struggle.
At this point I would probably be struggling as much in a language like Haskell I suspect. My issue isn’t the borrow checker, it’s immutability.
comment 3y ago · link · parent
It took me probably more like 1-2 months to really understand how to code in Rust. I do not think a typical team of JS/Python devs would be productive in 3 weeks. I think it would be more like 3 months. Developers with C++ experience seem to pick it up much quicker.
Also, at this point I’m pretty proficient in rust but I’m still far slower than I would be in a scripting language. So I don’t think anyone would ever reach “equally productive” unless they’re comparing themselves to another compiled language.
I like Rust, but it’s challenging, and it’s certainly not a language for rapid development.
comment 3y ago · link · parent
"Show me your flowchart and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowchart; it'll be obvious." -- Fred Brooks, The Mythical Man Month (1975)
comment 3y ago · link · parent
The Buddha teaches how to avoid this craving for the world to be different than it actually is.
Look up the parable of the arrow. It's a good way to think about the difference between general suffering and dukkha.
comment 3y ago · link · parent
It'll fetch the binary release from the repo so you don't have to compile it yourself.
comment 3y ago · link · parent
asdf has a handful of commands that let you do prefix matching like `asdf install nodejs latest:20.0` but they're not supported in `.tool-versions` files. This basically just adds that functionality.
I didn't feel like requiring `latest:` was necessary. I felt it was clear that `nodejs 20.0` means `nodejs 20.0.*`. This is how npm has always worked.
comment 3y ago · link · parent
There are some short term issues but I think I can resolve them in a way that direnv can't since I know exactly what PATH variables I added and didn't add. (Just remove everything with ~/.local/share/rtx prefixes.)
I could also just implement shims like asdf. The performance cost would be negligible (2-3ms of overhead for me running `rtx exec -- node -v`). I hate shims because they break `which node` though.
comment 3y ago · link · parent
Even though he considers things like `require('./something')` defaulting to either `./something.js` or `./something/index.js` a mistake, he also admits these are not possible to change at this point.
I think Python made a mistake trying to correct design problems in 2. The cost of change simply wasn't worth the price of migration. Is `print("text")` really that much of an improvement over `print "text"`?
comment 3y ago · link · parent
If you order "vegan buffalo wings" you're attaching yourself to the vegan subculture and the baggage that comes along with that. Ordering "plant-based buffalo wings" just means you're ordering cauliflower.