havenwood changed the topic of #ruby to: Ruby 3.4.2, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
ih8u has joined #ruby
ih8u2 has joined #ruby
ih8u has quit [Ping timeout: 265 seconds]
ih8u2 is now known as ih8u
lutherann has quit [Quit: WeeChat 4.4.3]
TomyLobo has quit [Read error: Connection reset by peer]
fercell has quit [Ping timeout: 252 seconds]
fercell has joined #ruby
hexreel has joined #ruby
wbooze has quit [Quit: Leaving]
fantazo has quit [Quit: Lost terminal]
blacknova has quit [Quit: Connection closed for inactivity]
lutherann has joined #ruby
lutherann has quit [Client Quit]
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
lutherann has joined #ruby
whysthatso125070 has quit [Quit: The Lounge - https://thelounge.chat]
whysthatso125070 has joined #ruby
jmcantrell has quit [Quit: WeeChat 4.6.0]
jmcantrell_ is now known as jmcantrell
grenierm has joined #ruby
wbooze has joined #ruby
lutherann has quit [Ping timeout: 245 seconds]
lutherann has joined #ruby
lutherann has quit [Excess Flood]
lutherann has joined #ruby
lutherann has quit [Client Quit]
lutherann has joined #ruby
lutherann has quit [Client Quit]
lutherann has joined #ruby
STASIdownunder has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
hexreel has quit [Quit: WeeChat 4.3.1]
rhe has joined #ruby
STASIdownunder has joined #ruby
rdsm_ has quit [Ping timeout: 245 seconds]
rdsm has joined #ruby
STASIdownunder has quit [Remote host closed the connection]
STASIdownunder has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
Rounin has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
<nakilon> the fact that [].sum == 0 isn't "following math rules" I think, it's already some assumption
<nakilon> it could be NaN
<nakilon> иге ше шытэе
<nakilon> *but it isn't
<leah2> read up on neutral elements of groups :p
STASIdownunder has quit [Read error: Connection reset by peer]
<nakilon> if the sum is equal to 0, isn't average equal 0 too? according to math
<nakilon> I mean that's why we should not stumble on the error
<nakilon> *exception
<leah2> no, the average of an empty list is undefined
Rounin has joined #ruby
Rounin has quit [Changing host]
Rounin has joined #ruby
STASIdownunder has joined #ruby
<o0x1eef> Average people aren't mathmeticians though, they won't understand undefined or NaN or whatever. Zero usually conveys something more sensicial. Anything else comes off as weird.
<leah2> 0 is just as arbitrary as 5
<o0x1eef> From a UX standpoint? Not so sure. If I saw an average of 0 I'd assume "no average". If I saw NaN I'd think it is a bug, same for undefined.
<leah2> but it's a bug :D
<o0x1eef> Yeah fair enough, probably best handled with a very specific error message like "No results" or something.
<o0x1eef> "Insufficient data" maybe.
STASIdownunder has quit [Read error: Connection reset by peer]
grenierm has quit [Ping timeout: 240 seconds]
gemmaro has quit [Ping timeout: 244 seconds]
gemmaro_ has joined #ruby
GreenResponse has joined #ruby
rhrf has quit [Ping timeout: 244 seconds]
STASIdownunder has joined #ruby
schne1der has joined #ruby
STASIdownunder has quit [Remote host closed the connection]
STASIdownunder has joined #ruby
STASIdownunder has quit [Read error: Connection reset by peer]
infinityfye has joined #ruby
patrick has quit [Ping timeout: 252 seconds]
patrick_ is now known as patrick
aesthetikx has quit [Ping timeout: 245 seconds]
sarna has quit [Ping timeout: 245 seconds]
__jmcantrell__ has joined #ruby
jmcantrell has quit [Killed (zinc.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ruby
aesthetikx has joined #ruby
user71 has joined #ruby
aesthetikx has quit [Ping timeout: 252 seconds]
aesthetikx has joined #ruby
nmollerup has quit [Quit: Leaving]
factor has joined #ruby
Rounin has quit [Ping timeout: 252 seconds]
<havenwood> nakilon: It's coherent from a mathy perspective, where the sum of an empty set is zero and there are zero elements in the set. Zero divided by zero is undefined.
<havenwood> In the cases where it makes sense to divide by zero, you usually want infinity.
hwpplayer1 has joined #ruby
<havenwood> I'd for sure not want a number other than infinity, since it'd be just wrong and probably lead to a number of undiscovered bugs.
<havenwood> Having an `exception: false` type thing that returns `nil` seems fine.
<havenwood> Zero divided by zero is odder to me than other numbers divided by zero.
aesthetikx has quit [Ping timeout: 248 seconds]
STASIdownunder has joined #ruby
Rounin has joined #ruby
cappy has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
user71 has quit [Ping timeout: 272 seconds]
<o0x1eef> Today feels like an -Infinity day
sarna has joined #ruby
___nick___ has joined #ruby
fantazo has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Sampersand has joined #ruby
___nick___ has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
cappy has quit [Quit: Leaving]
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
dionysus69 has joined #ruby
user71 has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
dionysus70 is now known as dionysus69
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 248 seconds]
rvalue- is now known as rvalue
___nick___ has quit [Ping timeout: 244 seconds]
user71 has quit [Quit: Leaving]
<havenwood> o0x1eef: nakilon: Inspired by our talk I made a gem. https://github.com/havenwood/data-option#readme
<Sampersand> interesting
<Sampersand> sadly no exhaustive checks
hwpplayer1 has quit [Quit: sleep]
Sampersand has quit [Quit: Client closed]
blacknova has joined #ruby
Sampersand has joined #ruby
schne1der has joined #ruby
Sampersand has quit [Quit: Client closed]
Sampersand has joined #ruby
graywolf has joined #ruby
schne1der has quit [Ping timeout: 244 seconds]
graywolf has quit [Quit: WeeChat 4.6.0]
GreenResponse has quit [Quit: Leaving]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Sampersand has quit [Quit: Client closed]
cappy has joined #ruby
szkl has joined #ruby
lutherann has quit [Read error: Connection reset by peer]
cybniv has quit [Read error: Connection reset by peer]
<o0x1eef> That's nice havenwood - TIL some Rust Semantics :) Or well, I tried to grasp it anyway
<o0x1eef> Cool use of pattern matching
niv has joined #ruby