Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dahfizz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
931.
▲
by
dahfizz
4y ago
Where would a city dweller put a huge battery pack anyway? Maybe ask your landlord to put one in the basement for the whole building? Obviously he won't; it doesn't provide any benefit to him.
932.
▲
by
dahfizz
4y ago
This is a fundamental bug of our universe. We can observe another person's inputs and outputs, but their qualia are completely hidden. You can't experience their subjective experiences, as they experience them. We can't even
933.
▲
by
dahfizz
4y ago
Yes, thank you. You've phrased it more elegantly than myself. Freedom of movement is a human right. The right to be European is not a human right. The overuse and dilution of the term "right" to mean "anything I want to,
934.
▲
by
dahfizz
4y ago
Absolutely. This is where the real dependency bloat in ecosystems like npm come up. You may only include a handful of reasonable dependencies, but each of those have dozens of their own dependencies, and so on and so on.
935.
▲
by
dahfizz
4y ago
Then Alice can catch the exceptions and put them into a list for later, if that's what she really wants. This feels like a pretty contrived example. The general case is that `get_foo()` should return a Foo, or throw an exception if it
936.
▲
by
dahfizz
4y ago
> I don't think typed errors + isinstance checks are really the alternative. It's the alternative proposed by the article, because the code from the article is 5 years old. The author's claim is that calling isinstance is
937.
▲
by
dahfizz
4y ago
Alice can use `with supress` to ignore the exception. That's just as much, if not less, extra control flow as forcing the caller to check the returned object's type.
938.
▲
by
dahfizz
4y ago
Yes it does! It's such a nice addition to the language. It does make error objects more palatable, but I still don't see the benefit of error objects over exceptions. You still lose stack traces, and a universal way to get error m
939.
▲
by
dahfizz
4y ago
Yes, having a default case that throws an Unknown Error is the correct thing to do here. But that is still less ergonomic. For an unhandled exception type, the person creating the exception can attach a helpful error message. For an unhandl
940.
▲
by
dahfizz
4y ago
That's interesting - coming from C++, exceptions are much slower than returning -1 on error. I suppose this is because C++ doesn't need to allocate a Option.
941.
▲
by
dahfizz
4y ago
> then let's maybe not worry about performance right now and instead optimize for intuition, maintainability and readability. I would argue that throwing exceptions is the intuitive and readable thing for Python. Having to call isin
942.
▲
by
dahfizz
4y ago
> If you instead raise exceptions, you are immediately forcing the calling code into a special control flow structure, namely the try/except dance, which can be inconvenient. I fail to see how a try/catch is more inconvenient t
943.
▲
by
dahfizz
4y ago
> Then you obviously switch, as the original door has a 1% chance of being right, and the other door has a 99% of being right. It's not obvious to me that this is true. Why do we update the chance of the "new" door but not
944.
▲
by
dahfizz
4y ago
I also find this to be a more intuitive explanation, thank you!
945.
▲
by
dahfizz
4y ago
> But I can easily say that checking ID, without first making sure valid voters can easily get the needed ID, is unacceptable. Agreed. The issue is the Democratic solution is to never ID, instead of coming up with a way to easily get peo
946.
▲
by
dahfizz
4y ago
You don't need to make sure kids stay 100% still and focused 100% of the time. But you should reward good behavior and punish bad behavior. You should build up a work ethic and the ability to be productive. The idea that you should sti
947.
▲
by
dahfizz
4y ago
Many/most counties do charge an excise tax on vehicles every year. That said, TFA is about a property tax which only applies to businesses.
948.
▲
by
dahfizz
4y ago
California also has a state income tax up to 12% (!!) and a sales tax of 7%. Texas has no state income tax and a sales tax of 6%.
949.
▲
by
dahfizz
4y ago
No, I think "it's natural" is a bad defense of both.
950.
▲
by
dahfizz
4y ago
> It is entirely natural for children to “clown around” in a boring setting Murder, rape, and eating your children is natural. That's not a good justification. Perhaps there is a way to help children rise above these base instincts
951.
▲
by
dahfizz
4y ago
The official crime rate is artificially low because nobody reports, investigates, or punishes the crimes that occur.
952.
▲
by
dahfizz
4y ago
We already spend more money on K-12 schooling than nearly all European countries[1]. Throwing more money at a problem is very rarely the best solution. [1] https://nces.ed.gov/programs/coe/indicator/cmd/e
953.
▲
by
dahfizz
4y ago
Isn't assessing skill/ knowledge/ aptitude the objective of both?
954.
▲
by
dahfizz
4y ago
HN is very much opposed to whiteboard interviews. I can't see this being a popular alternative.
955.
▲
by
dahfizz
4y ago
Isn't that, in itself, a condemnation of CISC? The instruction set is so complex that the CPU has to translate to microcode at runtime. If the compiler could emit that microcode directly, it would be easier to optimize and the CPU woul
956.
▲
by
dahfizz
4y ago
I always found the "bad apples" argument very ironic. The whole expression is "a few bad apples spoil the bunch". We are now left with a spoiled bunch.
957.
▲
by
dahfizz
4y ago
That's an excellent analogy, thank you.
958.
▲
by
dahfizz
4y ago
Does YouTube store and stream all videos losslessly? How does this work otherwise?
959.
▲
by
dahfizz
4y ago
> I'm not going to order before I know how much it costs! A logical conclusion to this is that, if you begin the order flow, you will discover the price before finally submitting your order.
960.
▲
by
dahfizz
4y ago
> what do you do when the nuclear reactor goes down because it's time to refuel, or because it's heating up the river too much in a heat wave (eg in France), or because some sensor valve froze shut in an decade-frequent cold sn
More ›