11 karma · joined Feb 27, 2025 (1y ago) · 8 submissions
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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'));