havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.3, 2.3.6, 2.2.9 & 2.5.0-rc1: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
kapil___ has quit [Quit: Connection closed for inactivity]
cagomez has joined #ruby
pastorinni has quit [Ping timeout: 264 seconds]
aScottishBoat has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
clemens3 has quit [Ping timeout: 260 seconds]
uZiel has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
funburn has joined #ruby
drcode has joined #ruby
John____ has quit [Remote host closed the connection]
naprimer2 has joined #ruby
selim has quit [Ping timeout: 272 seconds]
cagomez has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Remote host closed the connection]
selim has joined #ruby
ur5us has joined #ruby
alfiemax has joined #ruby
ResidentBiscuit has joined #ruby
funburn has quit [Quit: funburn]
naprimer has quit [Ping timeout: 264 seconds]
houhoulis has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
ghoti has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
<zenspider> damn cafe network...
<zenspider> havenwood: I thought it should be using the threshold passed in to initialize?
vee__ has quit [Ping timeout: 264 seconds]
vee__ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
drcode has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 265 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has joined #ruby
vee__ has quit [Ping timeout: 256 seconds]
code_zombie has quit [Read error: Connection reset by peer]
jdawgaz has joined #ruby
steveAT has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> zenspider: ahhh, gotcha
steph_ has joined #ruby
cdg has quit [Remote host closed the connection]
vee__ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bonhoeffer has joined #ruby
vee__ has quit [Ping timeout: 272 seconds]
Puffball has quit [Ping timeout: 248 seconds]
mostly-harmless has joined #ruby
Puffball has joined #ruby
eckhardt has joined #ruby
alfiemax has joined #ruby
cagomez has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
alfiemax has quit [Ping timeout: 248 seconds]
<bonhoeffer> do folks still use selenium?
lucz has joined #ruby
slester_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leah2 has quit [Ping timeout: 240 seconds]
leah2 has joined #ruby
vee__ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
steph_ has quit [Remote host closed the connection]
lucz has quit [Remote host closed the connection]
cagomez has joined #ruby
zautomata1 has joined #ruby
jdawgaz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Remote host closed the connection]
kryptoz has joined #ruby
cagomez has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
ogres has joined #ruby
uZiel has joined #ruby
steph_ has joined #ruby
drcode has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
lucz has joined #ruby
lucz has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 240 seconds]
herbmillerjr has joined #ruby
chocoelho has quit [Quit: chocoelho]
nopolitica has quit [Ping timeout: 256 seconds]
lucz has joined #ruby
houhoulis has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
mtkd has joined #ruby
mikecmpbll has joined #ruby
yeticry has joined #ruby
lucz has quit [Remote host closed the connection]
orbyt_ has joined #ruby
steveAT has quit [Quit: bye]
funburn has joined #ruby
funburn has quit [Client Quit]
steph_ has quit [Remote host closed the connection]
kryptoz has quit [Remote host closed the connection]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
truenito has joined #ruby
kryptoz has joined #ruby
zautomata1 has quit [Ping timeout: 264 seconds]
vee__ has quit [Ping timeout: 256 seconds]
mikecmpb_ has joined #ruby
zautomata1 has joined #ruby
truenito has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Ping timeout: 265 seconds]
mikecmpb_ has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 272 seconds]
vee__ has joined #ruby
nowhere_man has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
nowhere_man has joined #ruby
code_zombie has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
rrutkowski has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 264 seconds]
bonhoeffer has quit [Ping timeout: 256 seconds]
dviola has quit [Quit: WeeChat 2.0]
d^sh has joined #ruby
mrBen2k2k2k has joined #ruby
ResidentBiscuit has quit []
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Quit: AJA4350]
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
mikecmpb_ has joined #ruby
nofxx has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 256 seconds]
mrBen2k2k2k has joined #ruby
nankyoku_ has joined #ruby
mikecmpbll has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
cschneid_ has joined #ruby
nofxx has quit [Quit: Leaving]
nofxx has joined #ruby
cdg has joined #ruby
mikecmpb_ has quit [Ping timeout: 265 seconds]
pilne has joined #ruby
kies has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
ramfjord has joined #ruby
vee__ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
shortdudey123 has quit [Ping timeout: 255 seconds]
shortdudey123 has joined #ruby
zautomata1 has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
rrutkowski has joined #ruby
DmitryBochkarev has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
uZiel has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
ramfjord has joined #ruby
enterprisey has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
nopolitica has joined #ruby
nofxx has joined #ruby
nopolitica has quit [Ping timeout: 265 seconds]
astronavt has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has joined #ruby
mikecmpbll has joined #ruby
mikecmpb_ has quit [Ping timeout: 265 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Remote host closed the connection]
uZiel has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
jdawgaz has joined #ruby
meshsmith has joined #ruby
meshsmith has quit [Changing host]
meshsmith has joined #ruby
hahuang65 has joined #ruby
jackjackdripper has joined #ruby
nowhere_man has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
jackjackdripper has quit [Ping timeout: 256 seconds]
cdg has quit [Remote host closed the connection]
x0f has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lucz has joined #ruby
jdawgaz has joined #ruby
ur5us has quit [Remote host closed the connection]
alfiemax has joined #ruby
ur5us has joined #ruby
mikecmpb_ has joined #ruby
lucz has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
mim1k has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
jnollette has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 265 seconds]
jnollette has joined #ruby
alex`` has joined #ruby
mikecmpbll has joined #ruby
steph_ has joined #ruby
mikecmpb_ has quit [Ping timeout: 265 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
astronavt has quit [Remote host closed the connection]
nopolitica has joined #ruby
enterprisey has quit [Remote host closed the connection]
meshsmith has quit [Remote host closed the connection]
nopolitica has quit [Ping timeout: 272 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
KeyJoo has quit [Ping timeout: 256 seconds]
nofxx has quit [Ping timeout: 248 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Remote host closed the connection]
nofxx has joined #ruby
mikecmpbll has joined #ruby
pilne has quit [Quit: Quitting!]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quobo has quit [Quit: Connection closed for inactivity]
mikecmpb_ has quit [Ping timeout: 240 seconds]
cloaked1 has quit [Ping timeout: 256 seconds]
jamesaxl has joined #ruby
dionysus69 has joined #ruby
meesles has quit []
cschneid_ has joined #ruby
ShekharReddy has joined #ruby
alfiemax has joined #ruby
mtkd has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
mtkd has joined #ruby
jackjackdripper has joined #ruby
alex`` has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
johnzorn has quit [Read error: Connection reset by peer]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
mim1k has joined #ruby
zautomata1 has joined #ruby
steph_ has quit [Remote host closed the connection]
anisha_ has joined #ruby
mim1k has quit [Ping timeout: 265 seconds]
armyriad has quit [Ping timeout: 248 seconds]
armyriad has joined #ruby
zautomata1 has quit [Ping timeout: 265 seconds]
cschneid_ has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 265 seconds]
fclausen has quit [Quit: leaving]
nopolitica has joined #ruby
cloaked1 has joined #ruby
charliesome has joined #ruby
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
cadillac_ has quit [Ping timeout: 272 seconds]
nopolitica has quit [Ping timeout: 240 seconds]
iamarun has joined #ruby
lucz has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
lucz has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
nofxx has joined #ruby
alfiemax has joined #ruby
anisha__ has joined #ruby
sleetdrop has joined #ruby
SuperLag has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
DmitryBochkarev has joined #ruby
anisha_ has quit [Ping timeout: 248 seconds]
nofxx has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
SuperLag has joined #ruby
sleetdrop has quit [Remote host closed the connection]
enterprisey has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
_aeris_ has joined #ruby
nofxx has joined #ruby
MrSparkle has quit [Quit: MrSparkle]
exhiled has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
lucz has joined #ruby
exhiled has quit [Client Quit]
alfiemax has quit [Ping timeout: 256 seconds]
exhiled has joined #ruby
ldepandis has joined #ruby
lucz has quit [Ping timeout: 256 seconds]
zautomata1 has joined #ruby
reber has joined #ruby
skweek has quit [Ping timeout: 264 seconds]
LocaMocha has joined #ruby
oleo has quit [Quit: Leaving]
dionysus69 has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Ping timeout: 264 seconds]
lucz has joined #ruby
alfiemax has joined #ruby
lucz has quit [Ping timeout: 256 seconds]
nofxx_ has joined #ruby
nopolitica has joined #ruby
nofxx has quit [Ping timeout: 248 seconds]
nopolitica has quit [Ping timeout: 264 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 256 seconds]
p0p0pr37_ is now known as p0p0pr37
eckhardt has joined #ruby
apeiros has quit [Remote host closed the connection]
aef has quit [Remote host closed the connection]
aef_ has quit [Read error: Connection reset by peer]
lucz has joined #ruby
KeyJoo has joined #ruby
lucz has quit [Ping timeout: 264 seconds]
zautomata1 has quit [Ping timeout: 265 seconds]
yokel has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
mikhael_k33hl has joined #ruby
<mikhael_k33hl> I'm trying to setup rvm with jenkins, how do I install it as a single user to be within jenkins home directory?
yokel has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plexigras has joined #ruby
cloaked1 has quit [Quit: Leaving]
ana_ has joined #ruby
apeiros has joined #ruby
pikislabis has joined #ruby
anisha_ has joined #ruby
anisha__ has quit [Ping timeout: 272 seconds]
ledestin has joined #ruby
ldepandis has quit [Ping timeout: 256 seconds]
nopolitica has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
kernelPaniq has joined #ruby
yeewos has joined #ruby
kapil___ has joined #ruby
nopolitica has quit [Ping timeout: 265 seconds]
lucz has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
quobo has joined #ruby
lucz has quit [Ping timeout: 240 seconds]
qba73 has joined #ruby
namho has joined #ruby
alfiemax has quit [Remote host closed the connection]
namho has left #ruby [#ruby]
alfiemax has joined #ruby
lucz has joined #ruby
drbrain has quit [Ping timeout: 246 seconds]
alfiemax has quit [Ping timeout: 272 seconds]
lucz has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
rhebz916 has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
vondruch has joined #ruby
karapetyan has quit [Ping timeout: 265 seconds]
namho has joined #ruby
kapil___ has quit [Ping timeout: 240 seconds]
srandon111 has joined #ruby
<srandon111> hello all, how do you structure your code in the presence of a database ? imean do you useually create a single class to deal with the database and put all the method representing the queries there or more classes ?
kapil___ has joined #ruby
rhebz916 has quit [Ping timeout: 256 seconds]
drbrain has quit [Ping timeout: 260 seconds]
lucz has joined #ruby
ramfjord has joined #ruby
kapil___ has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
lucz has quit [Ping timeout: 260 seconds]
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
rhebz916 has joined #ruby
claudiuinberlin has joined #ruby
Dimik has quit [Ping timeout: 268 seconds]
drbrain has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
lucz has joined #ruby
aufi has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has joined #ruby
mikecmpbll has joined #ruby
lucz has quit [Ping timeout: 272 seconds]
pikislabis has quit [Quit: pikislabis]
mikecmpb_ has quit [Ping timeout: 265 seconds]
andikr has joined #ruby
drbrain has joined #ruby
drbrain has quit [Changing host]
drbrain has joined #ruby
TomyWork has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
zautomata1 has joined #ruby
plexigras has quit [Quit: WeeChat 2.0]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
TomyWork has quit [Quit: Leaving]
nopolitica has joined #ruby
TomyWork has joined #ruby
plexigras has joined #ruby
nopolitica has quit [Ping timeout: 272 seconds]
code_zombie has quit [Quit: Leaving]
mikecmpb_ has joined #ruby
iamarun has quit [Remote host closed the connection]
iamarun has joined #ruby
cdg has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
alex`` has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
guille-moe has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
Mon_Ouie has joined #ruby
marr has joined #ruby
alfiemax has joined #ruby
mikecmpbll has joined #ruby
hs366 has joined #ruby
voker57 has quit [Quit: No Ping reply in 180 seconds.]
voker57 has joined #ruby
voker57 has joined #ruby
voker57 has quit [Changing host]
amatas has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
pikislabis has joined #ruby
bkxd has joined #ruby
<srandon111> if i want to use scikit-learn in ruby how can i do ?
<mikecmpbll> srandon111 : what functionality are you after? :) there's _some_ ML stuff in the ruby community going on
<mnemon> srandon111: there's plenty of frameworks for DB's(probably most notable one being activerecord), essentially ruby object to DB "object" mapping with all the standard DB code already in place.
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
zautomata1 has quit [Ping timeout: 265 seconds]
bruce_lee has joined #ruby
zautomata1 has joined #ruby
bkxd has quit []
<srandon111> mikecmpbll: well neural networks... and deep learning... such as tensorflow also would not be bad
<srandon111> is there something for ruby ?
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
<mikecmpbll> i'm not going to pretend there's as good libraries as in python but there's some stuff here: https://github.com/arbox/machine-learning-with-ruby
zautomata1 has quit [Ping timeout: 240 seconds]
qba73 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucz has joined #ruby
plexigras has quit [Quit: WeeChat 2.0]
<dminuoso> ML with Ruby?
<dminuoso> That requires some serious masochism.
nopolitica has joined #ruby
ana_ has quit [Quit: Leaving]
lucz has quit [Ping timeout: 248 seconds]
yaewa has joined #ruby
sepp2k has joined #ruby
nopolitica has quit [Ping timeout: 265 seconds]
moei has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
nowhere_man has joined #ruby
zautomata1 has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
Technodrome has joined #ruby
lucz has joined #ruby
uZiel has quit [Remote host closed the connection]
Beams has joined #ruby
mim1k has joined #ruby
uZiel has joined #ruby
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
lucz has quit [Ping timeout: 260 seconds]
DarkUnicorn has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
RevanOne has quit [Ping timeout: 256 seconds]
Revan007 has joined #ruby
qba73 has joined #ruby
plexigras has joined #ruby
mim1k has joined #ruby
alex`` has quit [Ping timeout: 255 seconds]
miskatonic has joined #ruby
kedare has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
zautomata1 has quit [Ping timeout: 265 seconds]
Serpent7776 has joined #ruby
ramfjord has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
workmad3 has joined #ruby
<mnemon> dminuoso: all the heavy lifting will be done with by the libs/native extensions anyways eh?
<GeorgesLeYeti> I want to record some stats on my web application using a table Statistic. I want to record this stats every month, so I haded a column stated_at which is a datetime. But i'm confused about using DateTime or Time
mtkd has quit [Ping timeout: 272 seconds]
<GeorgesLeYeti> I try to record my value as DateTime.new(year, month).beginning_of_month
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
mtkd has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
zautomata1 has joined #ruby
ldnunes has joined #ruby
<GeorgesLeYeti> But if i make s = Statistic.last; Statistic.where(stated_at: (s.stated_at - 1.month).beginnig_of_month) it didn't works.
<dminuoso> mnemon: I'd hope so. Wouldn't want to train some rudimentary net for some weeks just to recognize digits.
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
DarkUnicorn has quit [Ping timeout: 240 seconds]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
<mnemon> dminuoso: It does require some additional throght to make sure ruby doesn't do anything beyond the coordinating :)
<mnemon> *thought
DarkUnicorn has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
karapetyan has joined #ruby
Cavallari has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
cdg_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
jaruga has joined #ruby
cdg has joined #ruby
srandon111 has quit [Quit: Page closed]
mim1k is now known as mim1k|w
exhiled has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
cdg_ has quit [Ping timeout: 265 seconds]
cdg has quit [Ping timeout: 265 seconds]
nopolitica has joined #ruby
eksi_ has joined #ruby
mrBen2k2k2k has joined #ruby
eksi_ has quit [Client Quit]
nopolitica has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
yeewos has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exhiled has joined #ruby
fusta has joined #ruby
karapetyan has joined #ruby
karapety_ has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
alfiemax has quit [Read error: Connection reset by peer]
karapety_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
alfiemax has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
nopolitica has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
zautomata1 has quit [Ping timeout: 248 seconds]
karapetyan has joined #ruby
exhiled has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapety_ has joined #ruby
zautomata1 has joined #ruby
karapety_ has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
quobo has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
GeorgesLeYeti has quit [Quit: Leaving]
karapetyan has joined #ruby
KeyJoo has quit [Ping timeout: 240 seconds]
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapety_ has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
karapety_ has quit [Read error: Connection reset by peer]
karapety_ has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
karapety_ has quit [Read error: Connection reset by peer]
qba73 has quit [Ping timeout: 260 seconds]
<apeiros> !fixcon karapetyan
bkxd has quit [Client Quit]
qba73 has joined #ruby
zautomata1 has quit [Quit: WeeChat 1.7]
Riddell has quit [Ping timeout: 264 seconds]
Riddell has joined #ruby
TvL2386_ has joined #ruby
lucz has joined #ruby
TvL2386 has quit [Ping timeout: 260 seconds]
hfp_work has quit [Quit: bye]
lucz has quit [Ping timeout: 264 seconds]
pikislabis has quit [Quit: pikislabis]
lucz has joined #ruby
hfp_work has joined #ruby
larcara has joined #ruby
Revan007 has quit [Ping timeout: 260 seconds]
RevanOne has joined #ruby
nowhere_man has quit [Remote host closed the connection]
pikislabis has joined #ruby
Ishido has joined #ruby
tvw has joined #ruby
Burgestrand has joined #ruby
zapata has quit [Read error: Connection reset by peer]
lucz has quit [Ping timeout: 248 seconds]
zapata has joined #ruby
anisha_ has quit [Ping timeout: 264 seconds]
anisha_ has joined #ruby
nowhere_man has joined #ruby
iamarun has quit [Remote host closed the connection]
tsglove has joined #ruby
jnollette has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
nathias has joined #ruby
jamesaxl has joined #ruby
jnollette has joined #ruby
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
alfiemax has quit [Remote host closed the connection]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
larcara has quit [Remote host closed the connection]
larcara has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
nowhere_man has quit [Remote host closed the connection]
cadillac_ has joined #ruby
tcopeland has quit [Quit: tcopeland]
rhebz916 has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 265 seconds]
larcara has quit [Ping timeout: 248 seconds]
qba73 has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
anisha_ has quit [Ping timeout: 264 seconds]
DarkUnicorn has quit [Quit: Connection closed for inactivity]
Psybur has joined #ruby
cschneid_ has joined #ruby
jnollette has quit [Remote host closed the connection]
jnollette has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
uZiel has joined #ruby
larcara has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
mim1k|w has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
workmad3 has joined #ruby
KeyJoo has joined #ruby
bmurt has joined #ruby
KeyJoo has quit [Remote host closed the connection]
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
nankyoku_ has quit []
AJA4350 has joined #ruby
alex`` has joined #ruby
GodFather has joined #ruby
chocoelho has joined #ruby
truenito has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
raynold has joined #ruby
pdcawley has joined #ruby
truenito has quit [Ping timeout: 265 seconds]
truenito has joined #ruby
lucz has joined #ruby
jdawgaz has joined #ruby
pikislabis has left #ruby [#ruby]
lucz has quit [Ping timeout: 265 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
xco has joined #ruby
<xco> can some good guy explain to me what this casecmp method does? https://ruby-doc.org/core-2.1.0/String.html#method-i-casecmp i don’t get the examples
alfiemax has quit [Remote host closed the connection]
lucz has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
jdawgaz has joined #ruby
lucz has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Client Quit]
endemic has quit [Ping timeout: 250 seconds]
sriehl has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
creat has quit [Ping timeout: 240 seconds]
znz_jp has quit [Ping timeout: 240 seconds]
Antiarc has quit [Ping timeout: 250 seconds]
Antiarc has joined #ruby
alfiemax has joined #ruby
sriehl has joined #ruby
sriehl has quit [Changing host]
sriehl has joined #ruby
creat has joined #ruby
endemic has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
znz_jp has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
DmitryBochkarev has joined #ruby
funburn has joined #ruby
nathias has quit [Quit: WeeChat 2.0]
DmitryBochkarev has quit [Client Quit]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
konsolebox has joined #ruby
tcopeland has joined #ruby
rhebz916 has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has quit [Ping timeout: 256 seconds]
jdawgaz has joined #ruby
mtkd has quit [Ping timeout: 265 seconds]
jdawgaz has quit [Client Quit]
mtkd has joined #ruby
chocoelho has quit [Quit: chocoelho]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
charliesome has joined #ruby
rippa has joined #ruby
synthroid has joined #ruby
mostlybadfly has joined #ruby
ski4x7 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jdawgaz has joined #ruby
<adaedra> Don't we !fixcon them regularly or is it bad memory from me?
larcara has quit []
<adaedra> xco: It compares two string while ignoring the case.
<adaedra> two strings*
<xco> thanks. when is the case 1, 0 or -1
uZiel has quit [Ping timeout: 248 seconds]
<xco> when the strings match it’s 1 i guess
<adaedra> no, it's 0
jdawgaz has quit [Client Quit]
<xco> and when it’s 1?
<adaedra> it's a relative comparaison, so the string are either the same or one is before the other, and in this case you have -1 or 1 depending which one
<xco> ah!
<adaedra> same as for <=>
<xco> thanks
<xco> got it now thank you
aScottishBoat has joined #ruby
Riddell has quit [Ping timeout: 264 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
hinbody has quit [Quit: leaving]
ski7777 has joined #ruby
pdcawley has quit [Quit: pdcawley]
uZiel has joined #ruby
Riddell has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
hinbody has joined #ruby
lucz has joined #ruby
funburn has joined #ruby
KeyJoo has joined #ruby
my123_ has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
my123 has joined #ruby
my123 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
lucz has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
DmitryBochkarev has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
Cavallari has quit [Quit: Cavallari]
cdg has quit [Ping timeout: 264 seconds]
qba73 has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
Ltem has joined #ruby
huyderman has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
mikkelsen has joined #ruby
huyderman has joined #ruby
aScottishBoat has quit [Ping timeout: 240 seconds]
aScottishBoat has joined #ruby
Cu5tosLimen has joined #ruby
<Cu5tosLimen> hi
<Cu5tosLimen> how do I determine if a package is loaded?
<Cu5tosLimen> say I did require 'asciidoctor' - how can I see it is loaded?
mikkelsen has quit [Ping timeout: 264 seconds]
sameerynho has quit [Ping timeout: 248 seconds]
aScottishBoat has quit [Ping timeout: 265 seconds]
<Papierkorb> Cu5tosLimen: What is your usecase? What are you trying to do?
jdawgaz has joined #ruby
<apeiros> Cu5tosLimen: $LOADED_FEATURES contains all required files
<apeiros> and wrt Papierkorb's question - this is something which should only be used for debugging purposes.
<Cu5tosLimen> Papierkorb, actually I should maybe ask in jruby rather - but I'm having some issue with asciidoctor-gradle-plugin which uses jruby - if gradle is running in daemon mode then it only find asciidoctor-diagram on first build and on subsequent builds it does not find it
<Cu5tosLimen> I'm trying to figure out why the module is not there on subsequent runs
<Cu5tosLimen> apeiros, ok let me try dump that
<Papierkorb> Cu5tosLimen: You can always just `require` asciidoctor, require will only load something that's not already loaded
<Cu5tosLimen> Papierkorb, it is doing that though - but I'm not sure why it has no effect
<Cu5tosLimen> I think the error is probbably some levels deeper than this though
pdcawley has joined #ruby
<apeiros> Cu5tosLimen: sounds like something swallows a LoadError
<apeiros> look out for code like `rescue Exception` and `rescue LoadError`
<Cu5tosLimen> apeiros, ok
<Papierkorb> Cu5tosLimen: You can also try to rescue Exception yourself, log it, and then reraise the error to make it 'transparent' to other logic.
<Papierkorb> or rescue LoadError, same effect in this case
funburn has quit [Quit: funburn]
pastorinni has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
vee__ has quit [Ping timeout: 264 seconds]
aScottishBoat has joined #ruby
Strepsils has joined #ruby
Strepsils has quit [Client Quit]
elisaado has joined #ruby
Rapture has joined #ruby
sepp2k has quit [Quit: Leaving.]
pdcawley has quit [Quit: pdcawley]
<elisaado> Is there a way I can listen for telegram updates but also listen for http things?
vee__ has joined #ruby
<apeiros> yes
funburn has joined #ruby
safetypin has joined #ruby
lucz has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
hs366 has quit [Quit: Leaving]
dinfuehr has joined #ruby
xco has quit [Quit: xco]
uZiel has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
lucz has quit [Ping timeout: 240 seconds]
Psybur_ has joined #ruby
DLSteve_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Psybur has quit [Ping timeout: 264 seconds]
Psybur_ is now known as Psybur
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
dinfuehr has quit [Ping timeout: 256 seconds]
funburn has quit [Quit: funburn]
skweek has joined #ruby
vichib has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
polishdub has joined #ruby
pdcawley has joined #ruby
chocoelho has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
uZiel has joined #ruby
Lyubo1 has quit [Ping timeout: 272 seconds]
Lyubo1 has joined #ruby
Kristjan has joined #ruby
<Cu5tosLimen> so I have a class here: Asciidoctor::Extensions.instance_variable_get('@groups').values[0].class => Proc
<Cu5tosLimen> but I have no idea where it is defined
Kristjan has quit [Killed (Sigyn (Spam is off topic on freenode.))]
milardovich has joined #ruby
<Cu5tosLimen> ah nvm
jnollette has quit [Ping timeout: 248 seconds]
jnollette has joined #ruby
lucz has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
cschneid_ has joined #ruby
oleo has joined #ruby
cschneid_ has quit [Ping timeout: 256 seconds]
JaccoP has joined #ruby
sameerynho has joined #ruby
polishdub has left #ruby [#ruby]
lucz has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 248 seconds]
cdg_ has quit [Remote host closed the connection]
lucz has joined #ruby
conta has quit [Quit: conta]
d10n-work has joined #ruby
Lyubo1 has quit [Ping timeout: 264 seconds]
uZiel has joined #ruby
Lyubo1 has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
cdg has joined #ruby
apeiros has joined #ruby
jdawgaz has quit [Client Quit]
cdg has quit [Read error: Connection reset by peer]
chocoelho has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
cdg has joined #ruby
synthroid has quit [Remote host closed the connection]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
lucz has quit [Ping timeout: 256 seconds]
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
uZiel has quit [Remote host closed the connection]
Riddell has quit [Ping timeout: 256 seconds]
quobo has joined #ruby
aintno_sunshine has joined #ruby
Riddell has joined #ruby
Lyubo1 has quit [Ping timeout: 240 seconds]
cschneid_ has joined #ruby
troys has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
Lyubo1 has joined #ruby
Burgestrand has quit [Quit: Closing time!]
dviola has joined #ruby
TomyWork has quit [Remote host closed the connection]
nahra has quit [Ping timeout: 240 seconds]
sagax has quit [Quit: Konversation terminated!]
nogic has joined #ruby
truenito has quit [Remote host closed the connection]
earwig_ has joined #ruby
<earwig_> Anyone here know about Net::HTTP and /etc/hosts?
earwig_ has quit [Client Quit]
<elisaado> apeiros: Can you give me a hint? :D
<apeiros> elisaado: :D yes
despai has joined #ruby
<elisaado> tell meeee
<apeiros> but seriously - what are we talking about. at what level is your problem?
polishdub has joined #ruby
<elisaado> Well
<elisaado> Quite high level
<apeiros> I mean http & telegram are both tcp based, so all you need is different ports
<elisaado> apeiros: I mean
<elisaado> like
<elisaado> Two threads running at the same time
<elisaado> Both loops
<elisaado> One sinatra
<elisaado> and the other is going to be telegram-ruby-bot
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> and where does your problem start?
andikr has quit [Remote host closed the connection]
Beams has quit [Quit: .]
<elisaado> apeiros: The blueprint of the app
<elisaado> What can I use to run those two loops at the same time
<apeiros> elisaado: let's start at the bottom - why do the two need to run in the same process?
<elisaado> They need to use the same variable
<apeiros> why?
<elisaado> Uhm
mtkd has quit [Ping timeout: 265 seconds]
<elisaado> I don't want to write a lot of times to my filesystem >:(
<apeiros> I mean there are other ways to share data than shared memory
huyderman has quit [Read error: Connection reset by peer]
<apeiros> ok, so: "simplicity"
<apeiros> how do you run your sinatra? because usually sinatra apps aren't written by writing a loop yourself…
tsglove has quit [Remote host closed the connection]
tsglove has joined #ruby
mtkd has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
jamesaxl has joined #ruby
cagomez has quit [Client Quit]
RougeT430 has joined #ruby
uZiel has joined #ruby
synthroid has joined #ruby
TomyLobo has joined #ruby
amatas_ has joined #ruby
Beams has joined #ruby
houhoulis has joined #ruby
steph_ has joined #ruby
rhebz916 has quit [Quit: Leaving]
ninjalurking has joined #ruby
lurkingninja has quit [Ping timeout: 248 seconds]
jdawgaz has joined #ruby
cagomez has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
cagomez has quit [Remote host closed the connection]
amatas_ has quit [Quit: amatas_]
clemens3 has joined #ruby
chocoelho has joined #ruby
cdg has joined #ruby
br0d1n has joined #ruby
lele has quit [Ping timeout: 255 seconds]
lele has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
JaccoP has quit [Ping timeout: 240 seconds]
cdg has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
<elisaado> No but
<elisaado> Sinatra does that
<elisaado> as in
<elisaado> be a loop, right?
<apeiros> yes and no. hence my question.
JaccoP has joined #ruby
<apeiros> see, if you use e.g. puma to run your sinatra app, you will have multiple processes
bmurt has joined #ruby
<apeiros> or if you use one of the many other methods which use multiple processes
<apeiros> so no shared variable for you in those cases.
cdg_ has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
conta1 has joined #ruby
tomphp has joined #ruby
vee__ has quit [Ping timeout: 240 seconds]
steph_ has quit [Remote host closed the connection]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
Beams has quit [Quit: .]
jnollette has quit [Ping timeout: 248 seconds]
uZiel has quit [Ping timeout: 248 seconds]
_aeris_ has quit [Ping timeout: 248 seconds]
webguynow has quit [Ping timeout: 246 seconds]
qba73 has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
qba73 has joined #ruby
kapil___ has joined #ruby
orbyt_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
cagomez has quit [Ping timeout: 260 seconds]
steph_ has joined #ruby
despai has quit [Quit: ...]
slester_ has joined #ruby
webguynow has joined #ruby
slester_ has quit [Client Quit]
FastJack has joined #ruby
_aeris_ has joined #ruby
jnollette has joined #ruby
bmurt has joined #ruby
cschneid_ has joined #ruby
exhiled has joined #ruby
vee__ has joined #ruby
mim1k has joined #ruby
aintno_sunshine has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby
Serpent7776 has quit [Quit: Leaving]
cagomez has joined #ruby
steph_ has quit [Remote host closed the connection]
FrostCandy has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 265 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
steph_ has joined #ruby
troys is now known as troys_
<FrostCandy> Why doesn't this work? A = {:type=>:account, :myarray=>[{"thing":"1", "thing2":"2" }] }
<FrostCandy> Shouldn't I be able to store json info in a hash like that?
RougeT430 has quit [Ping timeout: 240 seconds]
qba73 has quit []
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
marxarelli|afk is now known as marxarelli
<al2o3-cr> >> require 'json'; {:type=>:account, :myarray=>[{"thing":"1", "thing2":"2" }.to_json] }
<apeiros> FrostCandy: it does work
<ruby[bot]> al2o3-cr: # => {:type=>:account, :myarray=>["{\"thing\":\"1\",\"thing2\":\"2\"}"]} (https://eval.in/919939)
<apeiros> so what's your question?
jdawgaz has joined #ruby
<al2o3-cr> maybe i'm just guesses there.
<apeiros> also that's just an ordinary hash/array/otherstuff, no json
jdawgaz has quit [Client Quit]
<apeiros> json in ruby is a string, since json is a *serialized* format
uZiel has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
polishdub has quit [Remote host closed the connection]
ledestin has joined #ruby
jdawgaz has joined #ruby
JaccoP has quit [Quit: Cya guys]
<kapil___> How I get variable values of yield based function when calling? Sorry asked twice
AJA4351 has joined #ruby
aufi has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
AJA4350 has quit [Ping timeout: 248 seconds]
AJA4351 is now known as AJA4350
<apeiros> kapil___: not sure what you're asking for. basic yield methods work like this: def foo; yield your_variable; end; … foo { |value_of_your_variable_here| … }
polishdub has joined #ruby
funburn has joined #ruby
Technodrome has joined #ruby
<FrostCandy> well i kept getting errors saying unexpected, and : expected keyword end. But ya turning to to_json worked
slester_ has joined #ruby
steph_ has quit [Remote host closed the connection]
pikislabis has joined #ruby
kies has quit [Ping timeout: 256 seconds]
jerryskye has joined #ruby
brent__ has joined #ruby
troys_ is now known as troys
uZiel has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
cagomez has joined #ruby
pikislabis has quit [Quit: pikislabis]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pikislabis has joined #ruby
steph_ has joined #ruby
cagomez has quit [Ping timeout: 265 seconds]
uZiel has joined #ruby
guille-moe has quit [Ping timeout: 264 seconds]
deadnull has joined #ruby
pikislabis has quit [Quit: pikislabis]
cagomez has joined #ruby
vee__ has quit [Ping timeout: 265 seconds]
br0d1n has quit [Quit: Leaving]
sspreitz has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
jxv has joined #ruby
sspreitz has joined #ruby
pikislabis has joined #ruby
uZiel has quit [Remote host closed the connection]
SeepingN has joined #ruby
dcluna has quit [Ping timeout: 255 seconds]
vee__ has joined #ruby
funburn has quit [Ping timeout: 256 seconds]
dcluna has joined #ruby
uZiel has joined #ruby
bradleyprice has quit [Remote host closed the connection]
uZiel has quit [Remote host closed the connection]
funburn has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vee__ has quit [Ping timeout: 248 seconds]
uZiel has joined #ruby
krawchyk has joined #ruby
nopolitica has quit [Ping timeout: 264 seconds]
alex`` has quit [Ping timeout: 265 seconds]
Puppet_ has joined #ruby
mson has joined #ruby
conta1 has quit [Quit: conta1]
mikecmpbll has joined #ruby
Technodrome has joined #ruby
pb122 has joined #ruby
Riddell has quit [Ping timeout: 256 seconds]
Riddell has joined #ruby
gregf_ has quit [Ping timeout: 260 seconds]
pikislabis has quit [Quit: pikislabis]
mson has left #ruby [#ruby]
mikecmpbll has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: zzz…]
jxv has joined #ruby
alfiemax has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
jxv has quit [Client Quit]
Mon_Ouie has joined #ruby
steph_ has quit [Remote host closed the connection]
pikislabis has joined #ruby
mikkelsen has joined #ruby
vee__ has joined #ruby
aScottishBoat has quit [Ping timeout: 248 seconds]
tvw has quit [Remote host closed the connection]
kies has joined #ruby
nopolitica has joined #ruby
apeiros has quit [Remote host closed the connection]
<baweaver> kapil___: you may want to take a read through the book list: https://goo.gl/wpGhoQ
<baweaver> A lot of questions you have will be answered faster by establishing a base foundation in Ruby by which to work from
guille-moe has joined #ruby
Azure has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 268 seconds]
houhoulis has quit []
jxv has joined #ruby
axsuul has joined #ruby
<mikkelsen> mvp.kablamo.org
<mikkelsen> been having fun with this :D
<mikkelsen> ooops wrong chat
<mikkelsen> feel free to check it out though
eckhardt has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
pikislabis has quit [Quit: pikislabis]
<kapil___> baweaver: thanks
kedare has quit [Quit: kedare]
alfiemax has joined #ruby
jdawgaz has joined #ruby
pikislabis has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steph_ has joined #ruby
nadir has joined #ruby
dionysus69 has joined #ruby
nopolitica has quit [Ping timeout: 255 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guille-moe has quit [Ping timeout: 248 seconds]
jaruga has quit [Quit: jaruga]
nopolitica has joined #ruby
pastorinni has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
apeiros has joined #ruby
tvw has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pikislabis has quit [Quit: pikislabis]
funburn has quit [Ping timeout: 265 seconds]
pikislabis has joined #ruby
n13z has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Ping timeout: 272 seconds]
pikislabis has quit [Client Quit]
baweaver is now known as lemur
LocaMocha has quit [Ping timeout: 240 seconds]
lemur is now known as baweaver
bradleyprice has joined #ruby
jdawgaz has joined #ruby
yqt has joined #ruby
waveprop has quit [Ping timeout: 240 seconds]
waveprop has joined #ruby
waveprop is now known as Guest21420
mikecmpbll has joined #ruby
cdg has joined #ruby
dionysus69 has joined #ruby
Dimik has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
guille-moe has joined #ruby
RickHull has quit [Quit: Page closed]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
lytol_ has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SafeCamp has joined #ruby
steph_ has quit [Remote host closed the connection]
nogic has quit [Ping timeout: 260 seconds]
slester_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
haylon has quit [Changing host]
haylon has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vichib has joined #ruby
vichib has quit [Max SendQ exceeded]
vichib has joined #ruby
kryptoz has quit [Remote host closed the connection]
lucz has joined #ruby
lucz has quit [Client Quit]
miskatonic has joined #ruby
sspreitz has quit [Quit: ZNC 1.6.2 - http://znc.in]
ur5us has joined #ruby
sspreitz has joined #ruby
milardovich has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ldnunes has quit [Quit: Leaving]
goepsilongo has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
FrostCandy has quit []
milardovich has quit [Remote host closed the connection]
tomphp has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
minimalism has quit [Quit: minimalism]
milardovich has joined #ruby
armando has quit [Quit: ZNC 1.7.x-nightly-20171128-66897057 - https://znc.in]
jamesaxl has quit [Quit: WeeChat 1.9.1]
milardovich has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Psybur has quit [Ping timeout: 240 seconds]
cagomez has quit [Remote host closed the connection]
milardovich has joined #ruby
DTZUZO has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
trolltoll has joined #ruby
mtkd has joined #ruby
armando has joined #ruby
milardovich has quit [Remote host closed the connection]
armando has quit [Client Quit]
orbyt_ has joined #ruby
armando has joined #ruby
armando has quit [Remote host closed the connection]
milardovich has joined #ruby
vichib` has joined #ruby
armando has joined #ruby
jdawgaz has joined #ruby
milardovich has quit [Remote host closed the connection]
tcopeland has quit [Quit: tcopeland]
leitz has joined #ruby
yokel has quit [Remote host closed the connection]
despai has joined #ruby
yokel has joined #ruby
alfiemax has joined #ruby
JaccoP has joined #ruby
vichib` has left #ruby ["Killed buffer"]
marxarelli is now known as marxarelli|afk
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
<leitz> Happily confused by "Design Patterns in Ruby". Is there a better term for the "ChangeMe" class than "Class that changes stuff?" https://gist.github.com/LeamHall/2eda48be9973330f776cc5edd758d05e
<lupine> you could call it Changer
alfiemax has quit [Remote host closed the connection]
milardovich has joined #ruby
<al2o3-cr> i'd call it Morphy, thats sounds like a legit name. :P
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> leitz: why do you have a class which modifies other objects? why is the modifying method not on the object itself?
slester_ has joined #ruby
milardovich has quit [Remote host closed the connection]
<leitz> apeiros, because there are a dozen or more child classes that can potentially modifiy the MyObject instance. In general, only one does. But one of a dozen. Or two.
<leitz> I'm back to the "Career" discussion.
<apeiros> you realize that that's not actually an answer? it's just a proxy to: why do those dozen classes modify another object?
<apeiros> yeah, thought so :) I remember
<apeiros> but why is it: Career#modify(character) instead of Character#having(career) (better naming optional)
<leitz> Ah, so "Class" seems to be a good thing to get better at, and inheritance on the Career bit seems to make it better as a class.
<leitz> The current iteration is more like "Character#having(career)". Trying to figure out how to grow it better.
troys is now known as troys_
<craysiii> So i'm trying to integrate typheous into a gem of mine, and im on windows. when i run "gem install typheous" it installs just fine, but when i add it to my gemspec and run "bundle install" bundler says it could not find a compatible version. what am i missing here?
<apeiros> in OO, classes are usually nouns. and you have IMO properly identified the nouns to be "Career" and "Character". now the remaining thing is the operation. and mutating operations in OO usually belong to the object being mutated. try to mutate self, not an arg.
<apeiros> craysiii: what's the precise error/message you get?
nofxx has joined #ruby
Guest21420 has quit [Ping timeout: 272 seconds]
nofxx_ has quit [Read error: Connection reset by peer]
<leitz> apeiros, the issue with the object owning its own mutator is the need to swap out careers.
<apeiros> I don't follow
<leitz> Though I will admit this is right at, and just a little past, my understanding.
waveprop has joined #ruby
<apeiros> care to elaborate on what the issue is with that?
selim has quit [Ping timeout: 264 seconds]
waveprop is now known as Guest27163
<leitz> An instance of Character class stores data and has a few methods to present formatted data.
<apeiros> as in: bonuses from one career might vanish once another career is applied?
nymous has joined #ruby
<nymous> hey folks
<leitz> A Character "goes through" a Career, but does not "have a" career as a tangible thing. The Career modifies the character, and mutltiple careers accumulate modifications.
<apeiros> leitz: ok. makes me see even less problems :)
<nymous> i have a rather strange question about modules and instance_eval
<leitz> Conversely, a newly created Character may get sent through one of dozens of careers.
<apeiros> leitz: seems to me like the character should ask the career how the modifications look and apply them
<nymous> i wrote a DSL, most classes do use instance_eval for processing
selim has joined #ruby
<nymous> to run it smoothly i allow user to write inside my module's namespace
<apeiros> and one or hundred careers doesn't matter to a computer. it's just: careers.each do |career| character.learn(career) end # again, naming?!?
milardovich has joined #ruby
<leitz> apeiros, the Career has multiple methods and data sets, would that still work?
<nymous> but then i add a function in my script, nested classes doesn't see it, unless i strictly set prefix to my namespace
<apeiros> leitz: why not
<apeiros> leitz: after all, the number of properties on a character is finite
<leitz> apeiros, dunno. I'm still learning.
<apeiros> leitz: as said, the character can still ask the career as to how the modifications should look. but should apply it itself.
<nymous> maybe there is a simple solution for this?
<apeiros> and the career can now about the character modified, using it in its calculations as to how the final values should look
xco has joined #ruby
<nymous> setting prefix is kind of weird
<apeiros> ?code nymous
<ruby[bot]> nymous: We can't help you without your code, please post it to https://gist.github.com
<al2o3-cr> nymous: probably need to gist an example of this strange behaviour you're experiencing
<nymous> well
<apeiros> leitz: that's still the career mutating the character
<al2o3-cr> i always forget bot comms
<apeiros> al2o3-cr: they're all on the website for your convenience ;-)
<al2o3-cr> aye, should visit it more often :)
uZiel has quit [Remote host closed the connection]
<nymous> here's my code https://github.com/divanikus/salus
<leitz> apeiros, yup. So, back to your statement of xx:26 character.learn(career). How would "learn" activate different methods in career? When called that way how does the career reach up to the Character and modify it?
<apeiros> career wouldn't
<apeiros> character would ask "what would you modify on me?" and then apply the changes.
<nymous> ERROR -- : undefined local variable or method `get_devs' for #<Salus::Group:0x00000002141980> (NameError)
* leitz sits down with his whiteboard.
<apeiros> e.g. for numerical stats: career = Careers::Adventurer.new(self); career.stats_modifications # => {health: -10, health: 20, …}
<apeiros> so e.g.: character.learn(Careers::Adventurer), with: def learn(career_class); career = career_class.new(self); career.stats_modifications.each do |stat, change| @stats[stat] += change end; …
<leitz> apeiros, so the Character would get passes the Career object?
Azure has joined #ruby
<al2o3-cr> i've never seen so much evalualtioning
uZiel has joined #ruby
<al2o3-cr> or whatever you call it
ramfjord has quit [Ping timeout: 264 seconds]
<apeiros> depends, either the class, or if careers vary among the same career type, then an instance. latter is a bit more annoying as it makes it more difficult to keep the class/instance pattern (since you now have 3 levels instead of 2 as in normal class/instance)
ramfjord has joined #ruby
<apeiros> nymous: that error is from your test.rb? which line?
<leitz> Okay, lemme code for a bit and see if I get it.
roshanavand has joined #ruby
<nymous> apeiros: 21
<apeiros> nymous: where is group defined?
<nymous> test.rb is a script which should be run by salus cli from this gem
<nymous> yes
nogic has joined #ruby
<apeiros> how is test.rb evaluated? because it seems to be in the context of a Salus::Group
<apeiros> ah well, wait
<apeiros> lets cut the chase
<apeiros> do:
<apeiros> module Kernel; module_function def get_devs; …; end; end
<apeiros> also that `devs =` is somewhat pointless IMO :)
<apeiros> I mean it's not like you use that variable
<havenwood> if you assign a variable on the last line of a method, stop that!
cagomez has joined #ruby
despai has quit [Quit: ...]
<nymous> apeiros: i know about the devs = , but it's not the problem now
<apeiros> ah yeah, well, toplevel methods are not global methods.
<apeiros> yeah, your problem is ^, and the solution is ^2
pastorinni has joined #ruby
<apeiros> or ^3?
<nymous> one level up i guess
<apeiros> yeah, ^ is "message above" and ^2 "two (relevant) messages above". question is: which do you count as relevant messages :)
<nymous> i can just say Salus.get_devs
<nymous> but that looks ugly to me, and also i guess for a end user
<apeiros> I don't think that'd work with your current code, no
<nymous> well, it works
<nymous> i mean Salus.get_devs
<apeiros> ah, right, instance_eval, not class_eval
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nymous> i can also move the def inside group
<nymous> but it won't be shared with discover code
<apeiros> you could use class_eval instead of instance_eval
<apeiros> but I'm not sure you really should run your stuff that way.
<nymous> i need eval it on instance, because of runtime things
<apeiros> I don't really get the rationale, but the scope which `def` uses with instance_eval is the singleton_class scope.
mim1k has joined #ruby
eckhardt has joined #ruby
<nymous> my thing forms a kind of tree structure with nested groups with metrics as leaves
gil_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
<apeiros> don't use `def` then
<apeiros> do something like rspec: let :get_devs do … end
<apeiros> and: class Salus::Group; def let(name, &definition); singleton_class.define_method(name, &definition); end; end
<nymous> hmm, that make sense, even though it makes things a little bit more complicated
<nymous> well, it would be called not inside Salus::Group, but module Salus itself
nofxx_ has joined #ruby
<apeiros> wait
<apeiros> something's amiss here
steph_ has joined #ruby
nofxx has quit [Ping timeout: 265 seconds]
<apeiros> oh, I see, Group uses yet a different eval for its instance
<apeiros> well, you created yourself a scope hell there.
<nymous> yes
bhaak has quit [Ping timeout: 276 seconds]
<leitz> Though I have to figure out how different sections of the career would work.
<nymous> really? it's just a DSL like in the tutorials)
mim1k has quit [Ping timeout: 264 seconds]
<apeiros> leitz: IMO still the wrong way round. but maybe I'm riding a purist horse for no good reason ;-)
<apeiros> nymous: did you see arbitrary def's being used in those tutorials?
<nymous> ah, no
<leitz> apeiros, I thought that was your code. Well, as I understood it.
<apeiros> nymous: point is, a method belongs to a class. and you're wildly changing scopes but expect the method to exist
<nymous> maybe i'll move to cleanroom sometime later
<apeiros> nymous: variant a: use something like what I showed. variant b: use a lambda
<apeiros> nymous: like: get_devs = ->() { … }; get_devs.().each do…
<apeiros> note the . before ()
<nymous> strange enough, CONSTANTS works great for nested scopes
<apeiros> you understand how lookup for method works versus how lookup for constants work?
alfiemax has joined #ruby
<apeiros> their scoping rules are quite different
<nymous> seems like not really, because i though they should be just symbols inside a scope
<al2o3-cr> nymous: you should of been a week ago.
<al2o3-cr> *here
<apeiros> leitz: ah. some of what I gave you earlier?
<apeiros> leitz: I try not to deviate too much from original code
<nymous> al2o3-cr: a month, maybe, yes
synthroid has quit []
<al2o3-cr> probably i don't keep track of time to good :P
<nymous> apeiros: i can extend my var syntax or use lambdas, i just want to make my dsl less confusing
<apeiros> leitz: i.e. I don't necessarily/always show you immediately how I would model something. sometimes because I don't (yet) have a full understanding of the problem domain, sometimes because too much change makes it difficult for the other person to embed it into their knowledge framework
<leitz> apeiros, trust me, I get the "embed" issue. I have to think through these things a lot.
<al2o3-cr> apeiros: absolutley true that
<leitz> One of these days I'm going to figure out how to find a Ruby mentor that can survive looking at my code and offereing advice.
alfiemax has quit [Ping timeout: 256 seconds]
<leitz> Would it help if I wrote up the projected use cases and (il)logic?
mikkelsen has quit [Quit: mikkelsen]
aScottishBoat has joined #ruby
<leitz> And is 2.5 going to be released Christmas Day or sooner?
exhiled has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 272 seconds]
<apeiros> leitz: re mentor - I think people here try, no?
<apeiros> or you mean as in a more stable/continuous fashion?
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> apeiros, I can't afford to pay what the folks here have done to help.
mikecmpbll has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<apeiros> oh sure you can. one day somebody else will need help ;-)
<leitz> A mentor is more a continous thing: "Your next step is to learn X. Show me your progress next week."
<apeiros> or maybe you already did
<leitz> I try. In my limited newbie fashion. :)
<apeiros> ok, I see. I'd love to do that, but I don't see myself having the time for it :(
ramfjord has joined #ruby
<apeiros> or rather: if I took the time to do that, I'd feel even more guilt for all the stuff I'm not doing right now :o)
<leitz> Understood. It's not everyone's shot of whiskey.
alfiemax has joined #ruby
<leitz> hehe..
<al2o3-cr> make that a rum :)
<leitz> Oddly, we gave away our TV a few years ago. Found a lot of time shortly there after.
jenrzzz has joined #ruby
cagomez has quit [Remote host closed the connection]
<leitz> The Career <=> Character thing has melted my brain for years.
d10n-work has quit [Quit: Connection closed for inactivity]
<al2o3-cr> leitz: you got new one now tho?
<leitz> And at least three languages.
nahra has joined #ruby
<leitz> al203-cr, nope.
nofxx_ has quit [Read error: Connection reset by peer]
nofxx has joined #ruby
* al2o3-cr al2o3-cr freaks out
<leitz> Not much on then, either. That was about 15-20 years ago.
<leitz> I think. Chronologically challenged.
<ljarvis> not having a tv = winning
nofxx has quit [Remote host closed the connection]
<leitz> ljarvis, not paying for cable means more money for technical books!
<ljarvis> leitz: nice :)
<nymous> i have a tv, i do play my PS4 on it
nofxx has joined #ruby
<nymous> and Steam games too
chocoelho has quit [Quit: chocoelho]
<ljarvis> i have a tv but no cable, and i seldom use it
<leitz> Last electronic game I played was Neverwinter Nights. Only because they gave you the tools to build your own worlds.
<nymous> not having a TV doesn't sound beneficial to me
<leitz> Had to build a computer able to handle it.
<leitz> nymous, you can get news from the web, and more interaction on IRC.
lytol_ has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 265 seconds]
<nymous> i'm not about the cable, but a large screen to show things
exhiled has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> leitz: re career <=> character - think about responsibilities
<leitz> I'll be blunt; the average American watches life go by on a screen. They know more about Sheldon than their neighbors.
<apeiros> career's responsibility is to know how a character would change. character's responsibility is to change :)
<leitz> career actively changes; character gets changed.
<apeiros> sheldon usually is more interesting than your neighbor
<ljarvis> ^
<nymous> now i'm stuck searching how let from rspec is implemented
<apeiros> leitz: ^ IMO not
<apeiros> nymous: uh, don't
<apeiros> it doesn't necessarily apply
<apeiros> I gave you an implementation
<apeiros> you can pass the defining block around and define a method at the right place
<apeiros> or even invoke it upon method_missing
<leitz> apeiros, at the reduced "thing" level a Character could almost be a hash and a Career a set of methods.
<nymous> i'm doubt about the inheritance
<apeiros> leitz: yeah and I'm trying to tell you that you got it wrong :)
<leitz> Which was an early implementation.
nahra has quit [Remote host closed the connection]
<nymous> i mean scoping
<leitz> Understood on "wrong", just trying to comprehend.
krawchyk has quit [Quit: krawchyk]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
ramfjord has quit [Ping timeout: 256 seconds]
<zenspider> nymous: heh. good luck with that.
<zenspider> minitest has a clean and easy to find version of let in minitest/spec.rb
brent__ has quit [Quit: Connection closed for inactivity]
nahra has joined #ruby
<leitz> apeiros, though it could be much better; Careers do modify the character. https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/career.rb
<leitz> The career subclasses just add arrays for options and the occasional method specific to that career.
<apeiros> leitz: yes, I understand that *in your code* they do
<apeiros> leitz: but I try to get you to understand that IMO they should only *inform* character on how a career would modify the character. and that the character then applies that modification.
mikecmpb_ has joined #ruby
ramfjord has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
* apeiros off to his own devices now, though
* leitz is pondering.
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
bkxd has joined #ruby
ramfjord has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Quit: WeeChat 2.0]
ramfjord has joined #ruby
mikecmpb_ has quit [Read error: Connection reset by peer]
John____ has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
reber has quit [Remote host closed the connection]
<nymous> zenspider: yeah, it looks easier to understand
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
<nymous> my first quick and dirty solution is to extend var syntax to accept blocks as lazy eval vars and make a proxy functions inside Group
<zenspider> it doesn't LOOK easier to understand. It IS easier to understand.
vtx has joined #ruby
<zenspider> I don't know what that means
ramfjord has quit [Ping timeout: 260 seconds]
<vtx> hi guys, is there a way to find out how many unused methods i have defined in my ruby code?
ramfjord has joined #ruby
<zenspider> vtx: the debride gem can help... but because ruby is so dynamic nothing can be truly definitive... what are you trying to do?
alfiemax has joined #ruby
<vtx> um, i guess i just wanted to see if i had any unused code in my project
<zenspider> nymous: that seems overly clever and not terribly clear.
<zenspider> vtx: if you're wondering, you probably do. :P
<vtx> lol, i agree
<zenspider> vtx: debride will analyze the code and find any methods that aren't obviously called. Doesn't mean they're actually unused tho. Depends on how the code is set up, what it connects to, etc.
<baweaver> vtx: if you test things well, you can get a code coverage report but that may mean you're testing things which are never actually used
<zenspider> Object#send will guarantee incomplete analysis...
<baweaver> Tree shaking in Ruby is hard
<zenspider> it also provides a whitelist for things you know are called externally
<zenspider> nymous: I stand by my statement
mikecmpb_ has joined #ruby
<nymous> zenspider: you mean my code or proposed approach?
ramfjord has quit [Ping timeout: 256 seconds]
<zenspider> yes, probably
alfiemax has quit [Ping timeout: 256 seconds]
<zenspider> starting with: def var(*args)
<leitz> apeiros, if you meander back here, is this a path to take? "The instance of Character sends Career::Whatever two pieces of data; a number of terms and a set of stats. The Career returns a hash containing skills to be modified, cash and stuff, and optionally a Rank title."
mikecmpbll has quit [Ping timeout: 260 seconds]
<leitz> Sending the stats is because the list of skills can vary based on the stats.
ramfjord has joined #ruby
<baweaver> Too much magic and cleverness will bite you
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slester_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<leitz> baweaver, enjoying the Algorithms book.
<baweaver> Grokking?
<leitz> Yup.
<baweaver> It's good stuff
<leitz> As much as I can. It takes a bit. :)
ramfjord has quit [Ping timeout: 256 seconds]
<leitz> apeiros was just giving me some ideas on the Character <=> Career bit. I'm back to trying to understand OOP via gaming.
<leitz> With *trying* being the operative word.
milardov_ has joined #ruby
ramfjord has joined #ruby
amatas has quit [Quit: amatas]
jenrzzz has joined #ruby
<leitz> vtx, I will occasionally just "grep" for methods in my code. If it's only found in the definition then I usually clean it up and see what breaks.
<nymous> zenspider: what wrong with that?
<vtx> leitz: zenspider: baweaver: thanks everyone!
* leitz notes the newbie gets first billing. :P
milardovich has quit [Ping timeout: 265 seconds]
polishdub has quit [Quit: leaving]
shoogz has quit [Ping timeout: 268 seconds]
jdawgaz has joined #ruby
bruce_lee has quit [Remote host closed the connection]
Puffball has quit [Remote host closed the connection]
<leitz> And for my next dumb question, is there a Ruby equivalent of "py.test"? Something that just goes and runs everything in ~/tests
<baweaver> nymous: the entire DSL is too much magic. This could likely be expressed in straight Ruby a lot more simply
<baweaver> leitz: minitest
<leitz> I'ts been a rough couple of months.
John____ has quit [Ping timeout: 256 seconds]
mlkkk has joined #ruby
ogres has joined #ruby
Ltem has quit [Quit: Good night]
<baweaver> namely with case statements for fallthrough
<nymous> baweaver: i need magic, i'm tired of writing and maintaining things like this https://github.com/scoopex/zabbix-agent-extensions/blob/master/extension-files/tools/zabbix_check_dmesg over and over again
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
conta2 has joined #ruby
<baweaver> you really don't need the magic.
<zenspider> "need"
<baweaver> and you also don't have to write things like that either
<leitz> minitest requrires setup. I've got the unittests, just need to run them. Back to a test suite.
<zenspider> nymous: what's right about it? var... var is a good name. def... needed. but the rest?
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
yqt has quit [Ping timeout: 264 seconds]
<zenspider> all code requires setup. All code requires running it. That's kinda the whole point of this mess.
<nymous> baweaver: do you want me to show you my script in perl for monitoring stuff?
conta2 has quit [Client Quit]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
<nymous> i don't have to do many things, i can resign from my job and become a part time construction worker, i guess
steph_ has quit [Remote host closed the connection]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
<leitz> zenspider, py.test just looks in ~/test and runs what's there. No real setup.
<al2o3-cr> do it, bob the builder is easier :P
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
<leitz> So you can run one test manually or just run the entire suite.
despai has joined #ruby
<al2o3-cr> just don't drill into the gas mains
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
steph_ has joined #ruby
<nymous> have recently re-watched the Office Space
<zenspider> leitz: wrong. you need to setup python and py.test.
shoogz has joined #ruby
<zenspider> *everything* on a computer has setup. period.
despai has quit [Client Quit]
despai has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<leitz> Not really. I install it. I run it. It works. If I want to change the setup then I do so, otherwise I take the defaults.
<leitz> With py.test, I run it. It works. No configuration necessary.
steph__ has joined #ruby
JaccoP has quit [Quit: Cya guys]
<jhass> not sure I'd call `require "minitest/autorun"` that much setup
<zenspider> woosh. again. that IS setup. if you can't see that, then I don't see the point of this discussion in the slightest
steph_ has quit [Ping timeout: 265 seconds]
<zenspider> jhass: eh. you need ruby. you need minitest (which does ship with ruby, fwiw)... you need a test file (ish)... the right code structure...
<zenspider> but that's entirely true for py.test too... *shrug*
<jhass> sorry should have said that much more setup than what you need for py.test
safetypin has quit [Ping timeout: 248 seconds]
<zenspider> obtuse is obtuse. I can't do much about that.
bkxd has quit [Ping timeout: 264 seconds]
<leitz> jhass, where does that require go? I have the unittests, just trying to figure out how to call every test file without having to track each one in a test suite.
<jhass> at the top of each file
<jhass> then run a file with ruby thefile.rb or all of them with a simple for loop or whatever
<zenspider> or rake task
iszak has quit [Ping timeout: 264 seconds]
iszak has joined #ruby
iszak has quit [Changing host]
iszak has joined #ruby
<leitz> Ah-HA! zenspider, that's what I was looking for. I thought I had done something like this already.
<leitz> Thanks for the reminder!
bkxd has joined #ruby
<leitz> Since I'm not using rake for much else there's a default task to run the tests.
<nymous> what's the benefit of using minitest instead of rspec?
<jhass> pure preference
<leitz> nymous, I use unittest, too. jhass is right, though. I'd say mostly preference.
<baweaver> less magic
<baweaver> all plain Ruby
faces has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
tcopeland has joined #ruby
ramfjord has joined #ruby
<nymous> baweaver: you forgot about the renderer part and also more complex metrics like counters or derives
<nymous> and i didn't even tried to implement histograms
mlkkk has quit []
<al2o3-cr> baby steps
<baweaver> Y'know I could be incredibly snarky here
<baweaver> Point being, you don't need all that magic and it's going to bite you later
bradleyprice has joined #ruby
<leitz> Is there an easy fix for the duplicated "roll_2" method? The outer one gets called elsewhere but the Struct seems to want its own. https://github.com/LeamHall/CT_Character_Generator/blob/c_tools_issue_51/lib/character_tools.rb#L21-L39
<nymous> i'm ok with that, or i should be a python fan
ramfjord has quit [Ping timeout: 265 seconds]
<nymous> i hate python for being to straightforward
<nymous> *too
<leitz> I like not having 27 layers of "end".
<leitz> Just not as fun a language though. Not sure why.
ramfjord has joined #ruby
<nymous> because it forbids you to make magic
<baweaver> You use that word a lot, I do not think it means what you think it means
pilne has joined #ruby
<leitz> hehe...
<nymous> and as "language for learning how to program" it makes too much assumptions on it's side which you most likely can't avoid
<leitz> Prepare to die!
<baweaver> inconceivable
troys_ is now known as troys
<leitz> "I'm left handed too."
<nymous> baweaver: my english skills are too imperfect, so i can't argue with you in full
cagomez has joined #ruby
<baweaver> Anyways, I know quite a few Python programmers who would be highly amused by that assertion
<leitz> nymous, we have been quoting, or mis-quoting in my case, from "The Princess Bride".
<baweaver> Yep, just asked Python, they're amused and say there's a lot of magic in Python
<leitz> nymous, while your English isn't perfect it is a thousand times better than my Russian.
ramfjord has quit [Ping timeout: 272 seconds]
<baweaver> Anyways, you have a fixation on using magic. That's dangerous
<baweaver> It leads you to try and be clever where simple solutions would do the same
<baweaver> and nothing is more dangerous than clever code which you don't truly understand
<nymous> i have i guess 20+ years of programming (including pre-school and basic lol), and my first taste of python is that it makes me think dumb to do dumb things
ramfjord has joined #ruby
<nymous> even C is much more flexible to me
<baweaver> Yeah, definitely don't mention that on #python
<leitz> nymous, think of coding like talking to someone not from that language. Simple and powerful.
<nymous> i won't, because i won't go to #python
<nymous> just avoiding things i hate
<nymous> sound clever enough to me
<nymous> leitz: i hated pascal, python is a new pascal
<baweaver> Well that's enough for me then
<nymous> so nothing is changed on that point
<leitz> baweaver, you bouncing out?
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> I'm still on, but getting back to other things
pastorin_ has joined #ruby
<nymous> i don't want to offend anyone, language choice is a matter of taste
<leitz> Ah, enjoy. I'm still looking for thoughts on that duplicated roll_2 issue.
<nymous> you don't have to know and use all them, right?
<baweaver> pro tip, you can use kwargs in blocks
<nymous> i don't like python and avoiding it, that's all
mostlybadfly has quit [Quit: Connection closed for inactivity]
pastorinni has quit [Ping timeout: 240 seconds]
* leitz goes to get the book to read up on kwargs.
<nymous> it's python's thing
alex`` has quit [Ping timeout: 265 seconds]
<zenspider> <leitz> "I like not having 27 layers of 'end'". ... obvious response: don't design 27 layers. that's shit code in any language.
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver> zenspider: wanna see something fun?
<baweaver> >> [{name:"cpu.usage",value:12.528473606797895,timestamp:1510700076.4455612,ttl:60}].map { |name: 'default', value: 0, timestamp: 0, ttl: 300| [name, value, timestamp, ttl] }
<ruby[bot]> baweaver: # => [["cpu.usage", 12.528473606797895, 1510700076.4455612, 60]] (https://eval.in/920051)
herbmillerjr has joined #ruby
<baweaver> kwargs work in block args :D
<baweaver> with defaults too
kapil___ has quit [Quit: Connection closed for inactivity]
<zenspider> yup. :/
<baweaver> >> [{name:"cpu.usage",ttl:60}].map { |name: 'default', value: 0, timestamp: 0, ttl: 300| [name, value, timestamp, ttl] }
<ruby[bot]> baweaver: # => [["cpu.usage", 0, 0, 60]] (https://eval.in/920052)
<zenspider> "fun"
jdawgaz has joined #ruby
<baweaver> It's nice when dealing with JSON
<baweaver> Oh come now, you know whenever I say "fun" it's loaded
<zenspider> haha
<baweaver> Like Hash#to_proc fun that I hacked together once
phate408 has joined #ruby
<baweaver> See the black magic fun section
steph__ has quit [Remote host closed the connection]
<baweaver> zenspider: https://eval.in/920054 :D
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
<baweaver> super fun
steph_ has joined #ruby
aScottishBoat has quit [Quit: aScottishBoat]
mim1k has joined #ruby
Emmanuel_Chanel has joined #ruby
steph_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
cdg has joined #ruby
tvw has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 256 seconds]
nopolitica has quit [Ping timeout: 256 seconds]
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
pastorin_ has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
pastorinni has joined #ruby
moei has quit [Quit: Leaving...]
ltp has quit [Ping timeout: 248 seconds]
TomyLobo has quit [Ping timeout: 255 seconds]
despai has quit [Quit: ...]
alfiemax has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 265 seconds]
troys is now known as troys_
amatas has joined #ruby
priodev has quit [Ping timeout: 268 seconds]
priodev has joined #ruby
<nymous> i got your point about *args btw, it was from function like somethg(name, *args, &block), the function later disappeared, and the code was just copy-pasted to different places
<nymous> yeah, i can safely change it to just args
pastorinni has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
<al2o3-cr> at least it's not ...