Find yourself
![](https://kbin.cafe/media/cache/resolve/entry_thumb/26/34/2634b8e826300c21599e79cbeb7708c5acbc13732f329489ccc791fe364a8299.png)
TonyToniToneOfficial, ![]()
Last one should be // still a student
xmunk, Every single entry other than thief is “still a student”
pomodoro_longbreak, ![]()
Yoink.
Actually I’ve probably been all of these at various times in my career.
Windex007, I use 8, but only when I’m operating on unsigned longs.
scroll_responsibly, ![]()
my $max = $x > $y ? $x : $y;
affiliate, here’s another mathematical approach (that has the added benefit of only working when x and y are both positive).
let f denote the linear functional on ℝ^2^ defined by f(1,0) = x and f(0,1) = y (and extend by linearity). then the operator norm || f || is equal to max(x,y).
crandlecan, I’m mostly lost and in over my head
GTG3000, Russian Why use
const max = (x, y) => x > y ? x : y
instead offunction max(x, y) { return x > y ? x : y }
?
dinckelman, 2, but I’m incredibly embarrassed to say that I’ve had to do 9 before
tigerhawkvok, 9 is objectively better if you have untrusted inputs and need a stable failure mode.
dinckelman, That was precisely the reason. I prefer strongly typed languages languages, so it just felt gross to write that
Add comment