11 karma · joined February 27, 2025
I feel like this must be missing a "no", but also I'm bad at math, so maybe not.
Let's not even get into how kneecapped teachers are in classroom management. A student reported him for pointing at them and touching them when he was never fewer than 3 feet away pointing away from them. The students know they have the power now, and they're definitely not going to be told what to do.
Yeah, I never thought this made sense, but so many people did; and, I always hear people on Slashdot talking about how programming IS math. None of that has been my personal experience, and I'm coming up on 21 years as software engineer. Discrete was the ONLY math course that I really enjoyed and did well in the first time around. For me, this always made sense.
If "Two" didn't have a "name: string" member, then the error would be on the call to "test".
interface Foo {
name: string
}
class One implements Foo {
constructor(public name: string) {}
}
class Two {
constructor(public name: string) {}
}
function test(thing: Foo): void {
//...
}
test(new One('joe'));
test(new Two('jane'));