havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.3 & 2.2.6 (2.4.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
cdg has joined #ruby
n008f4g_ has quit [Ping timeout: 256 seconds]
ecnalyr has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
cschneid_ has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
ecnalyr has joined #ruby
symm- has quit [Quit: Leaving...]
symm- has joined #ruby
Azure has quit [Remote host closed the connection]
shayan__ has joined #ruby
nogic has quit [Ping timeout: 268 seconds]
enilsen16 has quit [Quit: enilsen16]
shayan has quit [Ping timeout: 240 seconds]
shayan__ is now known as shayan
maattdd has quit [Ping timeout: 245 seconds]
BTRE has quit [Quit: Leaving]
ascarter has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
BTRE has joined #ruby
araujo has quit [Read error: Connection timed out]
<shadeslayer> is there a way to use http://www.rubydoc.info/stdlib/minitest/Object%3Astub to return a different value for each stub that's encountered?
symm- has quit [Quit: Leaving...]
agent_white has quit [Quit: back in a bit]
ecnalyr has quit [Read error: Connection reset by peer]
araujo has joined #ruby
charliesome has joined #ruby
<zenspider> shadeslayer: the value it returns can take a callable
DTZUZU has joined #ruby
<shadeslayer> zenspider: right but I'm not sure how to return 2 different values from a single proc object
workmad3 has quit [Ping timeout: 240 seconds]
<zenspider> data = [values]
<dminuoso> shadeslayer: Pair = Struct.new(:left, :right); return Pair.new(1, 2)
<zenspider> proc = lambda { data.shift }
enilsen16 has joined #ruby
<shadeslayer> zenspider: fair enough :)
Azure has joined #ruby
ecnalyr has joined #ruby
agent_white has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
Sh4D0wD_ has quit [Quit: Connection closed for inactivity]
dvinciguerra has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
hotpanca_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
hotpancakes has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
chopin has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
Anonymoose2 has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
frozengeek has quit [Quit: frozengeek]
<dminuoso> Heh. So a partner suggested encrypted email as a secure method to transport a highly sensitive key. I told him to generate the key on the server directly to ensure perfect forward secrecy and he called me a nitpicker for it..
jaguarmagenta has joined #ruby
<Nilium> Should've told him to start driving to deliver it physically to the machine.
Mia has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
reverberations has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
<dminuoso> Heh. Considering that the key has the potential to cause catastrophic damage if leaked, I think perfect forward secrecy is not too much to ask for right? :-)
dvinciguerra has quit [Quit: dvinciguerra]
skweek has quit [Ping timeout: 258 seconds]
<dminuoso> Though Im not sure whether "no communication at all" exactly satisfies forward secrecy..
tdy has quit [Read error: Connection reset by peer]
eb0t has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
jhack has joined #ruby
CloCkWeRX has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
shayan has quit [Quit: shayan]
ecnalyr has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
SteenJobs has joined #ruby
jhack has quit [Quit: jhack]
enilsen16 has quit [Quit: enilsen16]
cyphase has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: minimalism]
jaguarmagenta has quit [Remote host closed the connection]
ecnalyr has joined #ruby
matp_ has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
nettoweb has joined #ruby
linduxed has joined #ruby
matp has quit [Ping timeout: 258 seconds]
nettoweb_ has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
raul782 has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
jhack has joined #ruby
raul782 has quit [Remote host closed the connection]
smlocal has quit []
dnicole has quit [Ping timeout: 258 seconds]
minimalism has joined #ruby
raul782 has joined #ruby
splud has quit [Quit: splud]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cdg has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
saneax is now known as saneax-_-|AFK
Channel6 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sneakers has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
enterprisey has joined #ruby
jooni has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: agent_white]
agent_white has joined #ruby
ecnalyr has joined #ruby
millerti has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
doublemalt_ has joined #ruby
jooni has quit [Quit: Bye]
OTORelic2 has quit [Ping timeout: 250 seconds]
ecnalyr_ has joined #ruby
raul782 has quit [Remote host closed the connection]
Gasher has quit [Quit: Page closed]
doublemalt__ has quit [Ping timeout: 250 seconds]
ecnalyr has quit [Read error: Connection reset by peer]
zoe__ has joined #ruby
zoe__ is now known as zoemeh
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
zoe__ has joined #ruby
marxarelli is now known as marxarelli|afk
zoemeh has quit [Ping timeout: 250 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chris2 has joined #ruby
blackbombay has quit [Ping timeout: 265 seconds]
blackbombay has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
linduxed has quit [Ping timeout: 250 seconds]
linduxed has joined #ruby
maattdd has joined #ruby
raul782 has joined #ruby
gbgdev has joined #ruby
harai_ has quit [Ping timeout: 245 seconds]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
jhack has quit [Quit: jhack]
hotpancakes has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
hotpanca_ has quit [Ping timeout: 258 seconds]
nadir has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
marr has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
arescorpio has joined #ruby
Snickers has quit [Quit: Snickers]
bradleyprice has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
hutch34 has joined #ruby
gbgdev has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
ecnalyr_ has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
maattdd has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
Kazlock has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
ecnalyr has joined #ruby
jtdoncas has joined #ruby
nankyokusei has joined #ruby
kuSuSE has joined #ruby
d0nn1e has quit [Ping timeout: 258 seconds]
b0mbnet has joined #ruby
d0nn1e has joined #ruby
grenierm has joined #ruby
raul782 has quit [Remote host closed the connection]
ecksit has joined #ruby
iMadper has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
Guest14755 is now known as IotaSpencer
antoniobeyah has joined #ruby
ruby-lang243 has joined #ruby
ecksit has quit [Client Quit]
ecksit has joined #ruby
<ruby-lang243> Ola
ruby-lang243 has quit [Client Quit]
b0mbnet has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
chopin has joined #ruby
optiz0r has quit [Ping timeout: 250 seconds]
ecksit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecksit has joined #ruby
ecksit has quit [Client Quit]
ecksit has joined #ruby
jtdoncas has quit [Ping timeout: 250 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
johnny56_ has quit [Ping timeout: 246 seconds]
johnny56_ has joined #ruby
greenbird has joined #ruby
greenbird has quit [Remote host closed the connection]
antoniobeyah has quit [Read error: Connection reset by peer]
antoniobeyah_ has joined #ruby
raul782 has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 245 seconds]
dnicole has joined #ruby
<mscs> My intellij is complaining when I use double quotes with no interpolation. Is that actually from some style guide?
jcao219 has joined #ruby
OTORelic2 has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
ryan_notabot has joined #ruby
gloscombe has quit [Quit: gloscombe]
dnicole has quit [Ping timeout: 258 seconds]
<sonicspin> mscs: yes - speeds the parser with single quotes.
<mscs> sonicspin: huh. because the assumption is that it has no further work to do?
<sonicspin> yep
<mscs> facinating
OTORelic2 has quit [Ping timeout: 245 seconds]
<mscs> thank you for the info!
<sonicspin> nw
hays_ has quit [Changing host]
hays_ has joined #ruby
Coldblackice has joined #ruby
hays_ is now known as hays
FerrouSX has quit [Ping timeout: 260 seconds]
nug has quit [Ping timeout: 252 seconds]
yeltzooo has quit [Ping timeout: 250 seconds]
hanmac has quit [Ping timeout: 240 seconds]
raul782 has joined #ruby
gnarld_ has joined #ruby
raul782 has quit [Remote host closed the connection]
yeltzooo has joined #ruby
raul782 has joined #ruby
KnownSyntax has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OTORelic2 has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
maattdd has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
atom3_ has quit [Ping timeout: 265 seconds]
OTORelic2 has quit [Ping timeout: 245 seconds]
Jon30 has quit [Read error: Connection reset by peer]
Asher1 has joined #ruby
Devalo has joined #ruby
Asher has quit [Ping timeout: 258 seconds]
maattdd has quit [Ping timeout: 256 seconds]
atom3 has joined #ruby
astrobunny has joined #ruby
ecnalyr has joined #ruby
Devalo has quit [Ping timeout: 248 seconds]
ruby-lang524 has joined #ruby
hanmac has joined #ruby
awc has joined #ruby
reverberations has joined #ruby
zoe__ has quit [Read error: Connection reset by peer]
zoe__ has joined #ruby
ruby-lang524 has quit [Ping timeout: 260 seconds]
awc has quit [Client Quit]
chouhoul_ has joined #ruby
Anonymoose2 has quit [Ping timeout: 252 seconds]
enilsen16 has joined #ruby
reverberations has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 245 seconds]
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
blackwind_123 has joined #ruby
charliesome has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chopin has quit [Ping timeout: 250 seconds]
sdwrage has quit [Quit: Leaving]
braincrash has quit [Quit: bye bye]
pelegreno___ has quit [Ping timeout: 250 seconds]
duderonomy has joined #ruby
kitallis has quit [Ping timeout: 250 seconds]
gnarf has quit [Ping timeout: 250 seconds]
shayan has joined #ruby
pelegreno___ has joined #ruby
hutch34 has joined #ruby
AndyBotwin has joined #ruby
kitallis has joined #ruby
atom3 has quit [Ping timeout: 258 seconds]
s2013 has joined #ruby
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
djuber has joined #ruby
gnarf has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
optiz0r has joined #ruby
atom3 has joined #ruby
hahuang62 has quit [Ping timeout: 246 seconds]
jaguarmagenta has joined #ruby
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
gnarld_ is now known as nug
djbkd has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
dnicole has joined #ruby
pwnd_nsfw` has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
ecnalyr has joined #ruby
Madplatypus has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
ascarter has joined #ruby
function has joined #ruby
banisterfiend has joined #ruby
braincrash has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching_ has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 265 seconds]
mim1k|work has quit [Ping timeout: 246 seconds]
shayan has quit [Quit: shayan]
maattdd has joined #ruby
mim1k|work has joined #ruby
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
bradleyprice has joined #ruby
brendan- has joined #ruby
nankyokusei has joined #ruby
sharms has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
jz has joined #ruby
howdoi has joined #ruby
jz is now known as Guest49226
bocaneri has joined #ruby
skweek has joined #ruby
gix has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
johnzorn has quit [Ping timeout: 250 seconds]
dnicole has quit []
roflmyeggo has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
ecnalyr has quit [Read error: Connection reset by peer]
kuSuSE has quit [Quit: Konversation terminated!]
gix has joined #ruby
ascarter has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
sharms has joined #ruby
Kazlock has joined #ruby
roflmyeggo has quit [Quit: Lost terminal]
jaguarmagenta has quit [Remote host closed the connection]
bradleyprice has joined #ruby
ecnalyr has joined #ruby
jaguarmagenta has joined #ruby
dnicole has joined #ruby
douglascorrea has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 250 seconds]
douglascorrea has joined #ruby
douglascorrea has quit [Remote host closed the connection]
douglascorrea has joined #ruby
Didac has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
arescorpio has quit [Quit: Leaving.]
ascarter has joined #ruby
reverberations has joined #ruby
reverberations has quit [Max SendQ exceeded]
reverberations has joined #ruby
reverberations has quit [Max SendQ exceeded]
hutch34 has quit [Ping timeout: 258 seconds]
aryaching_ has quit [Ping timeout: 256 seconds]
SteenJobs has quit [Quit: SteenJobs]
function has quit [Quit: /dev/null is full]
aryaching has joined #ruby
Channel6 has quit [Quit: Leaving]
montanonic has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
grenierm has quit [Quit: grenierm]
grenierm has joined #ruby
harfangk has joined #ruby
pawnbox has joined #ruby
chopin has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
sonicspin has quit [Ping timeout: 264 seconds]
ecnalyr has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enilsen16 has quit [Quit: enilsen16]
johnzorn has joined #ruby
Guest49226 has quit [Ping timeout: 248 seconds]
bturker has joined #ruby
zoe__ has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
montanonic has quit [Ping timeout: 256 seconds]
jaguarmagenta has quit [Read error: Connection reset by peer]
enterprisey has quit [Remote host closed the connection]
enilsen16 has joined #ruby
jaguarmagenta has joined #ruby
pwnd_nsfw` has joined #ruby
Lucky_ABA has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
pwnd_nsfw has quit [Ping timeout: 245 seconds]
matp_ is now known as matp
function has joined #ruby
dnicole has quit [Remote host closed the connection]
johnzorn has quit [Ping timeout: 258 seconds]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
Vandaiore has joined #ruby
<Vandaiore> hello
<Vandaiore> I am trying to do a job using delayed_job
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enilsen16 has quit [Quit: enilsen16]
harai_ has joined #ruby
ascarter has joined #ruby
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
haraoka has joined #ruby
antoniobeyah_ has quit [Ping timeout: 258 seconds]
koooge has quit [Ping timeout: 260 seconds]
koooge has joined #ruby
Hyuk has joined #ruby
lxsameer has joined #ruby
ta_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<zenspider> dminuoso: was that about the delayed_job thing?
<zenspider> mscs: NO. there is NO speed difference using single quotes. that's bullshit FUD that came from perl and is measurably false
ecksit has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
raul782 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 246 seconds]
ecnalyr has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
dionysus69 has joined #ruby
zoemeh has joined #ruby
pawnbox has joined #ruby
ecnalyr has joined #ruby
djbkd has quit [Quit: My people need me...]
raul782 has joined #ruby
xrlk has quit [Ping timeout: 250 seconds]
raul782 has quit [Remote host closed the connection]
pwnd_nsfw` has quit [Read error: Connection reset by peer]
jt__ has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
pwnd_nsfw has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ecnalyr has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby
cibs has joined #ruby
ascarter has joined #ruby
saneax-_-|AFK is now known as saneax
last_staff has joined #ruby
dnicole has joined #ruby
matp has quit [Remote host closed the connection]
maattdd has joined #ruby
douglascorrea has quit [Remote host closed the connection]
matp has joined #ruby
douglascorrea has joined #ruby
douglascorrea has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
brendan- has joined #ruby
pwnd_nsfw` has joined #ruby
dnicole has quit [Ping timeout: 240 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
jphase has quit [Read error: Connection reset by peer]
jphase has joined #ruby
teclator has joined #ruby
iMadper has quit [Remote host closed the connection]
dionysus69 has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
function is now known as trout
konsolebox has joined #ruby
agent_white has quit [Quit: brb]
hutch34 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
hotpancakes has quit [Ping timeout: 245 seconds]
djbkd has quit []
ecnalyr has quit [Read error: Connection reset by peer]
maattdd has quit [Ping timeout: 248 seconds]
Vandaiore has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
agent_white has joined #ruby
brendan- has joined #ruby
ecnalyr has joined #ruby
raul782 has joined #ruby
Salih has joined #ruby
raul782 has quit [Ping timeout: 258 seconds]
ta_ has joined #ruby
awk_ is now known as awk
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tvw has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
FerrouSX has joined #ruby
Dimik has quit [Ping timeout: 250 seconds]
bturker has joined #ruby
zoemeh has quit [Remote host closed the connection]
blaxter has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
jtdoncas has joined #ruby
andikr has joined #ruby
aryaching_ has joined #ruby
aufi has joined #ruby
aryaching_ has quit [Client Quit]
SpiffTR has joined #ruby
aryaching_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 265 seconds]
aryaching has quit [Ping timeout: 268 seconds]
andrzeju_ is now known as andrzejku
TomyWork has joined #ruby
pawnbox has quit [Remote host closed the connection]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
dnicole has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
jt__ has quit [Remote host closed the connection]
hahuang62 has joined #ruby
hahuang62 has quit [Ping timeout: 250 seconds]
last_staff has quit [Quit: last_staff]
iMadper has joined #ruby
agent_white has joined #ruby
avelldiroll has quit [Quit: WeeChat 1.0.1]
pandaant has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
agent_white has quit [Quit: agent_white]
agent_white has joined #ruby
SesMan has joined #ruby
codfection has joined #ruby
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
avelldiroll has joined #ruby
hotpancakes has joined #ruby
claudiuinberlin has joined #ruby
Snickers has joined #ruby
yardenbar has joined #ruby
mark_66 has joined #ruby
QualityAddict has quit [Ping timeout: 256 seconds]
tens0r has joined #ruby
ecnalyr has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
ecnalyr has joined #ruby
TomyWork has quit [Quit: Leaving]
aupadhye has joined #ruby
SpiffTR has quit [Quit: Leaving.]
bronson_ has quit []
Coldblackice has quit [Ping timeout: 260 seconds]
maxirater has joined #ruby
Devalo has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
quazimodo has joined #ruby
Devalo has quit [Ping timeout: 265 seconds]
Silthias1 has joined #ruby
zenspider_ has quit [Ping timeout: 250 seconds]
gmj has joined #ruby
nankyokusei has joined #ruby
salut has joined #ruby
QualityAddict has joined #ruby
Humdai has joined #ruby
gmj has quit [Quit: WeeChat 1.5]
Silthias has quit [Ping timeout: 248 seconds]
aupadhye has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 264 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zenspider has joined #ruby
maxirater has quit [Quit: Leaving]
SpiffTR has joined #ruby
SesMan has joined #ruby
maxyz_ has joined #ruby
maxyz_ has quit [Client Quit]
jsrn_ has joined #ruby
Chair has joined #ruby
maattdd has joined #ruby
matp has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
matp has joined #ruby
lenwood has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
mikecmpbll has quit [Client Quit]
blaxter has quit [Quit: foo]
jaruga___ has joined #ruby
hahuang62 has joined #ruby
aryaching_ has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
matp has quit [Remote host closed the connection]
teclator has quit [Read error: Connection reset by peer]
matp has joined #ruby
teclator has joined #ruby
tomphp has joined #ruby
ecnalyr has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
zenspider has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
zenspider has joined #ruby
ishe_ua has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
pwnd_nsfw has joined #ruby
aupadhye has joined #ruby
SpiffTR has quit [Quit: Leaving.]
hutch34 has joined #ruby
ecnalyr has joined #ruby
tens0r has quit [Quit: tens0r]
SpiffTR has joined #ruby
lxsameer has quit [Ping timeout: 258 seconds]
lxsameer has joined #ruby
hahuang62 has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 246 seconds]
kareelee has joined #ruby
kareelee is now known as MrPomas
zenspider has quit [Ping timeout: 265 seconds]
koooge has quit [Quit: Leaving...]
_joes__ has joined #ruby
eightbitraptor has joined #ruby
terens has joined #ruby
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
SpiffTR has quit [Quit: Leaving.]
johnmccabe has joined #ruby
zenspider has joined #ruby
bruce_lee has joined #ruby
haraoka has quit [Remote host closed the connection]
raul782 has joined #ruby
blackwind_123 has quit [Ping timeout: 245 seconds]
SpiffTR has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
grenierm has quit [Quit: grenierm]
raul782 has quit [Ping timeout: 245 seconds]
ishe_ua has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
astrobunny has quit [Remote host closed the connection]
bturker has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
aryaching_ has joined #ruby
mikecmpbll has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
SpiffTR has quit [Quit: Leaving.]
bturker has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
workmad3 has joined #ruby
Beams has joined #ruby
maattdd has quit [Quit: WeeChat 1.5]
jaguarmagenta has joined #ruby
harai_ has quit [Ping timeout: 260 seconds]
TomyWork has joined #ruby
maattdd has joined #ruby
pawnbox has quit [Remote host closed the connection]
ishe_ua has joined #ruby
the_drow has joined #ruby
pawnbox has joined #ruby
n008f4g_ has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Ping timeout: 256 seconds]
FerrouSX has quit [Ping timeout: 246 seconds]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
zenspider has quit [Ping timeout: 250 seconds]
mim1k|wo1k has joined #ruby
mim1k|work has quit [Read error: Connection reset by peer]
rodfersou has joined #ruby
manjaro-kde5__ has joined #ruby
dasher00 has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
lenwood has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 264 seconds]
aupadhye has joined #ruby
nebg_ has quit [Ping timeout: 245 seconds]
dklima_ has joined #ruby
<ddv> mscs: yeah intellij follows the ruby style guide
mim1k|wo1k has quit [Ping timeout: 264 seconds]
mim1k|work has joined #ruby
e1z0 has joined #ruby
nebg has joined #ruby
SpiffTR has joined #ruby
sid_fules has joined #ruby
Hyuk has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
zenspider has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.5]
dasher00 has joined #ruby
sid_fules has quit [Quit: Leaving...]
ldnunes has joined #ruby
ecnalyr has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
blackbombay has quit [Ping timeout: 258 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
salut has quit [Quit: salut]
gbgdev has joined #ruby
workmad3_ has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
n008f4g_ has quit [Ping timeout: 258 seconds]
conta has quit [Quit: conta]
workmad3 has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
workmad3_ has quit [Ping timeout: 258 seconds]
Cohedrin has joined #ruby
n008f4g_ has joined #ruby
nankyokusei has joined #ruby
dklima_ is now known as sparch
sparch has quit [Changing host]
sparch has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
pwnd_nsfw has joined #ruby
ecnalyr has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby
blackbombay has joined #ruby
sylario has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
rodferso1 has joined #ruby
rodfersou has quit [Ping timeout: 258 seconds]
frozengeek has joined #ruby
bturker has joined #ruby
e1z0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bturker has quit [Ping timeout: 256 seconds]
tvw has quit [Remote host closed the connection]
hahuang62 has joined #ruby
hutch34 has joined #ruby
hahuang62 has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
zapata has quit [Ping timeout: 245 seconds]
bturker has joined #ruby
Axy has quit [Ping timeout: 268 seconds]
beilabs_ has joined #ruby
<sparch> bom dia
faces has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Quit: Leaving.]
beilabs has quit [Ping timeout: 258 seconds]
face has joined #ruby
beilabs_ has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
Robtop__ has joined #ruby
maattdd has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
ldnunes has joined #ruby
raul782 has joined #ruby
conta has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
raul782 has quit [Ping timeout: 256 seconds]
frozengeek has quit [Quit: frozengeek]
kotk has joined #ruby
kotk has quit [Client Quit]
dionysus69 has joined #ruby
SpiffTR has joined #ruby
ecnalyr has joined #ruby
frozengeek has joined #ruby
jcao219 has quit [Ping timeout: 245 seconds]
Silthias1 has quit [Ping timeout: 260 seconds]
jtdoncas has joined #ruby
jaguarmagenta has joined #ruby
Salih has quit [Quit: Leaving]
SesMan has joined #ruby
jtdoncas has quit [Ping timeout: 268 seconds]
prestorium has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 250 seconds]
Silthias has joined #ruby
jaguarmagenta has quit [Ping timeout: 258 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias has quit [Client Quit]
SpiffTR has quit [Ping timeout: 248 seconds]
nowz has joined #ruby
edwinvdgraaf has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
fmcgeough has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
charliesome has joined #ruby
ecnalyr has joined #ruby
deadnull has joined #ruby
yaw has joined #ruby
prestorium has joined #ruby
tvw has joined #ruby
alireza has joined #ruby
<alireza> is there a solution for this?
<alireza> category.name = params.name unless params.name.blank?
<alireza> category.markup = params.markup unless params.markup.blank?
<alireza> Y
<alireza> duplicate unless and state checking
hutch34 has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
SpiffTR has joined #ruby
cibs has joined #ruby
bigkevmcd has joined #ruby
maattdd has joined #ruby
<adaedra> rails?
<alireza> adaedra: yeah
<alireza> adaedra: it's just ruby :D
<adaedra> category.attributes.merge params.slice(:name, :markup).reject(&:blank?)
yaw has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> it's not "just" ruby, rails have access to more methods and have more complex objects
<dminuoso> &ri String
* dminuoso hugs adaedra
<dminuoso> Thank you.
<adaedra> It was just a hardcoded value to change :x
ruby-lang141 has joined #ruby
tk___ has joined #ruby
nadir has joined #ruby
nankyokusei has joined #ruby
johnmilton has joined #ruby
yaw has joined #ruby
<ruby-lang141> Kind of a basic question. I decided to introduce myself to Ruby for a simple class I'm taking (requiring me to learn something new) and It seems that learning everything will take too long. Rather than do that, I just want to make a small program that will ask the person to input certain key words (such as variable, string, integer) and print an explanation of what they are. It all works well up to the print part, but then the
<ruby-lang141> how to ask for another input.
<ruby-lang141> tl;dr ruby noob can't get a program to repeatedly request user input >:(
nankyokusei has quit [Ping timeout: 240 seconds]
<elomatreb> ruby-lang141: You'll want to use a loop
n008f4g_ has quit [Ping timeout: 260 seconds]
<ruby-lang141> Figured, I'll do a little bit more investigation and try to get it working before bothering you more >.<
Robtop__ has quit [Read error: Connection reset by peer]
eightbitraptor has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
gbgdev has quit [Remote host closed the connection]
Silthias has joined #ruby
Fernando-Basso has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
Silthias1 has joined #ruby
Cohedrin has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
<ruby-lang141> Woohoo, got it lol
<adaedra> congrats
SesMan has quit [Quit: Textual IRC Client: www.textualapp.com]
<ruby-lang141> Was using code that wasn't mine, barely knew how it worked. Had 'break' commands which ended the loop x.x
ecnalyr has joined #ruby
dar123 has quit [Ping timeout: 245 seconds]
tyang has joined #ruby
sepp2k has joined #ruby
zapata has joined #ruby
synthroid has joined #ruby
dar123 has joined #ruby
<harfangk> i was surprised to find that i had to require 'set' to use Set library when it is part of Ruby standard library
<harfangk> why was the need to require it introduced?
<harfangk> i'm not blaming - i'm just curious about the rationale and history
etehtsea has quit [Quit: Computer has gone to sleep.]
<toretore> there are lots of things in the stdlib you have to require
<canton7> I thought the difference between core and stdlib was that everything in stdlib needed requiring?
tribals has joined #ruby
<tribals> hi folks
<toretore> yes, all of what is commonly referred to as stdlib has to be required
<harfangk> oh so core and stdlib are not identical
<canton7> That makes sense to me - if everything was automatically required, then the ruby devs wouldn't be able to add new classes to the stdlib for fear of defining a class with the same name as some users
<tribals> it is safe to mutate enumerable through which iteration performed?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore> tribals: not likely
ecnalyr has quit [Ping timeout: 246 seconds]
<harfangk> tribals not really. try using #map to return a new enum if you need to
ltd_ has quit [Ping timeout: 246 seconds]
<tribals> why? does iteration order change? or what?
ltd has joined #ruby
ponga has joined #ruby
siseko has joined #ruby
hahuang62 has joined #ruby
Mia has joined #ruby
bradleyprice has joined #ruby
SteenJobs has joined #ruby
SesMan has joined #ruby
bmurt has joined #ruby
c355e3b has joined #ruby
hahuang62 has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby
SpiffTR has quit [Quit: Leaving.]
bradleyprice has quit [Ping timeout: 258 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
etehtsea has joined #ruby
jdawgaz has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
<harfangk> i haven't tested what happens if i delete elements of array left and right of iterator
<harfangk> but i find it easier to reason about something when it doesn't change
SteenJobs has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
<kke> a template language such as handlebars with a pure ruby parser with minimal dependencies?
SpiffTR has joined #ruby
SpiffTR has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
SpiffTR1 has joined #ruby
jaguarmagenta has joined #ruby
Salih has joined #ruby
pawnbox has joined #ruby
jhack has joined #ruby
<kke> maybe liquid
trout has quit [Quit: found 1 in /dev/zero]
bayed has joined #ruby
SpiffTR1 has quit [Quit: Leaving.]
bradleyprice has joined #ruby
pragmaticus has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
bigkevmcd has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
rodferso1 is now known as rodfersou|lunch
ruby-lang141 has quit [Quit: Page closed]
GodFather has joined #ruby
TvL2386 has joined #ruby
andikr has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 245 seconds]
reverberations has joined #ruby
e1z0__ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.6]
ldnunes has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtdoncas has joined #ruby
cdg has joined #ruby
siseko has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
raul782 has joined #ruby
howdoi has joined #ruby
jtdoncas has quit [Ping timeout: 245 seconds]
alireza has quit [Ping timeout: 248 seconds]
lenwood has joined #ruby
manjaro-kde5__ has quit [Remote host closed the connection]
psychicist__ has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
johnmccabe has joined #ruby
bmurt has joined #ruby
krishna has joined #ruby
ryan_notabot has quit [Remote host closed the connection]
ldnunes has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
ramortegui has joined #ruby
faces has joined #ruby
SteenJobs has quit [Read error: Connection reset by peer]
ramortegui has quit [Remote host closed the connection]
SteenJobs has joined #ruby
ecnalyr has joined #ruby
malconis has joined #ruby
shayan has joined #ruby
nettoweb has joined #ruby
ramortegui has joined #ruby
face has quit [Ping timeout: 265 seconds]
tribals has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
aryaching has joined #ruby
ramortegui has quit [Remote host closed the connection]
SteenJobs has quit [Read error: Connection reset by peer]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching_ has quit [Ping timeout: 259 seconds]
SteenJobs has joined #ruby
tk___ has quit [Quit: ばいばい]
ramortegui has joined #ruby
southeastpaw has joined #ruby
yaw has quit [Ping timeout: 265 seconds]
brendan- has joined #ruby
jdawgaz has joined #ruby
SesMan has quit [Quit: Textual IRC Client: www.textualapp.com]
raul782 has quit []
shayan has quit [Quit: shayan]
faces has quit [Ping timeout: 265 seconds]
SesMan has joined #ruby
millerti has joined #ruby
yardenbar has quit [Quit: Leaving]
ramortegui has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching_ has joined #ruby
ramortegui has joined #ruby
ramortegui has quit [Remote host closed the connection]
Humdai has left #ruby ["Leaving"]
aryaching has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
jaguarmagenta has quit [Read error: Connection reset by peer]
SesMan has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has quit [Ping timeout: 265 seconds]
SteenJobs has quit [Read error: Connection reset by peer]
face has joined #ruby
jaguarmagenta has joined #ruby
SteenJobs has joined #ruby
malconis has quit [Ping timeout: 256 seconds]
giraffe is now known as Guest59158
jdawgaz has joined #ruby
araujo has quit [Quit: Leaving]
SteenJobs has quit [Client Quit]
araujo has joined #ruby
malconis has joined #ruby
sp4rrow has joined #ruby
krishna has left #ruby [#ruby]
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Nicmavr has joined #ruby
Nicmavr is now known as Guest83887
dionysus69 has joined #ruby
DLSteve_ has joined #ruby
Guest83887 has quit [Changing host]
Guest83887 has joined #ruby
Guest83887 is now known as Kestrel-029
ramortegui has joined #ruby
sonicspin has joined #ruby
drorp24[m] has quit [Quit: Client limit exceeded: 5000]
griffindy has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ecnalyr has quit [Ping timeout: 248 seconds]
nankyokusei has joined #ruby
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #ruby
armin has quit [Quit: relate to the matter as i drop the bomb]
armin has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 250 seconds]
ecnalyr has joined #ruby
antoniobeyah has joined #ruby
mikecmpbll has quit [Ping timeout: 250 seconds]
aryaching_ has quit [Ping timeout: 264 seconds]
shinnya has quit [Ping timeout: 258 seconds]
jhack has quit [Quit: jhack]
balazs__ has quit [Ping timeout: 260 seconds]
balazs__ has joined #ruby
Sh4D0wD_ has joined #ruby
gbgdev has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rippa has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
SteenJobs has joined #ruby
polishdub has joined #ruby
stamina has joined #ruby
reverberations has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
jhack has joined #ruby
synthroi_ has joined #ruby
johnny56_ has quit [Ping timeout: 246 seconds]
Madplatypus has joined #ruby
millerti has joined #ruby
ta_ has quit [Remote host closed the connection]
reverberations has joined #ruby
MrPomas has quit []
kareelee has joined #ruby
kareelee is now known as MrPomas
pwnd_nsfw` has joined #ruby
synthroid has quit [Ping timeout: 264 seconds]
pwnd_nsfw has quit [Ping timeout: 245 seconds]
arthurl has joined #ruby
hahuang62 has joined #ruby
hutch34 has joined #ruby
teclator has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
dionysus69 has quit [Ping timeout: 258 seconds]
Dimik has joined #ruby
fedruantine_ has quit [Ping timeout: 246 seconds]
hahuang62 has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
terens has quit [Remote host closed the connection]
brendan- has joined #ruby
aryaching has joined #ruby
dionysus69 has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ecnalyr has quit [Read error: Connection reset by peer]
antoniobeyah has quit [Quit: antoniobeyah]
saneax is now known as saneax-_-|AFK
SteenJobs has joined #ruby
cpruitt has joined #ruby
SteenJobs has quit [Client Quit]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snickers has quit [Ping timeout: 256 seconds]
d0nn1e has quit [Ping timeout: 258 seconds]
d0nn1e has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
ecnalyr has joined #ruby
Anonymoose2 has joined #ruby
reverberations has quit [Ping timeout: 258 seconds]
nyuszika7h has quit [Quit: WeeChat 1.6]
ramortegui has quit [Quit: Ex-Chat]
nyuszika7h has joined #ruby
god has joined #ruby
pawnbox has joined #ruby
god has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
reverberations has joined #ruby
Anonymoose2 has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
Silthias has joined #ruby
southeastpaw has quit [Quit: Leaving]
rwb has quit [Ping timeout: 240 seconds]
Silthias1 has quit [Ping timeout: 258 seconds]
boombox_ has joined #ruby
Anonymoose2 has joined #ruby
sepp2k has quit [Quit: Leaving.]
reverberations has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
cibs has quit [Ping timeout: 268 seconds]
rrawlins has joined #ruby
lmc_ has joined #ruby
cibs has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
antoniobeyah has joined #ruby
hightower2 has joined #ruby
boombox_ has quit [Remote host closed the connection]
M-shine has quit [Quit: Client limit exceeded: 5000]
lmc has quit [Killed (verne.freenode.net (Nickname regained by services))]
lmc_ is now known as lmc
Anonymoose2 has quit [Ping timeout: 268 seconds]
Salih has quit [Quit: Leaving]
lmc_ has joined #ruby
Silox| has joined #ruby
tyang__ has joined #ruby
Snickers has joined #ruby
rodfersou|lunch is now known as rodfersou
beilabs has quit [Remote host closed the connection]
yaw has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
OTORelic2 has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
izaac_ has quit [Ping timeout: 248 seconds]
cibs has joined #ruby
izaac_ has joined #ruby
teclator has joined #ruby
ishe_ua has quit [Read error: No route to host]
banisterfiend has joined #ruby
rrawlins_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
arknemona has joined #ruby
<arknemona> how do I work with functions as variables in ruby?
<arknemona> I want my method to return another method and then have the caller calling it with some arguments if the returned method is not nil
<Papierkorb> arknemona: Use a Proc, you can construct them e.g. through a stabby lambda
<adaedra> Functions are not storable as values
rrawlins has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
<adaedra> However, you have Proc, Method, UnboundMethod objects which can proxy them
jdawgaz has quit [Client Quit]
banisterfiend has quit [Client Quit]
<toretore> ?xy arknemona
<ruby[bot]> arknemona: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
johnny56_ has joined #ruby
<arknemona> there's no frustration involved, I got the exact answer I wanted
tyang__ has quit [Read error: Connection reset by peer]
<arknemona> thanks adaedra, Papierkorb
stamina has quit [Quit: WeeChat 1.6]
ocbtec has joined #ruby
rrawlins has joined #ruby
jdawgaz has joined #ruby
lmc_ has quit [Quit: bye]
shayan has joined #ruby
SteenJobs has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
shayan has quit [Client Quit]
jhack has quit [Ping timeout: 240 seconds]
rrawlin__ has joined #ruby
aufi has quit [Quit: Leaving]
rrawlins_ has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
shayan has joined #ruby
rrawlins has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
Devalo has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: WeeChat 1.6]
jaruga___ has quit [Quit: jaruga___]
brent__ has joined #ruby
axisys has quit [Quit: leaving]
axisys has joined #ruby
blackbombay has quit [Ping timeout: 250 seconds]
teclator has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
chouhoulis has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
tyang has joined #ruby
gigetoo has joined #ruby
deadnull has quit [Quit: Bye]
mjuszczak has joined #ruby
synthroi_ has quit [Ping timeout: 248 seconds]
antoniobeyah has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
Devalo_ has joined #ruby
jgpawletko has joined #ruby
doberman has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 268 seconds]
shayan has quit [Quit: shayan]
Devalo has quit [Ping timeout: 250 seconds]
MrPomas has quit [Remote host closed the connection]
sonicspin has quit [Ping timeout: 240 seconds]
MrPomas has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nowz has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
LuckyABA has joined #ruby
nankyokusei has joined #ruby
MrPomas has quit [Ping timeout: 252 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ocbtec has quit [Quit: leaving]
millerti has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
amclain has joined #ruby
rrawlins has joined #ruby
Brak__________ has joined #ruby
matp_ has joined #ruby
matp has quit [Read error: Connection reset by peer]
jsrn_ has quit [Quit: Leaving]
<Brak__________> hey complete noob question, im trying to print out an array of objects in an erb template but im not sure how to access the object props within the loop
<doberman> Brak__________: having hard time understand you, could you explain
<Brak__________> <%= @item.property %> gives me an "undefined method 'property' for ..." error
<manveru> try it with item.property
<Brak__________> I have that wrapped in a for in loop
chouhoulis has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 248 seconds]
rrawlin__ has quit [Ping timeout: 258 seconds]
<Brak__________> I'll make a paste
dar123 has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<manveru> <% items.each do |item| %>item: <%= item.name %><% end %>
<manveru> like this
<Brak__________> ok
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #ruby
rrawlins_ has joined #ruby
<doberman> manveru: how could you... I was putting so much effort in creating gist, and you outdone me first
tyang__ has joined #ruby
<manveru> lol
ryan_notabot has joined #ruby
<Brak__________> oh doberman I get an undefined method 'prop' on that, so the object properties are listed as { :prop => 'text' }
[Butch] has joined #ruby
<manveru> so it's an hash
<manveru> item[:prop]
<doberman> item[:prop]
<Brak__________> awesome thanks guys
<doberman> dmn you manveru :)
yaw has quit [Ping timeout: 250 seconds]
rrawlin__ has joined #ruby
rrawlins has quit [Ping timeout: 240 seconds]
TPug has joined #ruby
<manveru> ^^;
tyang has quit [Ping timeout: 268 seconds]
rrawlins_ has quit [Ping timeout: 258 seconds]
jdawgaz has joined #ruby
Sh4D0wD_ has quit [Quit: Connection closed for inactivity]
hotpancakes has joined #ruby
fullofcaffeine has joined #ruby
ascarter has joined #ruby
SpiffTR has joined #ruby
hotpancakes has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 248 seconds]
hotpanca_ has joined #ruby
Silthias1 has joined #ruby
Kazlock has joined #ruby
n008f4g_ has joined #ruby
Silthias has quit [Ping timeout: 250 seconds]
siseko has joined #ruby
ych has joined #ruby
mark_66 has quit [Remote host closed the connection]
harai_ has joined #ruby
claudiuinberlin has quit []
rrawlin__ has quit [Remote host closed the connection]
jcao219 has joined #ruby
Chair has quit [Ping timeout: 258 seconds]
sdwrage has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<bougyman> man I hate this documentation format: https://activeldap.github.io/activeldap/en/ActiveLdap/Base.html
<bougyman> manveru: worked with activeldap before?
<manveru> nope
<manveru> but you can make your own rdocs if you hate that page :)
jt__ has joined #ruby
<bougyman> yeah I know
<bougyman> just trying to find out how to unbind.
<bougyman> this lib is too smart.
<bougyman> it never disconnects, and I need it to.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> I should have known better than to use active*
<bougyman> activeanything pisses me off.
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpiffTR has quit [Quit: Leaving.]
<bougyman> I'm just going back to net ldap
<adaedra> activepissingoff
djbkd has joined #ruby
<manveru> :)
<manveru> yeah... they should just rename active* to magic*
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang62 has joined #ruby
zacts has joined #ruby
Coldblackice has joined #ruby
Ishido has joined #ruby
SeepingN has joined #ruby
banisterfiend has joined #ruby
aupadhye has quit [Ping timeout: 265 seconds]
conta has quit [Ping timeout: 246 seconds]
zapata has quit [Ping timeout: 240 seconds]
<doberman> lol i never could understand why they name everything with Active prefix...
hahuang62 has quit [Ping timeout: 258 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> AdequateRecord Pro™
<adaedra> Let's create the next ORM, ActiveSequel
hotpanca_ has quit [Remote host closed the connection]
<doberman> lets use ProActive prefix than
hotpancakes has joined #ruby
johnmccabe_ has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
chouhoulis has quit [Remote host closed the connection]
ecnalyr has joined #ruby
marxarelli has joined #ruby
synthroid has quit [Remote host closed the connection]
<doberman> me /cry all my typos will forever be stored in irc logs
johnmccabe has quit [Ping timeout: 264 seconds]
Xi[m] has quit [Quit: Client limit exceeded: 5000]
<sonOfRa> bougyman: yeah, activeldap is terrible if your ldap tree isn't exactly the standard, and even then, it's annoying
<sonOfRa> I tried implementing our ldap management tool with it
lxsameer has joined #ruby
<sonOfRa> After 2 weeks, I switched to net-ldap
hotpancakes has quit [Read error: Connection reset by peer]
vdl has quit [Quit: WeeChat 1.5]
vdl has joined #ruby
hotpancakes has joined #ruby
IotaSpencer is now known as kspencer
<adaedra> doberman: her, a litle presnent for yuor logss
synthroid has joined #ruby
MrPomas has joined #ruby
zapata has joined #ruby
shayan has joined #ruby
millerti has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
arknemona has quit [Ping timeout: 260 seconds]
SpiffTR has joined #ruby
Gravious has joined #ruby
muelleme has joined #ruby
Asher has quit [Quit: Leaving.]
jt__ has quit [Remote host closed the connection]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TPug has joined #ruby
dar123 has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
gbgdev_ has joined #ruby
teclator has quit [Remote host closed the connection]
teclator has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
gbgdev has quit [Ping timeout: 268 seconds]
konsolebox has quit [Quit: Leaving]
hotpanca_ has joined #ruby
Beams has quit [Quit: .]
hotpancakes has quit [Ping timeout: 258 seconds]
bocaneri has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
hotpanc__ has joined #ruby
hotpanca_ has quit [Ping timeout: 245 seconds]
<jokke> hi
<jokke> anyone here familiar with virtus
<jokke> ?
<jokke> i'm trying to write an attribute for comma separated values
hotpanca_ has joined #ruby
hotpancakes has quit [Read error: Connection reset by peer]
<jokke> and want to pass a member type so that the values can be coerced
<jokke> i found the class Attribute::Collection but i don't know how it's supposed to be used
<doberman> jokke: comma separated values? do you mean array?
<jokke> no i mean a string with comma separated values
<jokke> 'foo,bar,baz'
hotpancakes has joined #ruby
hotpanc__ has quit [Ping timeout: 246 seconds]
<jokke> heh
<jokke> no
<jokke> i want the string to be split and each member to be coerced
conta has joined #ruby
<jokke> so i would have something like CSVArray[Integer]
Kazlock has joined #ruby
<jokke> which would coerce '1,2,3' into [1,2,3]
hotpanca_ has quit [Ping timeout: 258 seconds]
sparch has quit [Quit: Leaving]
dar123 has quit [Read error: Connection reset by peer]
hahuang62 has joined #ruby
Hink has quit [Read error: Connection reset by peer]
hotpanca_ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
<Gravious> jokke, do you mean like '1,2,3'.split(',').map(&:to_i) ?
<jokke> yes
<jokke> but i want to be able to use any type as member type
frozengeek has quit [Quit: frozengeek]
<jokke> like i can with Array
Devalo_ is now known as Devalo
Jackneill_ has joined #ruby
quazimodo has quit [Ping timeout: 264 seconds]
ecnalyr has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
e1z0__ has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang62 has quit [Quit: WeeChat 1.5]
ecnalyr has joined #ruby
<Gravious> jokke, ahh sorry I only just saw the first part of your question, I haven't really seen virtus before
splud has joined #ruby
<jokke> okay. no problem :)
matp has joined #ruby
hotpancakes has joined #ruby
matp_ has quit [Ping timeout: 250 seconds]
dar123 has joined #ruby
hotpanca_ has quit [Ping timeout: 250 seconds]
<shadeslayer> Hey
c355e3b has quit [Quit: Connection closed for inactivity]
jdawgaz has joined #ruby
<shadeslayer> is there a stdlib way of making a hash such that values associated with a key are keys themselves
<shadeslayer> so kind of like a graph I guess
<apeiros> shadeslayer: which value would those keys have?
<shadeslayer> apeiros: values are all arrays
<shadeslayer> so you have a key, array of key pair
lenwood has joined #ruby
<apeiros> can you make an example?
<shadeslayer> so on and so forth till the key doesn't exist in the hash, in which case it's a regular value
<shadeslayer> sure
brendan- has joined #ruby
jdawgaz has quit [Client Quit]
<apeiros> but it does sound like something you'd have to write a custom class
b0g has left #ruby [#ruby]
tercenya has quit [Remote host closed the connection]
<apeiros> shadeslayer: that does not highlight how it'd be different from a normal hash…
tercenya has joined #ruby
<shadeslayer> true
<shadeslayer> let me figure out how exactly this should work :P
<apeiros> that's *usually* a good idea before asking a question :-p
<shadeslayer> apeiros: oh right, so h['a'][0] should get you ['b', 'foo']
<shadeslayer> instead of just 'b'
<apeiros> and before executing line 4?
h1fuelcell has quit [Remote host closed the connection]
<shadeslayer> then only 'b'
h1fuelcell has joined #ruby
<apeiros> honestly, that sounds like a terrible API
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> once a scalar, once an array…
<shadeslayer> so h['a'][1] would be ['c']
<apeiros> why not ['b']?
<apeiros> then it'd at least stay consistent
<shadeslayer> because each element could be a key unto itself
<apeiros> your example still hasn't shown/explained that
axl_ has joined #ruby
axl_ has quit [Client Quit]
dar123 has quit [Read error: Network is unreachable]
<apeiros> but I think I can safely answer your initial question: no, there's nothing like this in stdlib. it's not exactly a common problem you're trying to solve :)
shayan has quit [Quit: shayan]
jtdoncas has joined #ruby
claudiuinberlin has joined #ruby
alexar has joined #ruby
beilabs has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<doberman> condolences, got pulled into meeting
AndyBotwin has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
<doberman> jokke: did you figure it yet?
hotpanca_ has joined #ruby
<jokke> nope
<doberman> ^ show up how to do json, but you can get the idea
dar123 has joined #ruby
<jokke> yeah
<jokke> i know
<jokke> collections are a whole different story though
axisys has quit [Quit: leaving]
nankyokusei has joined #ruby
<apeiros> json is a collection?
axisys has joined #ruby
hotpancakes has quit [Ping timeout: 248 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dar123 has quit [Read error: Connection reset by peer]
<shadeslayer> I think I need a break which is why I probably can't conceptualize this properly
<shadeslayer> cya later
<apeiros> shadeslayer: cya. might try to tell us what you try to solve instead after the break ;-)
<jokke> apeiros: it doesn't coerce any members
<apeiros> jokke: it does. it's just slightly hidden. remember, json has more than just one member type in objects.
AndrewIsHere has joined #ruby
axisys has quit [Client Quit]
muelleme has quit [Ping timeout: 258 seconds]
ryan_notabot has quit [Quit: Leaving]
nankyokusei has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
millerti has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
<jokke> doberman: yeah i've been looking at it for the last 4 hours
<doberman> jokke: use inheritance to make your own
<jokke> i've done just that
<jokke> @options[:member_type].finalize
<jokke> ups
antoniobeyah has quit [Quit: antoniobeyah]
<jokke> or tried
<jokke> this doesn't coerce anything because @member_type is always Object for some reason
tildes has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ecnalyr has quit [Ping timeout: 258 seconds]
Lord_of_Life has quit [Excess Flood]
shayan has joined #ruby
<doberman> joke: do you think all your values in csv will be same type?
Lord_of_Life has joined #ruby
ecnalyr has joined #ruby
<jokke> yes
jdawgaz has joined #ruby
antoniobeyah has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
dar123 has joined #ruby
vuoto has joined #ruby
<jokke> ok this works: https://p.jreinert.com/HDA/
<jokke> but it's quite the hack
<jokke> for something that ought to be very easy
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
duderonomy has joined #ruby
Silthias1 has joined #ruby
<doberman> yay
Joufflu_ has joined #ruby
Robtop__ has joined #ruby
matp has quit [Remote host closed the connection]
tyang__ has quit [Quit: Leaving]
nofxx has joined #ruby
tyang has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
matp has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
Joufflu has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
conta has quit [Ping timeout: 264 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c355e3b has joined #ruby
vuoto has quit [Remote host closed the connection]
jdawgaz has joined #ruby
frozengeek has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 265 seconds]
chrisja has joined #ruby
symm has joined #ruby
millerti has joined #ruby
<shadeslayer> apeiros: https://gist.github.com/56367f92a2cac977a1e5548014d294a1 < is what I meant
ych has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg has quit [Remote host closed the connection]
Fernando-Basso has quit [Quit: Leaving]
Jackneill_ has quit [Remote host closed the connection]
ych has quit [Max SendQ exceeded]
whathappens has joined #ruby
ironcame1 is now known as ironcamel
alexar has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
benlieb has quit [Quit: benlieb]
mjuszczak has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
johnmccabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shadeslayer> apeiros: see insert and get :)
lenwood has joined #ruby
ecnalyr has quit [Ping timeout: 250 seconds]
ddffg has quit [Quit: Leaving]
muelleme has joined #ruby
tau has joined #ruby
<apeiros> shadeslayer: so you implemented what you need?
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
whathappens has quit [Client Quit]
ecnalyr has joined #ruby
tercenya has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
tercenya has joined #ruby
mwlang has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
whathapp_ has quit [Ping timeout: 256 seconds]
tens0r has joined #ruby
d10n-work has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
tristanp has quit []
Anonymoose2 has joined #ruby
blackbombay has joined #ruby
fullofcaffeine has joined #ruby
tens0r has quit [Read error: No route to host]
tens0r has joined #ruby
reverberations has quit [Ping timeout: 250 seconds]
jhack has quit [Quit: jhack]
blackwind_123 has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<shadeslayer> apeiros: yes
blackbombay has quit [Ping timeout: 268 seconds]
muelleme has quit [Ping timeout: 256 seconds]
<shadeslayer> pretty trivial once I wrapped my head around it
blackwind_123 has joined #ruby
johnmilton has quit [Remote host closed the connection]
shayan has quit [Quit: shayan]
tvw has quit [Ping timeout: 246 seconds]
manjaro-kde5- has joined #ruby
lenwood has quit [Remote host closed the connection]
hahuang65 has joined #ruby
rakm has joined #ruby
mt_ has joined #ruby
rakm has quit [Client Quit]
govg has joined #ruby
shayan has joined #ruby
Gravious has quit [Ping timeout: 250 seconds]
alexar has quit [Read error: Connection reset by peer]
rakm has joined #ruby
vuoto has joined #ruby
ryan_notabot has joined #ruby
siseko has left #ruby [#ruby]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryan_notabot has quit [Read error: Connection reset by peer]
<apeiros> shadeslayer: cool. I still don't really get what you're doing, or why. but it works for you, so that's sufficient :)
ryan_notabot has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Luca[m] has quit [Quit: Client limit exceeded: 5000]
konsolebox has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
blackbombay has joined #ruby
synthroi_ has joined #ruby
b_penguin has joined #ruby
alexar has joined #ruby
DexterLB has left #ruby ["So long and thanks for all the fish"]
synthroid has quit [Ping timeout: 250 seconds]
jcao219 has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
blackbombay has quit [Ping timeout: 268 seconds]
claudiuinberlin has quit []
conta has joined #ruby
johnmilton has joined #ruby
ecnalyr has quit [Ping timeout: 258 seconds]
Rutix has quit []
jdawgaz has joined #ruby
JakFrist[WVU] has joined #ruby
pwnd_nsfw has joined #ruby
baconoverflow_ has joined #ruby
symm has quit [Ping timeout: 268 seconds]
ecnalyr has joined #ruby
ecnalyr has quit [Client Quit]
Robtop__ has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
johnmilton has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 248 seconds]
enilsen16 has joined #ruby
Klumben has quit [Ping timeout: 258 seconds]
jt__ has joined #ruby
tercenya has quit [Remote host closed the connection]
Kazlock has joined #ruby
tercenya has joined #ruby
Cohedrin has joined #ruby
TPug has joined #ruby
Silthias has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
hahuang61 has joined #ruby
apneic has joined #ruby
fullofcaffeine has joined #ruby
Klumben has joined #ruby
haxrbyte has joined #ruby
vuoto has quit [Remote host closed the connection]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
chouhoul_ has joined #ruby
manjaro-kde5- has quit [Ping timeout: 258 seconds]
Silthias has quit [Ping timeout: 258 seconds]
wrkrcoop has joined #ruby
fullofcaffeine has quit [Ping timeout: 245 seconds]
chouhou__ has joined #ruby
<wrkrcoop> i dont understand the decorator pattern. if i have 10 pizzas, instead of making 10 classes, why don’t i just pass in the toppings as an argument to the constructor??
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
<wrkrcoop> does that make it a decorator? no right?
Silthias has joined #ruby
arknemona has joined #ruby
skweek has joined #ruby
tfitts has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
chouhoul_ has quit [Ping timeout: 252 seconds]
wrkrcoop has joined #ruby
symm has joined #ruby
czerasz has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist[WVU] has joined #ruby
<havenwood> wrkrcoop: Nope, that wouldn't be a decorator. Take a look at Forwardable and Delegator in the stdlib for some inspiration.
<havenwood> wrkrcoop: And SimpleDelegator: https://docs.ruby-lang.org/en/2.3.0/SimpleDelegator.html
<wrkrcoop> hm ok thanks
<havenwood> wrkrcoop: Try using those ^ then return to the question.
<wrkrcoop> k
rodfersou has quit [Quit: leaving]
<wrkrcoop> havenwood: so a decorator inherts then overrides a method?
johnmccabe has joined #ruby
matugm has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
<arknemona> decorator decorates a method
sepp2k has joined #ruby
<wrkrcoop> is docrating a method the same thing as overrriding it?
<arknemona> generally speaking a decorator is a method A that wraps the method B, doing some stuff to the input and then returning the method B with the new input
b_penguin has quit [Quit: Textual IRC Client: www.textualapp.com]
gloscombe has joined #ruby
nankyokusei has joined #ruby
<wrkrcoop> AHHHH ok
<wrkrcoop> very interesting
<wrkrcoop> thanks for that explanation
tyang has quit [Ping timeout: 250 seconds]
<wrkrcoop> with that explnaation the example in SimpleDelegator makes a lot fsense
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has joined #ruby
<arknemona> question: is there syntax sugar for python-like decorators in ruby?
dayd has joined #ruby
codfection has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 268 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<arknemona> wrkrcoop keep in mind that the concept of decorator involves returning the decorated function, not the result itself
<wrkrcoop> arknemona: what really?
wrkrcoop has quit [Quit: wrkrcoop]
wrkrcoop has joined #ruby
wrkrcoop has quit [Client Quit]
charliesome has joined #ruby
arknemona has quit [Quit: SALETKEESYRAFLO]
pragmaticus has quit [Remote host closed the connection]
quazimodo has joined #ruby
matp has quit [Quit: ZZzzzZz...]
Devalo has quit [Ping timeout: 245 seconds]
shayan has quit [Quit: shayan]
Kazlock has joined #ruby
tenderlove has quit [Ping timeout: 258 seconds]
matugm has joined #ruby
matugm has quit [Changing host]
matugm has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
johnmccabe_ has joined #ruby
<doberman> i'm about to KMS... compiling ruby with --with-rubysitearchdir=/usr/local/lib64/ruby/site_dir but it still puts sitearch and vendorarch into /usr/lib64/x86_64-linux-gnu/ruby/ (values not hardcoded, just resolved for you)
tau has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 258 seconds]
<doberman> typo: /usr/local/lib64/ruby/site_dir => /usr/local/lib64/ruby/site_ruby
conta has quit [Ping timeout: 250 seconds]
johnmccabe has quit [Ping timeout: 258 seconds]
<doberman> anybody know how to cure it?
marxarelli is now known as marxarelli|afk
tildes has quit [Ping timeout: 258 seconds]
jt__ has quit [Quit: Leaving...]
tildes has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nikivi has joined #ruby
enilsen16 has quit [Quit: enilsen16]
tau has joined #ruby
nikivi has quit [Client Quit]
hotpancakes has joined #ruby
enilsen16 has joined #ruby
AgentVenom has joined #ruby
dnicole has quit [Remote host closed the connection]
lucky__ has joined #ruby
hotpanca_ has quit [Ping timeout: 240 seconds]
antoniobeyah has quit [Quit: antoniobeyah]
jhack has quit [Quit: jhack]
johnmccabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
benlieb has joined #ruby
jhack has joined #ruby
antoniobeyah has joined #ruby
fullofcaffeine has joined #ruby
haxrbyte has quit [Ping timeout: 268 seconds]
gbgdev has joined #ruby
shayan has joined #ruby
gbgdev_ has quit [Ping timeout: 256 seconds]
marxarelli|afk is now known as marxarelli
tens0r has quit [Quit: tens0r]
rakm has joined #ruby
loincloth has quit []
manjaro-kde5- has joined #ruby
<doberman> nvm im just tried --with-sitearchdir not --with-rubysitearchdir
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dnicole has joined #ruby
apneic has quit []
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
tildes has quit [Ping timeout: 252 seconds]
chouhou__ has quit [Remote host closed the connection]
jcao219 has quit [Ping timeout: 264 seconds]
jhack has quit [Quit: jhack]
ruby has joined #ruby
ruby is now known as Guest36268
chouhoulis has joined #ruby
tau has quit [Remote host closed the connection]
jhack has joined #ruby
<Synthead> I'm using net-ssh and am being prompted for a password, even with keys_only: https://gist.github.com/anonymous/ab377f051e91eac3c44e20465517b2d3
ta_ has joined #ruby
<Synthead> what am I doing wrong?
tau has joined #ruby
<Synthead> all the config keys are present
tenderlove has joined #ruby
<quazimodo> how on earth do I test the ruby repo after make without doing make install?
<doberman> do you mean ruby itself?
<doberman> like the cruby code?
h1fuelcell has joined #ruby
<quazimodo> i did "make DESTDIR=/tmp/stage install" with /tmp/stage set up for chroot. But after chrooting in and going to /usr/local/bin and doing ./ruby (which is there and is an executable binary file) i get bash: ./ruby: No such file or directory
<quazimodo> so.. yeah how do i run the ruby i just compiled with make
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
<Synthead> quazimodo: why not just run /tmp/stage/usr/local/bin/ruby?
<quazimodo> Synthead: <internal:gem_prelude>:4:in `require': cannot load such file -- rubygems.rb (LoadError)
<quazimodo> from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
<Synthead> quazimodo: have you compiled/installed rubygems to /tmp/stage as well?
hotpancakes has quit []
jcao219 has joined #ruby
TPug has joined #ruby
<Synthead> maybe you have an rc file somewhere that's trying to load a gem?
<Synthead> ruby should run without rubygems
<quazimodo> hrm I don't know?
<quazimodo> still don't understand why chroot is acting that way though
davidt has joined #ruby
<Synthead> quazimodo: when you compile ruby, unless you went off on your own beaten path, it uses your system libs and compiles against them
<Synthead> so it's probably not finding those libs
<Synthead> run ldd /tmp/stage/usr/local/bin/ruby
<Synthead> it'll show you what's linked
<Synthead> since chroot is an "isolated" environment, you likely don't have those libs in your /tmp/stage chroot, hence the error
h1fuelcell has quit [Ping timeout: 252 seconds]
<Synthead> if you have strace in your chroot, you can run strace on it to see if that's what's causing it
<Synthead> if you have ldd in your chroot, you'll probably see broken links when running it against your ruby in the chroot
<quazimodo> Synthead: i haven't done c programming in 8 years
<quazimodo> i totally forgot the linking
<Synthead> :)
<Synthead> you can statically link your ruby executable, but it'll bloat it
<quazimodo> it'll run though
<quazimodo> right
<Synthead> eh
<Synthead> I mean
<Synthead> the error you're getting (rubygem stuff) is an error from ruby
<Synthead> chances are, if you statically link it or do whatever you need to do to overcome the missling links, you'll just hit that same error in the chroot
<quazimodo> that's when it's not in chroot, so that's fine
<quazimodo> ok
<quazimodo> so
<quazimodo> i guess i'd need to compile it in the chroot environment
<Synthead> you'll probably still see the error
fullofcaffeine has quit [Remote host closed the connection]
<quazimodo> ok, let's forget that
<Synthead> what's the question?
<quazimodo> i'm gonna go figure out how ruby-install works and try to turn it into a distributed version
chopin_ has joined #ruby
<quazimodo> oh, i just wanted to compile and run the ruby
<Synthead> oh ok
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Synthead> you might also consider working in a docker container
<Synthead> also, look into ccache if you're not already using it
Kazlock has joined #ruby
rwb has joined #ruby
nettoweb has joined #ruby
blackbombay has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
chopin has quit [Ping timeout: 248 seconds]
<Synthead> good luck :)
antoniobeyah has joined #ruby
<quazimodo> thanks mate :)
synthroid has joined #ruby
shayan has quit [Quit: shayan]
malconis has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
mjago has joined #ruby
charliesome has joined #ruby
enilsen16 has quit [Quit: enilsen16]
synthroi_ has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
fullofcaffeine has joined #ruby
blackbombay has quit [Ping timeout: 246 seconds]
enilsen16 has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Quit: Leaving.]
GodFather has joined #ruby
matp has joined #ruby
<havenwood> quazimodo: What do you mean by "distributed version?" Do you mean you can move the Ruby around or something else?
<havenwood> quazimodo: yell if you have any ruby-install-related questions!
<Synthead> any thoughts on my net-ssh question? :)
blackbombay has joined #ruby
<Synthead> I'm using net-ssh and am being prompted for a password, even with keys_only: https://gist.github.com/anonymous/ab377f051e91eac3c44e20465517b2d3
<havenwood> quazimodo: if you do mean being able to move the Ruby, ruby-install --latest ruby -- --enable-shared
<havenwood> quazimodo: --enable-shared does the trick
lxsameer has quit [Quit: WeeChat 1.6]
<doberman> Synthead: what key do you use?
<Synthead> an RSA key
Cohedrin has joined #ruby
<antoniobeyah> Synthead: from reading the docs it doesn’t sound to me like that prevents password auth, only that it will *not* use keys from your ssh agent
<doberman> make sure you point to private key in your config, process has access to key file, and public key added into ssh authorized_keys key on server
<Synthead> I can log into the server from my linux system just fine
<Synthead> using the user and key
<Synthead> the keys array contains a string value of the key used to log into the server
<Synthead> hm
dnicole has quit [Remote host closed the connection]
<antoniobeyah> Synthead: are you able to look at the server logs to see if it is just failing auth and defauling back to password auth?
<Synthead> you know, I haven't
dnicole has joined #ruby
<Synthead> this is pretty obviously used as part of a project, and the processes that use this has been failing
<antoniobeyah> oh, it looks like you can also make it verbose
<Synthead> I'll check that!
<Synthead> oh yeah?
<antoniobeyah> yeah, verbose: :debug looks like a thing
Sammichmaker has quit [Ping timeout: 240 seconds]
<antoniobeyah> to the .start method
dnicole_ has joined #ruby
djbkd has quit [Quit: My people need me...]
<Synthead> let me try it
<Synthead> that's a great idea
berndl has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
dnicole_ has quit [Ping timeout: 258 seconds]
<berndl> Is there a way to define an instance of a class without using .new?
<berndl> I know you can do this with certain classes like Rational and Vector.
Ropeney has joined #ruby
<antoniobeyah> berndl: not really, you could use .allocate but it wouldn’t do anything
<antoniobeyah> ?xy
<ruby[bot]> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<Synthead> ^
xrlk has joined #ruby
<berndl> So I guess Rational is not implemented in Ruby, but in C or something?
<antoniobeyah> berndl: what are you trying to do?
<berndl> I'm trying to emulate classes like Rational or Vector that don't need .new() to create instances of them.
<doberman> berndl: what? why?
<berndl> I guess I can make a wrapper method that wraps the .new().
<berndl> Why? Because I'm curious.
<berndl> I guess that's where Rational comes from.
<havenwood> >> class Why; class << self; alias ne new; undef new end end; Why.ne # berndl
<ruby[bot]> havenwood: # => #<Why:0x41559948> (https://eval.in/697614)
charliesome has joined #ruby
nikivi has joined #ruby
<havenwood> berndl: It's Ruby, you can do whatever you want. But don't. :-)
<doberman> berndl: they way it works, it defines global function Rational that creates class instance
<doberman> you can do same way
<doberman> in pure ruby
<havenwood> berndl: A common Class you'll see without ::new is a Singleton Class: https://docs.ruby-lang.org/en/2.3.0/Singleton.html
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tekeli-li has joined #ruby
<havenwood> Singleton.instance
<doberman> havenwood: singleton is single instance of class
<havenwood> doberman: I know what it is. I was pointing it out as an example of a Class not having a ::new.
<berndl> Yeah, but it uses .instance, which is just as bad.
<havenwood> Why is that bad?
<havenwood> berndl: What is it you want?
gbgdev_ has joined #ruby
<berndl> I want something like Rational.
dionysus69 has quit [Ping timeout: 260 seconds]
<havenwood> berndl: I showed you one way above. There are many ways.
<berndl> havenwood: using an alias?
davidt_ has joined #ruby
biberu has quit []
gbgdev has quit [Ping timeout: 260 seconds]
<havenwood> berndl: Yup, you could alias to whatever you want then remove the original. Or implement class yourself. Or... whatever else you'd like to do! If you're just playing try starting with a module and making your own class that has a class method in place of new that calls an instance variable in place of initialize.
synaps3 has joined #ruby
synaps3 has quit [Max SendQ exceeded]
tercenya has quit []
madsa has quit [Ping timeout: 250 seconds]
<berndl> I guess having a wrapper method is the cleanest solution for now.
madsa has joined #ruby
rwb has quit [Remote host closed the connection]
nikivi has quit [Quit: zzz]
<havenwood> berndl: Or another thing you'll see in Ruby is a method posing as a class. Consider the following:
<havenwood> >> require 'set'; def Set collection; Set.new collection end; Set([])
<ruby[bot]> havenwood: # => #<Set: {}> (https://eval.in/697623)
davidt has quit [Ping timeout: 245 seconds]
jhack has quit [Ping timeout: 258 seconds]
johnmccabe has joined #ruby
<havenwood> berndl: That's along the lines of what `String("hrm")` or `Integer(42)` are doing.
<berndl> Yes. That's exactly what I want.
<havenwood> berndl: Or Rational as you mention.
<berndl> How does Vector do it though with square brackets?
dar123 has quit [Read error: Network is unreachable]
<berndl> Vector[1,2]
chouhoulis has quit [Remote host closed the connection]
nikivi has joined #ruby
<berndl> >> require 'matrix'; Vector [1,2]
<ruby[bot]> berndl: # => undefined method `Vector' for main:Object (NoMethodError) ...check link for more (https://eval.in/697626)
<berndl> >> require 'matrix'; Vector[1,2];
<ruby[bot]> berndl: # => Vector[1, 2] (https://eval.in/697628)
dar123 has joined #ruby
<berndl> So I guess the [1,2] is not an array that's being passed as an argument.
<havenwood> berndl: Just define the method.
<havenwood> >> class String; def self.[] *content; content.join end end; String[1, 42] # berndl
<ruby[bot]> havenwood: # => "142" (https://eval.in/697630)
rwb has joined #ruby
<doberman> It uses back magic but does what you want
<berndl> define_singleton_method is not avaiable in 1.8
<havenwood> berndl: Yeah, it's not an Array. In Ruby there's syntactic sugar around ::[], ::[]=, #[], #[]= etc
shayan has joined #ruby
jhack has joined #ruby
<berndl> havenwood: Got it.
<doberman> 1.8... okay
<havenwood> berndl: Look at the String example above for Vector-like class method.
<antoniobeyah> 1.8 is still a thing?
<havenwood> antoniobeyah: 1.8 is dead.
<berndl> I'm on an old laptop and it has 1.8 on it.
<doberman> you prob wanna upgrade
<berndl> my laptop
<havenwood> Ruby 2.2 and 2.3 are currently maintained.
<doberman> you can start with ruby
<berndl> Let me see if I can upgrade ruby. One second...
<havenwood> I guess 2.1 is still in still in maintenance mode for bugfixes until Feb.
<havenwood> When 2.2 goes into maintenence mode.
<havenwood> Err, not bugfixes, just security bugs.
<havenwood> Ruby 2.4.0-rc1 ftw! :P
nikivi has quit [Quit: irc]
<doberman> yes yes or trunk :) who cares about stability, am i right
<berndl> Looks like I can upgrade to ruby23 @2.3.3
<havenwood> berndl: perfect
<havenwood> berndl: That's latest stable.
<doberman> berndl: yes do that
dar123 has quit [Quit: Textual IRC Client: www.textualapp.com]
mjago has quit [Ping timeout: 258 seconds]
<berndl> Does Ruby support multimethods yet?
<berndl> Looks like it doesn't, at least not natively.
synthroid has quit []
<doberman> also u dont have to use define_singleton_method its me overdoing things, you can just do def MyClass(a,b); PMyClass.new(a,b); end
<havenwood> berndl: It's not the Ruby way. Try Elixir or Clojure.
<havenwood> berndl: Or Crystal or Rubinius.
<berndl> Isn't Elixir like Ruby?
h1fuelcell has joined #ruby
<antoniobeyah> depends on who you ask
<havenwood> berndl: In the same way a skateboard is like a boat.
<berndl> The skateboard being Ruby in this case?
<havenwood> Similar shape, both get you places. Checks out.
govg has quit [Ping timeout: 248 seconds]
xrlk has quit [Ping timeout: 265 seconds]
<doberman> that is very abstract... havenwood
<havenwood> berndl: The creator and many folk working on Elixir are Rubyists so it has influences but it is very much an entirely different language.
graydot has joined #ruby
graydot has quit [Client Quit]
<havenwood> berndl: It also has influences from F#, Clojure, Haskell, and of course Erlang, etc.
<havenwood> berndl: It's a great language and an awesome example of pattern matching with multimethods so check it out!
<doberman> the creator? do you mean Matz?
<havenwood> doberman: Jose Valim
<doberman> ah i was about to be surprises that Matz has something to do with Elixir
<doberman> *surprised
h1fuelcell has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
<havenwood> Matz loves languages after all
davidt_ has quit []
MrPomas has quit [Remote host closed the connection]
<z64> man, that tagline.. "unless you want to become a maintenance programmer"
<havenwood> z64: FUD! ;-)
MrPomas has joined #ruby
<z64> is that really fair lol?
<havenwood> z64: nope, ha
<z64> :D
<doberman> o_O, okay Im going to rethink my world
nankyokusei has joined #ruby
bradleyprice has joined #ruby
<berndl> Aren't most programmers maintenance programmers?
<z64> i've been really excited about crystal. it's early, but, man i think it's really cool.
xrlk has joined #ruby
<berndl> Crystal == typed Ruby ?
<ytti> ruby inspired LLVM backed
<havenwood> berndl: Crystal is much, much closer to Ruby than Elixir, but still a different language.
<z64> compiled + strongly typed. (but you still have inference where it can)
symm_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<berndl> Nice.
<havenwood> Matz is one of the larger monetary contributors to Crystal
jcao219 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti> simple programs are usually quite easy to translate to crystal
symm has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
<z64> the site provides a good overview, and the blogs are an interesting read as well at the bottom for the ruby v crystal stackup: https://crystal-lang.org/
<ytti> i had statistics problem which was too hard for me, i wrote monte carlo simulator for it, but it was too slow, didn't take me 30min to translate it to crystal
<z64> oh nice.
<z64> dem gains?
<ytti> over magnitude
<ytti> it's important to compile with release flag, otherwie performance is pretty bad
pawnbox has quit [Remote host closed the connection]
<berndl> I really like Ruby syntax. Way better than PHP, which is what I have to deal with at work.
tvw has joined #ruby
<z64> berndl: i am sorry
<ytti> PHP is horrible, OO languages offer nice name space for methods naturally
<antoniobeyah> hmm, might have to checkout elixir for my upcoming project. had looked it it a while back but that link is compelling
<ytti> so finding the method you need is easy
lmc_ has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti> elixir really has nothing to do with ruby, 5s look might give impression that you can somehow leverage ruby experience on it, but you can't
jenrzzz has quit [Ping timeout: 265 seconds]
<ytti> you still need to 'get' functional programming
frozengeek has quit [Quit: frozengeek]
nullobject has joined #ruby
<ytti> which is the largest difficulty in my experience
<z64> yeah. i've been trying to pick up haskell.. for quite some time now :I
frozengeek has joined #ruby
<berndl> Nah, that's easy.
<antoniobeyah> yeah I don’t expect that, just a better alternative to clojure for me ;)
<antoniobeyah> clojure I just don’t get
<antoniobeyah> elixir seems a bit more approachable
manjaro-kde5- has quit [Ping timeout: 260 seconds]
lmc has quit [Ping timeout: 250 seconds]
<berndl> I like the ontology of the Haskell libraries.
hutch34 has quit [Quit: WeeChat 1.5]
nadir has joined #ruby
<z64> i think everything haskell is cool af lol. i'm in #haskell, read it all the time even though i don't get any of it.
<antoniobeyah> lol
ryan_notabot has quit [Ping timeout: 250 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
antoniobeyah has quit [Quit: antoniobeyah]
jenrzzz has joined #ruby
OTORelic2 has quit [Ping timeout: 265 seconds]
Jayson_Virissimo has joined #ruby
nullobject has quit [Quit: WeeChat 1.5]
<z64> ytti: *lowkey follow on github* cool stuff :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<doberman> okay folks its time for me to go home, and relax watching netflix, cya later
<z64> o/
aryaching has joined #ruby
doberman has quit [Quit: Page closed]
sdothum has joined #ruby
jhack has quit [Quit: jhack]
Joufflu_ has quit [Quit: Leaving]
nullobject has joined #ruby
Kazlock has joined #ruby
mt_ has quit [Ping timeout: 240 seconds]
dnicole has joined #ruby
konsolebox has quit [Quit: Leaving]
lmc_ has quit [Remote host closed the connection]
lmc has joined #ruby
frozengeek has quit [Quit: frozengeek]
<tekeli-li> aww, all the cool kids are leaving :(
frozengeek has joined #ruby
<z64> i'll have you know, i've been freezing in my office all day :(
ryan_notabot has joined #ruby
<berndl> z64: Are you in Canada?
<z64> nooo haha. massachusetts.
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<berndl> I have some colleagues from Winnipeg telling me it was -32 Celsius yesterday.
<z64> lol no ty
<berndl> I think that's awesome.
dnicole has quit [Ping timeout: 258 seconds]
<z64> whats the climate like where you are? i've been living with the new england weather for the 23 years of my life and am ready to move south now. xD
<berndl> I live in Berlin. It's 2 degrees outside.
lmc has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
<z64> ahhh
<berndl> I've lived in the tropics most of my life. I'm ready to move norht.
<berndl> *north.
<berndl> I guess Berlin is fairly north already.
<z64> yeah. it was about that cold today. i don't mind it, but my office is poorly heated.. not good for typing fingers
naprimer_2 has joined #ruby
benlieb has quit [Quit: benlieb]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> yeah it's not tropic for sure :>
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer has quit [Read error: Connection reset by peer]
<ytti> it's 4c outside, and i ran out of heating oil last week
ryan_notabot has quit [Ping timeout: 250 seconds]
<ytti> can't be arsed to buy more as i'm moving this weekend
AgentVenom has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shayan has quit [Quit: shayan]
TPug has joined #ruby
face has quit [Read error: Connection reset by peer]
face has joined #ruby
jdawgaz has joined #ruby
sdothum has joined #ruby
pwnd_nsfw` has joined #ruby
<tekeli-li> What is meant by "Symbols are not lightweight Strings"? As I understand the example, it shows that two string literals are unique objects even though they contain the same text.
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<berndl> I'm not sure what they mean either.
hightower3 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
CloCkWeRX has joined #ruby
<havenwood> tekeli-li: If you use identity comparison you can see that two seemingly identical strings aren't: ''.equal? '' #=> false
<havenwood> tekeli-li: That's similar to saying: ''.object_id == ''.object_id #=> false
hightower2 has quit [Ping timeout: 260 seconds]
<berndl> Equality is always a delicate topic in programming languages.
<havenwood> tekeli-li: If one is modified it doesn't modify the other.
<havenwood> tekeli-li: You wouldn't want adding data to one empty string to add data to all empty strings.
arthurl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<berndl> >> 1.object_id == 1.object_id
<ruby[bot]> berndl: # => true (https://eval.in/697633)
<berndl> So I guess numerals are different that strings.
<havenwood> tekeli-li: Note if you freeze the strings it's different: ''.freeze.equal? ''.freeze #=> true
<berndl> It seems weird to me.
<havenwood> >> 1.frozen? # berndl
<ruby[bot]> havenwood: # => true (https://eval.in/697634)
<berndl> 1 is always frozen, but '' is not?
<berndl> That is counterintuitive.
<havenwood> >> ''.frozen?
<ruby[bot]> havenwood: # => false (https://eval.in/697635)
<tekeli-li> berndl, Not a ruby expert, but in some languages only one copy of simple atoms is kept in memory, and all references point to that single instance.
<z64> well i think that makes sense, no? a string object is mutable, where.. what would you mutate an integral to? it would just be *another* integral
<havenwood> berndl: How would you modify 1 itself? What would unfreezing it mean?
<berndl> havenwood: How would you modify '' itself?
hi-from-velope-o has quit [Remote host closed the connection]
<havenwood> >> '' << 'stuff' # berndl
<ruby[bot]> havenwood: # => "stuff" (https://eval.in/697636)
h1fuelcell has joined #ruby
<berndl> 'stuff' and '' are different, just like 1 and 2 are different.
<tekeli-li> havenwood, Thanks for the informative answer. Hope my appreciation for it will deepen as I learn more. :)
<z64> right. but the containers for that string data aren't constant (yet, i believe)
<havenwood> berndl: The first empty string is being mutated. It's the same string it was, starting at the same place in memory, just with different content.
<berndl> So basically this is a ruby idiosyncracy.
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> berndl: As you shovel onto a string it will grow as it passes its initial bounds.
<z64> eventually all string literals will be frozen in 3.X
<z64> if i remember right
<havenwood> berndl: Well, strings are mutatable in Ruby. In Ruby 3 they'll be frozen.
<havenwood> mutable*
<berndl> That's good.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<berndl> It bugs me when low-level details like the memory model leak into the language constructs.
<havenwood> berndl: It's not a leak. Some things are mutable and some are immutable.
BrianJ has joined #ruby
<berndl> But mutability is defined in terms of memory.
Asher has joined #ruby
h1fuelcell has quit [Ping timeout: 250 seconds]
reverberations has joined #ruby
<havenwood> berndl: Sometimes you need to care about memory. For example, Ruby 2.4 lets you set the initial capacity for a String so as it grows it doesn't have to keep expanding its bounds.
antoniobeyah has joined #ruby
koooge has joined #ruby
<havenwood> berndl: String.new capacity: 100_000_000_000_000 # Virtual Memory Size: 90.95 TB
<z64> nice
<berndl> If I need to care about memory, I'd switch to a systems language like C.
<havenwood> berndl: This way you don't have to.
<havenwood> berndl: It works in the simple case, and there are tools to make it also work for heavy lifting. You don't have to know about them but they're there.
<berndl> I understand. I just don't like it though.
matp has quit [Read error: Connection reset by peer]
polishdub has quit [Quit: Leaving]
<havenwood> Here's another trick with frozen strings, just for fun:
<havenwood> >> s = -''; s.frozen?
<ruby[bot]> havenwood: # => true (https://eval.in/697637)
Anonymoose2 has quit [Ping timeout: 268 seconds]
enilsen16 has quit [Quit: enilsen16]
<berndl> So negating a string freezes it?
<havenwood> >> s = ''.freeze; s = +s; s.frozen?
<ruby[bot]> havenwood: # => false (https://eval.in/697638)