Better HN
topnewbestaskshowjobs
Log inSign up

bin_bash

2,966 karma · joined Mar 3, 2021 (5y ago) · 970 submissions

FAANG engineer
Submissions

comment 3y ago · link · parent

anything you don't install via `--build-from-source`

comment 3y ago · link · parent

FYI: this breaks homebrew

comment 3y ago · link · parent

I think Barron's is probably more targeted to people that actually work on Wall Street. I suspect Manhattan finance people make up <1% of the people that subscribe to WSJ.

comment 3y ago · link · parent

I bet the paying ones are landlords. WSJ costs hundreds per year and they're stingy with discounts.

Apple News is one way to get it cheap, but you've gotta use that reader.

comment 3y ago · link · parent

I've tried that on like 3 or 4 different sites and it didn't work for a single one

comment 3y ago · link · parent

wouldn't that happen on Bun.sleep(1)?

comment 3y ago · link · parent

I've seen this behavior with new coders too. They see an error and immediately get paralyzed and reach out for help without actually reading it to see what it says. I think non-technical people see an error message and don't take the time to read it, they just assume that the text is just nonsense.

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

it's basically their version of OKRs

comment 3y ago · link · parent

You’re correct. I actually spent the summer before I learned Rust learning C++. While that definitely helped learning Rust I was barely capable of writing anything in C++ after 3 months. (Though that wasn’t 3 months full-time)

comment 3y ago · link · parent

I thought this is what would be the case but the reason it is slow for me is not because it takes me a long time to get to compilation. (It’s true but it’s a small factor.)

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

As a counterpoint, I’m a senior engineer at FAANG with 15 professional YOE. I’ve mostly used scripting languages in my career though.

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

is that 6 months into Spanish with no prior experience? If so it sounds like you're doing extremely well

comment 3y ago · link · parent

If you're ever in the area, I highly recommend just going in and walking around. It's incredible.

comment 3y ago · link · parent

I know it's popular, but I bet a lot of people haven't heard the flowchart and table quote you're referencing:

"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

"Suffering" isn't a great translation of the Sanskrit word "dukkha". It's too broad. The Buddha talks about a very specific type of suffering that I think of as: "the desire for things to be different than the way they are."

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

If you happen to install a lot of things with cargo, check out cargo-binstall: https://github.com/cargo-bins/cargo-binstall

It'll fetch the binary release from the repo so you don't have to compile it yourself.

comment 3y ago · link · parent

Unbelievable. So if they don't use Nix they simply don't deserve to use the software?

I really wish people wouldn't get so zealous all the time about their favorite technology.

comment 3y ago · link · parent

with npm:

    $ npm install foo # or
    $ npx foo
with github:

    Find repository
    Click latest release, downloads to ~/Downloads
    $ tar -xvzf ~/Downloads/some.tar.gz
    $ cp foo/bin/foo /usr/local/bin

comment 3y ago · link · parent

my issue with that solution is it makes directory changes with `use asdf` in the envrc slow. Of course that's not as bad as making all of the runtimes slow, but still intolerable IMO.

comment 3y ago · link · parent

that would be unrealistic at least for now. The plugins are all written in bash. You'd first need to rewrite enough plugins for it to be useful. Maybe at one point if rtx takes off I could look into having plugins be in an alternate form though.

comment 3y ago · link · parent

What you described is fuzzy matching, basically just prefix matching.

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

direnv does cause problems, but there is a workaround that functions (calling rtx within direnv). The main problem is it's annoying since you need .envrc and .tool-versions file littered through your apps (or just .envrc with "export RTX_NODEJS_VERSION=18")

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

Ryan Dahl's great talk on design mistakes he made with node.js is something I think about all the time: https://www.youtube.com/watch?v=M3BM9TB-8yA

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

I feel like with python it was a lot harder since scripts could point to either, e.g.:

    #!/usr/bin/env python

comment 3y ago · link · parent

I think "plant-based" is a better term than "vegan". "Vegan" describes a person or food. "Plant-based" can only describe the food—you wouldn't say "Bob is plant-based", you'd say "Bob eats plant-based food."

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.

comment 3y ago · link · parent

...software engineer?
12345
33