2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 1y ago · link · parent
> As for where political correctness began, if you think about it, you probably already know the answer. Did it begin outside universities and spread to them from this external source? Obviously not; it has always been most extreme in universities. So where in universities did it begin? Did it begin in math, or the hard sciences, or engineering, and spread from there to the humanities and social sciences? Those are amusing images, but no, obviously it began in the humanities and social sciences.
He's setting up the assertion "political correctness began in university social science departments." He tries to make it look like the conclusion is an inevitable result of reason, but really it's just an assertion. I dislike this rhetorical technique.
His assertion is probably correct.
comment 1y ago · link · parent
Why parse markup and generate objects on the fly when there is exactly one UI that will ever be burned into the CNC machine's firmware? Why even bother with an object library that instantiates components at runtime when you know upfront exactly which components will be instantiated and all of the interactions that can occur among them?
At the time, I filed the idea under "C++ wizard has too much fun with metaprogramming," but he was probably on to something.
Another way to think about the idea is "let's invent a new programming language that allows us to express a single UI, and the output of the compiler will be a native program that IS an optimized implementation of that UI."
comment 1y ago · link · parent
My teammate said that at a previous job he wanted to add OpenTelemetry tracing to some C++ code he was working on. He took one look at the reference implementation for C++ OpenTelemetry and decided instead to write his own tracing library that sends gRPC to the OpenTelemetry collector.
It's also worth noting that, at least last time I checked, the reference implementations per programming language are less like reference implementations of some specification, and more like "this is the code you use to do OpenTelemetry in this language."
comment 1y ago · link · parent
I use `auto` when the type is obvious or doesn't really matter, and I seldom create aliases for types.
I feel like having verbose type names at function boundaries and using `auto` for dependent types is the sweet spot. I'll often avoid `auto` when referring to a class data member, so the reader doesn't have to refer to the definition.
void foo(const std::multimap<double, Order>& sells) {
for (const auto& [price, order] : sells) {
// ...
}
}
but also void foo(const OrderBook& book) {
const std::multimap<double, Order>& sells = book.sells;
for (const auto& [price, order] : sells) {
// ...
}
}
`auto` is convenient for iterators. Which of the following is better? auto iter = sells.begin();
std::multimap<double, Order>::const_iterator iter = sells.begin();comment 1y ago · link · parent
comment 1y ago · link · parent
If somebody is older, then you probably DO have to pay them more than if they were younger, because older candidates likely have more experience and have correspondingly higher salary expectations.
So there's that. Now suppose you have an older candidate who is not demanding high seniority pay. In that case they should be on equal footing with the younger candidates, right? Well, no. There's the double standard of "if you're so old, why aren't you above our pay grade? Shouldn't you be a manager or something?" That I don't know how to fix. Then there is the more overtly discriminatory "I'd rather hire the young candidate because old people are slow." Maybe what it really comes down to is "I don't want to work with my dad."
comment 1y ago · link · parent
This is the most insidious thing, in my opinion. If you're already a hater, now you can unabashedly claim the moral high ground. "Did she interview well, or was she a diversity hire?"
comment 1y ago · link · parent
comment 1y ago · link · parent
The language doesn't see wide adoption in industry, so maybe its most important lessons have yet to be learned, but one problem with meta-programming is that it turns part of your program into a compiler.
This happens to an extent in every language. When you're writing a library, you're solving the problem "I want users to be able to write THIS and have it be the same as if they had written THAT." A compiler. Meta-programming facilities just expand how different THIS and THAT can be.
Understanding compilers is hard. So, that's at least one potential issue with compile-time programming.
comment 1y ago · link · parent
comment 1y ago · link · parent
It takes me forever. It's like preparing for a talk at a tech conference. I spend hours and hours off the clock refining the slides, the script, and rehearsing the timing.
Nobody's going to put in that effort if they have to present multiple times per quarter, especially if they know that nobody cares and that it doesn't really matter anyway.
comment 1y ago · link · parent
In reality, I get good health insurance through an employer. When I am employed.
$1000 is nothing compared to the expense of being insured.
comment 1y ago · link · parent
comment 1y ago · link · parent
I got a call from "Bank of America," and they smoothly talked me into giving them my debit card PIN. The trick was they had gotten into my online banking beforehand. "We've detected possibly fraudulent activity on your account." Then they read me real transactions from my actual account. "To be safe, let's lock down the account. For this we need more information for authentication, though." Probably started from a phishing thing that I fell for online without noticing. It was pretty clever of them. Not so easy to steal from a checking account without leaving a trail, unless you have the PIN. Then the main risk is to whomever was on camera at the ATM withdrawing as much cash as possible before the account was automatically locked down.
The next day, I got a call from "Bank of America" telling me that I'd been had. Fortunately they just credited the money back into my account. About $5000.
The main difference is that the first call wanted me to give them information, while the second call advised only "go into a bank branch in person."
The article's advice is correct. If someone asks you for info, tell them you'll call them back. It is almost certainly a scam. Calling back the possibly spoofed number at worst wastes a little time being on hold, and at best saves you or the bank a lot of money.
comment 1y ago · link · parent
And I think it's better not to refer to strangers on the internet as cowards. How would you feel if somebody responded to your opinion by calling you a name?