2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 1y ago · link · parent
Better, in my opinion, is a clear and easy way to "uncancel" if you accidentally cancel. But even that can be abused: "Here's a button that looks like a confirmation, but actually it's a resubscribe button." It's just too tempting to make that "number of people who resubscribed after cancelling" number a target. You think you're reminding the customer of their mistake, but really you're just optimizing the dark pattern.
comment 1y ago · link · parent
There are primary indicators that you use to decide whether to make a purchase, and then there are other (let's call them secondary) indicators.
Primary is stuff like "the advertised price" and "the claimed features/service." Secondary is stuff like "have I ever heard that this company does shitty things" and "is there going to be a BS fee added to the total right before I click 'charge'?"
Once you're in their snare, a company benefits from being shitty. Plenty of people will pay the junk fee (did they even notice?) -- the important part is that your advertised price ranks near the competition. Plenty of people will sign up for a service that is difficult to cancel -- the important part is that the price starts out reasonable and that the service is adequate.
Even if the company is run by true saints, raising that sticker price to reflect the true price is anti-competitive! We can't be the only ones being honest! And they're right. That's why a law is needed to address it.
edit: Perhaps you were being sarcastic. Felt good to state my opinion, anyway :)
comment 1y ago · link · parent
comment 1y ago · link · parent
Neat idea, but sounds like a lot of work.
comment 1y ago · link · parent
(let [result (do-thing x y z)]
(match [result]
[{:ok false :message msg}]
{:ok false :message (format "do-thing failed: %s" msg)}
[{:ok true, :value value}]
(continue-computation-with value)))
mehcomment 1y ago · link · parent
It's a bad idea to write JSON parsers that can accept comments. Comments are not part of JSON.
There are plenty of extensions to JSON, and they have parsers. Use them. Or, use a language that is already an extension to JSON, like JavaScript or YAML.
comment 1y ago · link · parent
The implementation of the [HAMT][1]-based vector in Go is [interesting][2].
[1]: https://infoscience.epfl.ch/server/api/core/bitstreams/f66a3...
[2]: https://github.com/glojurelang/glojure/blob/main/internal/pe...
comment 1y ago · link · parent
I was listening to Schoenberg's "Suite for Piano" the other day. Did he make it to be entertaining? I don't know, interesting maybe. I wouldn't put it on at a party.
It's true that snobbery is off-putting, but if you're looking for artistic merit, then some works last longer than others. If you're looking for something to enjoy with your popcorn, then there's that too.
comment 1y ago · link · parent
I started losing interest there. Nobody wants police-style schooling, but if a university allows students to graduate who have cheated on all of their coursework (and presumably on the exams), then it's not really a "selling prestige" problem, it's more of a "this university is a joke" problem.
comment 1y ago · link · parent
One day it broke because of something to do with certificates (not that it was easy to determine the underlying problem). There was plenty of information online about which incantations were necessary to get it working again, but instead I nuked it from orbit and rebuilt the cluster. From then on I did this every few weeks.
A real kubernetes operator would have tooling in place to automatically upgrade certs and who knows what else. I imagine a company would have to pay such an operator.
comment 1y ago · link · parent
You have a field (a set of "numbers"). Multiplication is defined over the field. You want to invent a notion of division. Let's introduce the notation "a/b" to refer to some member of a field such that "a/b" * b = a.
As Hillel points out, you can identify "a/b" with a*inverse(b), where "inverse" is the multiplicative inverse. And yes, there is no inverse(0). But really let's just stick with the previous definition: "a/b" * b = a.
Now consider "a/0". If "a/0" is in the field, then "a/0" * 0 = a. Let's consider the case where a != 0. Then we have "a/0" * 0 != 0. But this cannot be true if "a/0" is in the field, because for every x we have x * 0 = 0. Thus "a/0" is not in the field.
Consider "a/0" with a=0. Then "a/0" * 0 = 0. Any member of the field satisfies this equation, because for every x we have x * 0 = 0. So, "a/0" could be any member of the field. Our definition of division does not determine "0/0".
Whether you can assign "1/0" to a member of the field (such as 0) depends on how you define division.
comment 1y ago · link · parent
I don't know about caring, but I think that the point of the Turing test is to determine at which point a human can't tell whether it's another human. Also, I've read that it's not a particularly good test, because even pre-LLM you could craft an irritating, misspelling, troll of a chat bot and people would think it was a real teenage edgelord.
comment 1y ago · link · parent
comment 1y ago · link · parent
I've seen that once, most recently.
Before that, it was somebody who was trying to get let go on performance grounds, thinking that it would lead to severance (didn't work out).
Before that, it was somebody who got put on PIP, but I'm not sure why, and they were personally devastated and then quit.
Telling somebody that they're fucking up and that they need to improve is one thing, that's just feedback. Creating a structure that's officially "if you don't do X, Y, Z, then you're fired"... just fire them.
comment 2y ago · link · parent
$19.80 goes to one artist, and $0.20 to the other. 99:1.
edit: Maybe what you're getting at is that the person who listened to only one song should pay 99x less. Then it really would be pay-per-play. But Spotify is a subscription service. What else should they do with my extra $9.90? Send it all to the one artist? That would be interesting... but then what if I don't listen to any songs in the month? Bank it and send it to the spread for the following month?
comment 2y ago · link · parent
The first was removing `long` from the code, since a lot of code assumed its size (is it like `int` or like `long long int`?) and as machines were upgraded it caused problems.
The second was moving to C++11/14/17. Most of the difficulty was toolchains on unixen that did not support the new versions of the language, or for which support was incomplete, or for which upgrading to a version with support broke existing builds.
The third was moving to Linux from big iron unixen. As far as I understand, this initiative is still underway. It was already underway in 2011 when I joined the company.
This is a rich company with a large, healthy engineering department. I imagine that most other companies would not or could not bother.