duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
chalkmonster has quit [Ping timeout: 245 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
StarLord__ has joined #ruby
bambanxx has quit [Ping timeout: 258 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
Freshnuts has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
chalkmonster has joined #ruby
Freshnuts has quit [Max SendQ exceeded]
Freshnuts has joined #ruby
duderonomy has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
codefriar has quit [Ping timeout: 272 seconds]
AJA4350 has quit [Remote host closed the connection]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
codefriar has joined #ruby
codefriar has quit [Client Quit]
codefriar has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
fphilipe_ has joined #ruby
StarLord__ has quit [Quit: Leaving]
chalkmonster has quit [Quit: WeeChat 2.5]
fphilipe_ has quit [Ping timeout: 250 seconds]
sauvin has joined #ruby
braincrash has quit [Quit: bye bye]
vjacob has quit [Ping timeout: 268 seconds]
braincrash has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
Technodrome has joined #ruby
_whitelogger has joined #ruby
fphilipe_ has quit [Ping timeout: 264 seconds]
dedRabbit has joined #ruby
yokel has quit [Ping timeout: 258 seconds]
yokel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Remote host closed the connection]
pwnd_nsfw has quit [Remote host closed the connection]
yokel has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
n13z has quit [Quit: leaving]
dellavg_ has joined #ruby
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 244 seconds]
chalkmonster has joined #ruby
fphilipe_ has joined #ruby
chalkmon1 has quit [Ping timeout: 248 seconds]
kyrylo has joined #ruby
amrx has quit [Ping timeout: 246 seconds]
zululee_ has quit [Quit: Ping timeout (120 seconds)]
zululee_ has joined #ruby
rippa has joined #ruby
m_antis has quit [Quit: m_antis]
fphilipe_ has quit [Ping timeout: 252 seconds]
m_antis has joined #ruby
tdy1 has joined #ruby
tdy has quit [Ping timeout: 245 seconds]
bga57 has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
ropeney_ has quit [Read error: Connection reset by peer]
deathwishdave has joined #ruby
ropeney has joined #ruby
cthulchu_ has quit [Ping timeout: 258 seconds]
sandstrom has joined #ruby
_whitelogger has joined #ruby
_whitelogger has joined #ruby
dedRabbit has quit [Quit: WeeChat 2.5]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
lord4163 has quit [Excess Flood]
lord4163 has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
queip has quit [Ping timeout: 246 seconds]
deathwishdave has joined #ruby
fphilipe_ has joined #ruby
queip has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
lord4163 has quit [Excess Flood]
lord4163 has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fphilipe_ has joined #ruby
_whitelogger has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
schne1der has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
Freshnuts has quit [Quit: Leaving]
fphilipe_ has quit [Ping timeout: 276 seconds]
haxx0r has quit [Quit: Ping timeout (120 seconds)]
sandstrom has quit [Ping timeout: 245 seconds]
sandstrom has joined #ruby
conta has quit [Quit: conta]
sandstrom has quit [Ping timeout: 268 seconds]
xco has joined #ruby
fphilipe_ has joined #ruby
doodlebug has quit [Ping timeout: 244 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
schne1der has quit [Ping timeout: 244 seconds]
xco has quit [Quit: xco]
sandstrom has joined #ruby
DTZUZO has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
sandstrom has quit [Ping timeout: 272 seconds]
fphilipe_ has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
fphilipe_ has quit [Ping timeout: 276 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
xco has joined #ruby
xco has quit [Quit: xco]
sandstrom has joined #ruby
fphilipe_ has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
sandstrom has quit [Ping timeout: 272 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
deathwishdave has joined #ruby
nima_m has joined #ruby
vjacob has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
Swyper has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
Swyper has quit [Ping timeout: 258 seconds]
conta has joined #ruby
Cthulu201 has quit [Ping timeout: 244 seconds]
bga57 has joined #ruby
sandstrom has joined #ruby
mikecmpbll has joined #ruby
Fernando-Basso has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
sandstrom has quit [Ping timeout: 244 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
fphilipe_ has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
staticx has joined #ruby
exmortus has quit [Ping timeout: 258 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
yokel has quit [Remote host closed the connection]
yokel has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
kent\n has quit [Ping timeout: 245 seconds]
schne1der has joined #ruby
gix has joined #ruby
kent\n has joined #ruby
haxx0r has joined #ruby
xco has joined #ruby
Cthulu201 has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Quit: WeeChat 2.0]
DTZUZO has joined #ruby
kent\n has quit [Ping timeout: 246 seconds]
kyrylo has joined #ruby
kent\n has joined #ruby
nima_m has quit [Quit: Connection closed for inactivity]
queip has quit [Ping timeout: 244 seconds]
Inline has quit [Ping timeout: 252 seconds]
queip has joined #ruby
doodlebug has quit [Ping timeout: 268 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
mikecmpb_ has joined #ruby
Inline has joined #ruby
mikecmpbll has quit [Ping timeout: 268 seconds]
sandstrom has joined #ruby
sandstrom has quit [Client Quit]
deepreds1 has joined #ruby
chalkmonster has joined #ruby
<chalkmonster>
make IRC great again
sandstrom has joined #ruby
vjacob has quit [Ping timeout: 248 seconds]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RiPuk has quit [Ping timeout: 268 seconds]
conta has quit [Quit: conta]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
lord4163 has quit [Excess Flood]
sandstrom has quit [Ping timeout: 272 seconds]
lord4163 has joined #ruby
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
masticass has quit [Quit: WeeChat 2.4]
<havenwood>
?offtopic chalkmonster
<ruby[bot]>
chalkmonster: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<havenwood>
comet23: It's nice to use :ok and :error for Erlang-style return values. So `:error` instead of `"ERROR"`, though these days it matters less with frozen string literals available.
<havenwood>
comet23: Typically, you'd `raise` in this case, after say a `to_int` conversion attempt.
<havenwood>
comet23: You see a lot of examples of that in the stdlib.
<havenwood>
(Not #to_int here, since your logic deals with fractions.)
<havenwood>
comet23: Floats tend to be a mess to use. They're not just decimal numbers. They're fast, but there're enough gotchas they're problematic in many cases.
<havenwood>
comet23: BigDecimal or Rational are often better choices.
<comet23>
what are floats if they're not just decimal numbers?
<havenwood>
"Decimal arithmetic is also useful for general calculation, because it provides the correct answers people expect–whereas normal binary floating point arithmetic often introduces subtle errors because of the conversion between base 10 and base 2."
<comet23>
oh, that's very interesting... here i thought a float is the jargon for decimal numbers
<havenwood>
comet23: BigDecimal will be the behavior you expect, where Float will seem wrong and bizarre if you're not familiar with binary floats.
<comet23>
i'm going to try to learn from the docs and not from online videos
<comet23>
docs are a bit hard to read for me due to their terse wording
<havenwood>
comet23: I don't think new folk to programming should even be taught Floats. They're not particularly useful for most things.
<havenwood>
And they're indeed esoteric.
<comet23>
i don't think it's being taught floats that is the problem
reber has joined #ruby
<havenwood>
¯\_(ツ)_/¯
<comet23>
i think it's being taught things without explaining their respective use cases
<comet23>
here's a float, floats are decimal numbers this is how you use them now go have fun :)
<havenwood>
comet23: I'm not against learning about Floats at all. :) I just think they get introduced early on to new folk, when experienced folk aren't using them. We shouldn't introduce esoteric parts like Float and Matrix right up front.
<havenwood>
No harm in using Float or Matrix or whatever else, but just because Floats look like decimal numbers isn't a good excuse to teach them to newcomers imho.
<comet23>
they're also presented as such
<havenwood>
aren't using them often*
<havenwood>
comet23: Ah, good. :)
sandstrom has joined #ruby
xco has quit [Quit: xco]
conta has joined #ruby
orbyt_ has joined #ruby
GodFather has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlebug has joined #ruby
doodlebug has quit [Excess Flood]
doodlebug has joined #ruby
fphilipe_ has joined #ruby
deathwishdave has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AJA4351 has joined #ruby
jmcgnh has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 244 seconds]
AJA4351 is now known as AJA4350
jmcgnh_ has joined #ruby
jmcgnh_ is now known as jmcgnh
henninb has joined #ruby
moei has joined #ruby
henninb has left #ruby [#ruby]
queip has quit [Ping timeout: 245 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
orbyt_ has joined #ruby
queip has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v3.6 Beta Build (2019/06/30 UTC) 64 Bit]
<leitz>
Yay me! Just finished studying "Head First Ruby". Except for the appendix, which I'll get to shortly.
queip has joined #ruby
h2t4vc7s9 has joined #ruby
h2t4vc7s9 has quit [Remote host closed the connection]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BH23 has quit [Ping timeout: 248 seconds]
deepreds1 has quit [Ping timeout: 268 seconds]
staticx has quit [Remote host closed the connection]
staticx has joined #ruby
bambanx has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.5]
mikecmpb_ has quit [Quit: inabit. zz.]
fphilipe has joined #ruby
fphilipe_ has quit [Ping timeout: 252 seconds]
fphilipe has quit [Ping timeout: 252 seconds]
<havenwood>
leitz: nice!
Technodrome has joined #ruby
chalkmonster has joined #ruby
Technodrome has quit [Remote host closed the connection]
<leitz>
Yeah, but pretty brain dead. I've spent most of my free time this week on it.
<leitz>
Also spent some time on the question you asked, havenwood, about what projects I'm working on. Wrote them up in short form, and some of the questions and challenges.
moei has quit [Quit: Leaving...]
chalkmonster has quit [Quit: WeeChat 2.5]
bambanxx has joined #ruby
bambanx has quit [Ping timeout: 245 seconds]
fphilipe has joined #ruby
chalkmonster has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 245 seconds]
chalkmonster has quit [Quit: WeeChat 2.5]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has joined #ruby
queip has quit [Ping timeout: 244 seconds]
orbyt_ has joined #ruby
henninb has joined #ruby
queip has joined #ruby
fphilipe has quit [Ping timeout: 252 seconds]
Fernando-Basso has quit [Remote host closed the connection]
StarLord__ has joined #ruby
bambanxx has quit [Ping timeout: 258 seconds]
Momentum has quit [Quit: WeeChat 2.0.1]
_whitelogger has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanxx has joined #ruby
StarLord__ has quit [Ping timeout: 248 seconds]
lucasb has quit [Quit: Connection closed for inactivity]