apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
<j416> Nilium: yeah, probably cleaner
<j416> e.g. [1, 2, 3].flat_map { |e| e == 2 ? [4, 5] : e }
<Nilium> Pretty much.
<j416> hightower2: why do you not want to call flatten?
nankyokusei has joined #ruby
<hightower2> j416, I was trying to find a solution that doesn't iterate over the whole array again, and also one that does not create a new array
myntcake has quit [Quit: Leaving]
<j416> hightower2: how large is that array anyway?
<Nilium> That's probably something you should profile before deciding it's important.
rajdesai has quit [Ping timeout: 260 seconds]
rajdesai has joined #ruby
<j416> also, if speed is that important, perhaps Ruby is not the best choice afterall?
Sirithcam has joined #ruby
enterprisey has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
sanmi has joined #ruby
firstdayonthejob has quit [Ping timeout: 246 seconds]
swills has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
csk has joined #ruby
nonnatus has joined #ruby
sanmi has quit [Ping timeout: 260 seconds]
csk has quit [Ping timeout: 260 seconds]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
rajdesai has quit [Ping timeout: 256 seconds]
enterprisey has quit [Remote host closed the connection]
sanmi has joined #ruby
charliesome has joined #ruby
kechja has quit [Ping timeout: 246 seconds]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kith has quit [Ping timeout: 252 seconds]
wpostma1 has joined #ruby
rafadc has quit [Ping timeout: 246 seconds]
Winghaven has quit []
LoneHerm_ has joined #ruby
rafadc has joined #ruby
ineb has joined #ruby
dangeranger has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ace05 has quit [Remote host closed the connection]
rafadc has quit [Ping timeout: 268 seconds]
rafadc has joined #ruby
A5101 has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
rafadc has joined #ruby
ta_ has joined #ruby
Sirithcam has quit [Ping timeout: 244 seconds]
sanmi has quit [Quit: Leaving]
rafadc has quit [Ping timeout: 265 seconds]
rafadc has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhollinger has quit [Ping timeout: 260 seconds]
Satyajit has joined #ruby
wald0 has quit [Quit: Lost terminal]
rafadc has quit [Ping timeout: 245 seconds]
biberu has quit []
charliesome has joined #ruby
dhollinger has joined #ruby
rafadc has joined #ruby
alxgsv has joined #ruby
rafadc has quit [Ping timeout: 256 seconds]
kirun has quit [Quit: Konversation terminated!]
rafadc has joined #ruby
Rodya_ has quit [Remote host closed the connection]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
nonnatus has joined #ruby
bobot has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
zel has joined #ruby
zel is now known as Guest53319
ta_ has quit [Ping timeout: 268 seconds]
kechja has joined #ruby
rfoust has joined #ruby
marr has quit [Ping timeout: 260 seconds]
andy_o has joined #ruby
kechja has quit [Ping timeout: 246 seconds]
andy_o has quit [Ping timeout: 260 seconds]
elifoster has quit [Ping timeout: 246 seconds]
wpostma1 has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
leandre has joined #ruby
bronson has quit [Read error: Connection reset by peer]
bronson_ has joined #ruby
jhack has joined #ruby
leandre has quit [Client Quit]
nankyokusei has quit [Ping timeout: 260 seconds]
ixti has joined #ruby
buglessdr has quit [Quit: Leaving]
bobot has quit []
jhack has quit [Quit: jhack]
nuck has joined #ruby
muelleme has joined #ruby
terens has joined #ruby
ace05 has joined #ruby
quazimodo has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 268 seconds]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
harai has quit [Ping timeout: 245 seconds]
nonnatus has joined #ruby
Azure has joined #ruby
nonnatus has quit [Client Quit]
Rodya_ has joined #ruby
araujo has quit [Ping timeout: 248 seconds]
dviola has quit [Quit: WeeChat 1.6]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
nonnatus has joined #ruby
Rodya_ has quit [Ping timeout: 258 seconds]
hybridsole has joined #ruby
zeroDi has quit [Quit: WeeChat 1.6]
byte512 has quit [Ping timeout: 248 seconds]
kies has quit [Remote host closed the connection]
Dimik has joined #ruby
Axy has quit [Read error: Connection reset by peer]
harrisi has quit [Quit: leaving]
kies has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Dimik has quit [Ping timeout: 256 seconds]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
araujo has joined #ruby
jcao219_ has joined #ruby
jcao219_ is now known as jcao219
honore has joined #ruby
quazimodo has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 260 seconds]
wpostma1 has joined #ruby
charliesome has joined #ruby
quazimodo has joined #ruby
honore has quit [Read error: Connection reset by peer]
mipesom has quit [Ping timeout: 258 seconds]
nonnatus has joined #ruby
mipesom has joined #ruby
leandre has joined #ruby
leandre has left #ruby [#ruby]
Dimik has joined #ruby
nonnatus has quit [Client Quit]
ta_ has joined #ruby
nonnatus has joined #ruby
honore has joined #ruby
webguynow has quit [Ping timeout: 260 seconds]
webguynow has joined #ruby
honore has quit [Quit: Textual IRC Client: www.textualapp.com]
leandre has joined #ruby
leandre has left #ruby [#ruby]
honore has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
Dimik has quit []
d^sh_ has joined #ruby
konsolebox has joined #ruby
d^sh has quit [Ping timeout: 250 seconds]
ace05 has quit [Remote host closed the connection]
elifoster has joined #ruby
dar123 has joined #ruby
ixti has quit [Quit: WeeChat 1.6]
eljimbo has quit [Quit: This computer has gone to sleep]
borodin has joined #ruby
skavez has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
araujo has quit [Ping timeout: 260 seconds]
troys_ is now known as troys
tau has joined #ruby
coffeecupp has joined #ruby
coffeecupp has quit [Client Quit]
troys is now known as troys_
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
nonnatus has joined #ruby
nankyokusei has joined #ruby
optiz0r has quit [Ping timeout: 256 seconds]
nonnatus has quit [Client Quit]
Littlemyu has joined #ruby
skavez has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 252 seconds]
tau has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
Joufflu has quit [Quit: Leaving]
jackjackdripper has joined #ruby
ace05 has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
dhollinger has quit [Ping timeout: 248 seconds]
dhollinger has joined #ruby
agent_white has quit [Quit: backsoon]
Jameser has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
araujo has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
hanmac has joined #ruby
xlegoman has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has quit [Ping timeout: 240 seconds]
wpostma1 has quit [Ping timeout: 268 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
webguynow has quit [Ping timeout: 244 seconds]
webguynow has joined #ruby
jrp has joined #ruby
agent_white has joined #ruby
malcolmva has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
f0rpaxe has quit [Ping timeout: 245 seconds]
cyphase has quit [Ping timeout: 256 seconds]
LoneHerm_ has joined #ruby
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
f0rpaxe has joined #ruby
harai has joined #ruby
LoneHerm_ has quit [Ping timeout: 248 seconds]
dar123 has joined #ruby
dar123 has quit [Client Quit]
malcolmva has joined #ruby
LoneHerm_ has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
harai has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
JoshS has quit [Ping timeout: 258 seconds]
MrBusiness2 has quit [Quit: https://www.youtube.com/watch?v=xIIqYqtR1lY -- Suicide is Painless - Johnny Mandel]
LoneHerm_ has quit [Ping timeout: 245 seconds]
jrp has quit [Quit: Leaving]
harai has joined #ruby
elifoster has quit [Ping timeout: 265 seconds]
redpants has joined #ruby
enterprisey has joined #ruby
function has joined #ruby
ace05 has joined #ruby
Dimik has joined #ruby
Dimik has quit [Client Quit]
Dimik has joined #ruby
Dimik has quit [Client Quit]
cyphase has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
rfoust has joined #ruby
creat has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
wpostma1 has joined #ruby
chadwtaylor has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
nankyokusei has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
chadwtaylor has quit [Remote host closed the connection]
MrBusiness has joined #ruby
Tempesta_ has quit [Quit: See ya!]
cyphase has joined #ruby
MrBusiness is now known as Guest99705
harai has quit [Ping timeout: 256 seconds]
A5101 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
gix has quit [Ping timeout: 240 seconds]
nonnatus has joined #ruby
cyphase has quit [Ping timeout: 256 seconds]
gix has joined #ruby
arescorpio has quit [Quit: Leaving.]
JoshS has joined #ruby
cyphase has joined #ruby
SteenJobs has joined #ruby
matp_ has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Remote host closed the connection]
matp has joined #ruby
ta_ has joined #ruby
optiz0r has joined #ruby
spectrum has quit [Quit: Oh Shidd]
zacts has quit [Ping timeout: 240 seconds]
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh has joined #ruby
araujo has quit [Ping timeout: 260 seconds]
BlueDragons has joined #ruby
JoshS has quit [Ping timeout: 260 seconds]
araujo has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 258 seconds]
araujo has quit [Max SendQ exceeded]
tuxaddicted has quit [Ping timeout: 248 seconds]
troys_ is now known as troys
honore has quit [Quit: honore]
araujo has joined #ruby
Azure has joined #ruby
blackbombay has joined #ruby
araujo has quit [Max SendQ exceeded]
redpants has quit [Quit: leaving]
function has quit [Quit: found 1 in /dev/zero]
conta has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
MrBusiness2 has joined #ruby
function has joined #ruby
conta has quit [Ping timeout: 256 seconds]
matp has quit [Quit: ZZzzzZz...]
araujo has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: peaceee]
function has quit [Client Quit]
Guest99705 has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
harai has joined #ruby
bikram_ has quit [Quit: Lost terminal]
bikram__ has quit [Quit: Lost terminal]
ace05 has quit [Ping timeout: 256 seconds]
rohit has joined #ruby
tuxaddicted has joined #ruby
Jameser has joined #ruby
bitcycle has joined #ruby
BlueDragons has quit [Ping timeout: 268 seconds]
<bitcycle> Hey all. Could someone here help me understand how I might break up a large single file web app into multiple files? I've got a Sinatra app with lots of handlers that I wanted to break into their own files ... but I don't know if I should use modules, or ... something else?
JoshS has joined #ruby
jshjsh has quit [Disconnected by services]
JoshS is now known as jshjsh
arnonhongklay has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
colstrom has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
the-eat-scout has quit [Ping timeout: 260 seconds]
Iacobus_ has quit [Ping timeout: 260 seconds]
dmnd has quit [Ping timeout: 260 seconds]
troter__________ has quit [Ping timeout: 250 seconds]
AdamMeghji__ has quit [Ping timeout: 256 seconds]
olivierjanss has quit [Ping timeout: 258 seconds]
ramblinpeck has quit [Ping timeout: 260 seconds]
gmci has quit [Ping timeout: 250 seconds]
amitchellbullard has quit [Ping timeout: 256 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tycoon177 has quit [Ping timeout: 260 seconds]
SnowboardTechie has joined #ruby
arnonhongklay has joined #ruby
SnowboardTechie has quit [Quit: leaving]
harai has quit [Ping timeout: 245 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
c355e3b has quit [Quit: Connection closed for inactivity]
bonerwad has left #ruby ["WeeChat 1.6"]
dionysus69 has quit [Remote host closed the connection]
kechja has joined #ruby
arnonhongklay has quit [Ping timeout: 260 seconds]
AdamMeghji__ has joined #ruby
the-eat-scout has joined #ruby
colstrom has joined #ruby
troter__________ has joined #ruby
dmnd has joined #ruby
olivierjanss has joined #ruby
amitchellbullard has joined #ruby
Iacobus_ has joined #ruby
ramblinpeck has joined #ruby
gmci has joined #ruby
tycoon177 has joined #ruby
Jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
spectrum has joined #ruby
spectrum has quit [Client Quit]
ddffg has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
A5101 has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
while{} has joined #ruby
ta_ has joined #ruby
troys has quit [Quit: Bye]
zacts has joined #ruby
Littlemyu has quit [Ping timeout: 248 seconds]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Littlemyu has joined #ruby
nonnatus has joined #ruby
nonnatus has quit [Client Quit]
pilne has quit [Quit: Quitting!]
ace05 has joined #ruby
nonnatus has joined #ruby
nonnatus has quit [Client Quit]
harai has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
gizmore has joined #ruby
conta has joined #ruby
agent_white has quit [Quit: brb]
ace05 has quit [Ping timeout: 244 seconds]
harai has quit [Ping timeout: 268 seconds]
lxsameer has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
harai has joined #ruby
conta has quit [Ping timeout: 245 seconds]
jinie has quit [Quit: ZNC 1.6.1 - http://znc.in]
while{} has quit [Ping timeout: 258 seconds]
jinie has joined #ruby
harai has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
pwnd_nsfw` has joined #ruby
Axy has joined #ruby
dionysus69 has joined #ruby
pwnd_nsfw has quit [Ping timeout: 258 seconds]
Mia has quit [Ping timeout: 248 seconds]
DTZUZU has quit [Quit: WeeChat 1.5]
muelleme has joined #ruby
rohit has quit [Quit: Leaving]
pawnbox has joined #ruby
pwnd_nsfw has joined #ruby
muelleme has quit [Ping timeout: 244 seconds]
palms has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
terlar has joined #ruby
pwnd_nsfw` has joined #ruby
yardenbar has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
nchambers^ has joined #ruby
dtscode has quit [Quit: dtscode]
codfection has quit [Remote host closed the connection]
nchambers^ is now known as telnet
pwnd_nsfw has quit [Ping timeout: 245 seconds]
TrumpIsNaziScum has joined #ruby
<TrumpIsNaziScum> hello everyone
<gizmore> par cayo ul tok
<gizmore> my new spell system is almost 1:1 dungeon master :)
<gizmore> just new and more runes
<TrumpIsNaziScum> wat
harai has joined #ruby
bikram_ has joined #ruby
enterprisey has quit [Quit: Leaving]
rje4242 has joined #ruby
rje4242 has left #ruby [#ruby]
rje4242 has joined #ruby
rje4242 has left #ruby [#ruby]
jenrzzz has quit [Ping timeout: 265 seconds]
jackjackdripper has joined #ruby
<baweaver> !badnick TrumpIsNaziScum
TrumpIsNaziScum was kicked from #ruby by ruby[bot] [nickname is not suitable for this channel, see http://ruby-community.com/pages/user_rules]
<baweaver> au revouis
harai has quit [Ping timeout: 268 seconds]
ace05 has joined #ruby
nankyokusei has joined #ruby
tau has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
ace05 has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 258 seconds]
rajdesai has joined #ruby
rajdesai has quit [Read error: Connection reset by peer]
rajdesai has joined #ruby
elifoster has joined #ruby
djbkd has joined #ruby
poikon has quit [Ping timeout: 240 seconds]
Salih has quit [Quit: Leaving]
vuoto has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
poikon has joined #ruby
nobitanobi has joined #ruby
LoneHerm_ has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
jgt1 has joined #ruby
bitcycle has quit [Ping timeout: 268 seconds]
nchambers has quit [Disconnected by services]
telnet is now known as nchambers
rajdesai has quit [Remote host closed the connection]
lenwood has joined #ruby
rajdesai has joined #ruby
while{} has joined #ruby
ace05 has joined #ruby
gingray has joined #ruby
bluOxigen has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ace05 has quit [Remote host closed the connection]
rajdesai has quit [Ping timeout: 245 seconds]
blackbombay has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
gusrub_ has joined #ruby
while{} has quit [Ping timeout: 248 seconds]
gusrub_ has quit [Client Quit]
Ishido has joined #ruby
nobitanobi has quit [Remote host closed the connection]
blackbombay has joined #ruby
while{} has joined #ruby
ta_ has joined #ruby
dreinull has quit [Remote host closed the connection]
gingray has quit [Quit: leaving]
gingray has joined #ruby
dreinull has joined #ruby
gingray has quit [Client Quit]
gingray has joined #ruby
gingray has quit [Client Quit]
gingray has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
rafadc has quit [Ping timeout: 268 seconds]
LoneHermit has joined #ruby
rafadc has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
vuoto has quit [Remote host closed the connection]
kechja has quit [Quit: Ex-Chat]
claudiuinberlin has joined #ruby
Tempesta has joined #ruby
Derperperd has joined #ruby
firstdayonthejob has joined #ruby
ace05 has joined #ruby
ace05 has quit [Remote host closed the connection]
xsdg has quit [Ping timeout: 256 seconds]
kent\n has quit [Ping timeout: 240 seconds]
rohit has joined #ruby
xsdg has joined #ruby
kent\n has joined #ruby
ace05 has joined #ruby
blackbombay has quit [Ping timeout: 268 seconds]
palms has quit [Ping timeout: 260 seconds]
rajdesai has joined #ruby
nadir has quit [Ping timeout: 246 seconds]
ur5us has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nadir has joined #ruby
jgt1 has quit [Quit: WeeChat 1.4]
CloCkWeRX has joined #ruby
rajdesai has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
poikon has quit [Ping timeout: 258 seconds]
while{} has quit [Ping timeout: 268 seconds]
blackbombay_ has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
Pongles has joined #ruby
f0rpaxe has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
rajdesai has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
poikon has joined #ruby
rippa has joined #ruby
djbkd has joined #ruby
nankyokusei has joined #ruby
<Pongles> Hi there, I am having some ssl error issues with ruby gems. I have found this help document https://gist.github.com/luislavena/f064211759ee0f806c88 on the issue however it's for Ruby Gem versions 2.2.x or older and I am using version 2.4.5.1. Can anyone point me in the right direction to fix this?
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
blackbombay_ has quit [Ping timeout: 240 seconds]
A5101 has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
mtkd has joined #ruby
beawesomeinstead has quit [Ping timeout: 250 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nadir has quit [Ping timeout: 256 seconds]
f0rpaxe has joined #ruby
muelleme has joined #ruby
poikon has quit [Ping timeout: 258 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 260 seconds]
<Pongles> I updated it to 2.6.8 manually and the issue appears to be resolved
<Pongles> I have a new error, but at least it's not the old error
_djbkd has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
beawesomeinstead has joined #ruby
nadir has joined #ruby
f0rpaxe has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
poikon has joined #ruby
f0rpaxe has joined #ruby
beawesomeinstead has quit [Ping timeout: 268 seconds]
beawesomeinstead has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
rafadc has joined #ruby
harfangk has joined #ruby
alexherbo2 has joined #ruby
rafadc has quit [Ping timeout: 246 seconds]
blackbombay has quit [Quit: WeeChat 1.5]
rajdesai has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
rafadc has joined #ruby
blackbombay has quit [Client Quit]
nanoz has joined #ruby
blackbombay has joined #ruby
f0rpaxe has left #ruby [#ruby]
blackbombay has quit [Changing host]
blackbombay has joined #ruby
blackbombay has quit [Client Quit]
blackbombay has joined #ruby
Robtop__ has joined #ruby
boadie_ has joined #ruby
honore has joined #ruby
rafadc has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
boadie has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
blackbombay has quit [Client Quit]
blackbombay has joined #ruby
rafadc has joined #ruby
matp has joined #ruby
symm- has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
matp has quit [Quit: ZZzzzZz...]
Sirithcam has joined #ruby
Devalo has joined #ruby
harai has joined #ruby
ace05 has quit [Remote host closed the connection]
jcao219_ has joined #ruby
blackbombay has quit [Quit: testing]
blackbombay has joined #ruby
jcao219 has quit [Ping timeout: 260 seconds]
rohit has quit [Ping timeout: 244 seconds]
pwnd_nsfw` has joined #ruby
conta has joined #ruby
Robtop__ has quit [Ping timeout: 240 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
doublemalt__ has joined #ruby
honore has quit [Quit: honore]
honore has joined #ruby
ur5us has quit [Remote host closed the connection]
doublemalt__ has quit [Quit: Leaving]
conta has quit [Ping timeout: 260 seconds]
TehGrub has joined #ruby
ruby-lang405 has joined #ruby
Savage has joined #ruby
<Savage> im alive
<Pongles> are you?
<Savage> yeah
<Pongles> cool
TehGrub has left #ruby [#ruby]
futilegames has joined #ruby
<ruby-lang405> .
Silthias1 has quit [Ping timeout: 244 seconds]
shiru has joined #ruby
<Pongles> ..
Silthias has joined #ruby
ruby-lang405 has quit [Ping timeout: 260 seconds]
shiru has quit [Remote host closed the connection]
martynas_ has joined #ruby
cajone has left #ruby [#ruby]
honore has quit [Changing host]
honore has joined #ruby
Guest53319 has quit [Ping timeout: 256 seconds]
Satyajit has quit [Ping timeout: 256 seconds]
alxgsv has quit [Ping timeout: 240 seconds]
cibs has quit [Ping timeout: 268 seconds]
cjk101010 has quit [Ping timeout: 260 seconds]
disavowed has quit [Quit: ¯\_(ツ)_/¯]
cibs has joined #ruby
xrlk has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 256 seconds]
cajone has joined #ruby
futilegames has quit [Quit: futilegames]
Silthias has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
cjk101010 has joined #ruby
Jackneill_ has joined #ruby
aidalgol has quit [Quit: zZzZZzz]
_djbkd has joined #ruby
matp has joined #ruby
dionysus69 has quit [Remote host closed the connection]
_djbkd has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
jarred has joined #ruby
miqlas-H has joined #ruby
djbkd has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
blackbom1 has joined #ruby
djbkd has joined #ruby
SCHAAP137 has joined #ruby
igniting has joined #ruby
djbkd_ has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
toretore has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
dinoangelov has joined #ruby
Littlemyu_ has joined #ruby
dinoangelov has quit [Client Quit]
nankyokusei has joined #ruby
Littlemyu has quit [Ping timeout: 244 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby
jcao219_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
optiz0r has quit [Quit: Leaving]
optiz0r has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
govg has quit [Ping timeout: 244 seconds]
rohit has joined #ruby
bartek has joined #ruby
martynas_ has quit [Ping timeout: 260 seconds]
jackneill__ has joined #ruby
hightower3 has quit [Ping timeout: 252 seconds]
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
Jackneill_ has quit [Ping timeout: 260 seconds]
govg has joined #ruby
kith has joined #ruby
shiru has joined #ruby
Littlemyu_ has quit [Ping timeout: 268 seconds]
cibs has quit [Ping timeout: 268 seconds]
symm- has quit [Ping timeout: 268 seconds]
zeroDi has joined #ruby
shiru has quit [Remote host closed the connection]
cibs has joined #ruby
symm- has joined #ruby
minimalism has quit [Quit: minimalism]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Kendos-Kenlen has joined #ruby
<Kendos-Kenlen> Hi :)
<Kendos-Kenlen> I'm trying to run a ruby script using "bundle exec" on windows, but I have the error "bundle: not executable". I don't really understand the problem as it perfeclty work on linux ...
miqlas-H has quit [Read error: Connection reset by peer]
leitz has joined #ruby
rohit has quit [Quit: Leaving]
conta has joined #ruby
<Kendos-Kenlen> mmmh
conta has quit [Remote host closed the connection]
conta has joined #ruby
martynas_ has joined #ruby
<bikram_> exit
<bikram_> exit
bikram_ has quit [Quit: Lost terminal]
conta has quit [Ping timeout: 250 seconds]
palms has joined #ruby
honore has quit [Quit: zzz]
aswen has joined #ruby
aswen has quit [Client Quit]
palms has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
Silthias has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
brendan- has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
futilegames has joined #ruby
futilegames has left #ruby [#ruby]
djbkd has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
djbkd has quit [Ping timeout: 246 seconds]
Silthias has joined #ruby
<leitz> Compiled Ruby 2.3.1p112 from source, trying to use gem to install a MongoDB driver. Getting "ERROR: Loading command: install (LoadError) cannot load such file -- zlib" but server has base zlib installed.
jshjsh has quit [Ping timeout: 258 seconds]
miqlas-H has joined #ruby
<leitz> Suggestions? Is there a separate gem/Ruby zlib to be compiled?
terlar has quit [Ping timeout: 248 seconds]
ace05 has joined #ruby
Helheim has quit [Remote host closed the connection]
harfangk has quit [Ping timeout: 245 seconds]
<toretore> leitz: did you have zlib installed when building ruby?
claudiuinberlin has quit [Remote host closed the connection]
harfangk has joined #ruby
Silthias has quit [Ping timeout: 246 seconds]
tk__ has joined #ruby
<toretore> leitz: zlib is part of stdlib, compiled along with ruby core
Silthias has joined #ruby
<leitz> toretore, yes, it was already there.
<leitz> zlib, that is.
<leitz> I let RUby install itself via "make install" as root.
zeroDi has quit [Quit: WeeChat 1.6]
Vile` has joined #ruby
<leitz> Redoing the configure and make, this time with a log.
<leitz> Ah, getting a bunch of "Failed to configure", to include dbm, tk, readline, and zlib.
chadwtaylor has joined #ruby
<leitz> Does the configure have to be run as root, too?
<leitz> Or can newer ruby versions not use older zlibs?
c355e3b has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 256 seconds]
daed has joined #ruby
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
sdothum has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
Xeago has quit [Quit: ZNC 1.6.3 - http://znc.in]
Silthias has joined #ruby
Xeago has joined #ruby
jarred has quit [Quit: Connection closed for inactivity]
lxsameer has quit [Quit: WeeChat 1.5]
akira_ has joined #ruby
GodFather has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
brendan- has joined #ruby
GodFather has quit [Client Quit]
symm- has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bumao has quit [Ping timeout: 246 seconds]
nonnatus has joined #ruby
brendan- has joined #ruby
blackbom1 has quit [Quit: WeeChat 1.5]
AlexRussia has joined #ruby
blackbombay has joined #ruby
bumao has joined #ruby
d0nn1e has quit [Ping timeout: 245 seconds]
d0nn1e has joined #ruby
pandaant has quit [Remote host closed the connection]
Devalo has joined #ruby
Silthias has quit [Read error: Connection timed out]
Devalo has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 250 seconds]
Devalo has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
AlexRussia has joined #ruby
ptx0 is now known as kash
Puffball has quit [Remote host closed the connection]
kash is now known as d[^_^]b
Devalo has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dviola has joined #ruby
chadwtaylor has quit [Remote host closed the connection]
Puffball has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
harfangk has quit [Ping timeout: 265 seconds]
pilne has joined #ruby
bartek has quit [Ping timeout: 250 seconds]
SCHAAP137 has quit [Quit: Leaving]
harfangk has joined #ruby
mtkd has quit [Ping timeout: 256 seconds]
dinoangelov has joined #ruby
pragmaticus has joined #ruby
achamian has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Puffball_ has joined #ruby
martynas_ has quit [Ping timeout: 246 seconds]
Puffball has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
futilegames has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
workmad3 has joined #ruby
achamian has quit []
jaguarmagenta has joined #ruby
futilegames has quit [Quit: futilegames]
workmad3 has quit [Ping timeout: 258 seconds]
ag4ve has joined #ruby
<ag4ve> what's the: (foo ? bar : baz) operation called?
<apeiros> ternary
<ag4ve> not sure if it's documented or a bug, but it appears you can't start a new line w/ the '?' or ':' - you can end the line w/ it though
<apeiros> technically it just means an operator with 3 operands, so there could be other ternary expressions. but in practice, that's the most often used and hence the one referred to as "ternary"
<apeiros> ag4ve: the statement on the previous line is complete without the ?, so I'm not surprised by that. I'm a bit surprised by the :, though.
<ag4ve> works in perl and c
<apeiros> actually it seems your claim is incorrect. I can fold the : to the next line just fine.
<ag4ve> well, i didn't try it w/ just the :
<apeiros> you forgot that C terminates its statements explicitly with ;
<apeiros> newlines are just whitespace to it.
<ag4ve> i generally start lines w/ ? and : when doing that so they stand out like an if statement etc
gizmore has quit [Ping timeout: 248 seconds]
<ag4ve> mmmm guess perl does too
gizmore has joined #ruby
<ag4ve> so i guess that makes sense
<apeiros> ruby *could* do it by looking ahead (started to do so for `.method` calls)
<ag4ve> that's probably a good thing
<ag4ve> wrt methods
<apeiros> define "good". it makes the syntax more complex.
<apeiros> and for me to read I find it harder too. means I have to read ahead too and can't make a conclusion at the end of the line.
j2k has joined #ruby
<apeiros> it does look nicer. but it reads harder IMO.
tk__ has quit [Quit: ばいばい]
Puffball_ has quit [Remote host closed the connection]
djbkd has joined #ruby
<ag4ve> it makes the code more obvious if you have: thing(blah).add(9).subtract(2).multiply(100).etc()
<ag4ve> so you have each method on a newline
<ag4ve> and then it's quite easy to see wtf is happening at a glanse
<Mon_Ouie> You could do that before too, just go to a new line after the '.'
<apeiros> ^
Puffball has joined #ruby
<ag4ve> meh, i guess it's not a big improvement then, but seeing a .thing() starting a line is faster to spot methods w/ than ending lines w/ them
<apeiros> also if you chain tons of methods and it becomes unreadable mess - maybe assign to a variable once in a while so the partial results get a name?
<apeiros> makes reading & understanding code a lot easier
<blackbombay> subjective stuff.
<ag4ve> probably
<ag4ve> i just don't like my parser determining my style for me
<ag4ve> (reason i don't really like python)
djbkd has quit [Ping timeout: 268 seconds]
ace05 has quit [Remote host closed the connection]
<apeiros> funny enough I disliked python for that too. by now I think it's actually a good idea :-/
<blackbombay> or a gofmt.
nankyokusei has joined #ruby
<blackbombay> so many wasteful style arguments.
<apeiros> yeah. at this point I care much more about consistent style than style fitting my preference.
<blackbombay> same here. id just let a tool decide and call it done, then focus on stuff that matters.
<ag4ve> i care about a workplace style guide, but generally don't care about community style decisions
<ag4ve> like, i don't really prefer js and haskell preferring the comma in a data structure beginning lines
<daed> i generally follow the standard ruby style guide
<ag4ve> and i end my lines w/ a comma like perl, python, ruby tent to do
<apeiros> daed: there's no such thing :)
Silthias has quit [Ping timeout: 256 seconds]
<daed> apeiros: then i will clarify with: https://github.com/bbatsov/ruby-style-guide
<apeiros> so s/standard/a popular/
<daed> yeah
<ag4ve> heh
Silthias has joined #ruby
<daed> the vast majority of this is preferable to me
nankyokusei has quit [Ping timeout: 240 seconds]
<daed> rubocop helps
shinnya has joined #ruby
<daed> though i find it needs tweaking in every project
kobain has joined #ruby
<ag4ve> linters are useless w/o tweaking
Sirithcam has quit [Ping timeout: 248 seconds]
bikram_ has joined #ruby
sagax has quit [Ping timeout: 260 seconds]
palms has joined #ruby
sagax has joined #ruby
<ag4ve> so not sure if there's a more appropriate doc for ternary expressions, but i'm not finding anything describing line breaks here: https://ruby-doc.org/core-2.2.0/doc/syntax/control_expressions_rdoc.html
<ag4ve> (and frankly, i'd prefer it be evaluated w/in the (....) block anyway)
<ag4ve> ie, not caring about when/where i put newlines
allcentury has joined #ruby
cats has quit [Remote host closed the connection]
cats has joined #ruby
<ag4ve> so should i consider this a bug?
<daed> i avoid ternary where possible entirely
<daed> decreases readability in my experience
<daed> but if i do use ternary, it's all on 1 line
<daed> result = some_condition ? something : something_else
<ag4ve> yeah, someone else made the same comment (about it being on one line for them) but again, not documented that way and i don't like a parser determining my style for me
blackbombay has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has joined #ruby
<daed> that's probably a tradeoff you get for not having an explicit ; everywhere
<ag4ve> also, i use it when i want a different if/else when not true the first time, ie: thing = (foo ? 0 : (bar ? 1 : 2))
<daed> oi, i never use nested ternary
<daed> last time i saw those was 7 years ago
<ag4ve> too much code to start new if/else w/in the else
<daed> in a php project, it was painful to work with
<ag4ve> hehe, never done php
<daed> nested ternary is frowned upon in my experience
<ag4ve> (one language i refuse to touch)
<ag4ve> they took perl, shoved a templating system w/in the language and fucked it up
<daed> nested ternary would never pass a code review anywhere i've worked lately
pwnd_nsfw has quit [Ping timeout: 258 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
muelleme has joined #ruby
nonnatus has joined #ruby
ace05 has joined #ruby
rkoller has joined #ruby
feast has joined #ruby
leitz has quit [Quit: Nappy time]
Devalo has joined #ruby
the_drow has joined #ruby
mtkd has joined #ruby
<ag4ve> i think that describes the issue (lmk or comment if not): https://bugs.ruby-lang.org/issues/12929
<daed> i'm not sure that's a bug, it's the same behavior with '.'
<ag4ve> i couldn't find the behavior documented
<ag4ve> if it's expected behavior, i'd expect documentation at least (it's a valid solution to the bug - not my preferred solution, but valid)
jhack has joined #ruby
<daed> "Newlines works as whitespace only when expressions obviously continues to the next line.
<daed> with ? and newline, it obviously continues
<daed> without the ?, it does not obviously continue
<daed> which also makes sense with "."
<ag4ve> foo = (bar
<daed> "test"<newline> .size
<ag4ve> is either a syntax err or needs to look farther
<daed> it is not obvious
<ag4ve> my point is w/in a (....) block, it should be obvious to read ahead
pilne has quit [Quit: Quitting!]
<ag4ve> if it can't figure it out by eof, it should give that annoying something or another bs error at eof
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ag4ve> (which iirc it currently does w/ ternary w/ the '?' after newline)
<daed> it gives me a syntax error
<daed> if i don't start the expression on the first line
<daed> that's just standard behavior in my experience
feast has left #ruby ["Leaving"]
Rodya_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jhack has quit [Quit: jhack]
bluOxigen has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby
bluOxigen has joined #ruby
benlieb has joined #ruby
martynas_ has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akira_ has quit [Quit: Leaving]
vuoto has joined #ruby
ryez has joined #ruby
dagda1_ has joined #ruby
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
aryaching has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
cdg has joined #ruby
dangeranger has joined #ruby
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dinoangelov has quit [Quit: (null)]
bougyman has quit [Ping timeout: 250 seconds]
redpants has joined #ruby
wpostma1 has quit [Ping timeout: 260 seconds]
konsolebox has quit [Remote host closed the connection]
Snowy has joined #ruby
cjk101010 has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
ponga has joined #ruby
rfoust has joined #ruby
nofxx has joined #ruby
palms has quit [Ping timeout: 260 seconds]
terlar has joined #ruby
wpostma1 has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
muelleme has quit [Ping timeout: 268 seconds]
bluOxigen has joined #ruby
bikram_ has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 260 seconds]
bougyman has joined #ruby
Devalo has quit [Remote host closed the connection]
bougyman is now known as Guest34150
bluOxigen has quit [Remote host closed the connection]
Devalo has joined #ruby
bluOxigen has joined #ruby
cjk101010 has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
Satyajit has joined #ruby
Devalo has quit [Ping timeout: 260 seconds]
wpostma1 has quit [Ping timeout: 260 seconds]
drzel has joined #ruby
ace05 has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 250 seconds]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
alxgsv has joined #ruby
conta has joined #ruby
nonnatus has joined #ruby
hightower3 has joined #ruby
conta has quit [Ping timeout: 256 seconds]
croberts has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
reverberations has joined #ruby
solocshaw has quit [Ping timeout: 240 seconds]
ace05 has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
shinnya has quit [Ping timeout: 245 seconds]
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Immune has quit [Ping timeout: 260 seconds]
mhib has joined #ruby
benlieb has quit [Quit: benlieb]
mhib has quit [Client Quit]
harai has joined #ruby
tuxaddicted has quit [Ping timeout: 260 seconds]
DLSteve has joined #ruby
solocshaw has joined #ruby
eljimbo has joined #ruby
fmcgeough has joined #ruby
tuxaddicted has joined #ruby
djbkd has joined #ruby
vuoto has quit [Remote host closed the connection]
rfoust has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
ag4ve has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 256 seconds]
h1d has joined #ruby
Silthias has joined #ruby
Channel6 has joined #ruby
dinoangelov has joined #ruby
ag4ve has joined #ruby
ag4ve has quit [Max SendQ exceeded]
Snowy has quit [Remote host closed the connection]
ag4ve has joined #ruby
ag4ve has quit [Max SendQ exceeded]
Snowy has joined #ruby
ag4ve has joined #ruby
Azure has joined #ruby
symm- has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.6]
Snowy has quit [Ping timeout: 250 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
vuoto has joined #ruby
j2k has joined #ruby
benlieb has joined #ruby
nankyokusei has joined #ruby
tvw has joined #ruby
Derperperd has quit [Quit: Derperperd]
Kendos-Kenlen has quit [Read error: No route to host]
jaguarmagenta has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 258 seconds]
solocshaw has quit [Ping timeout: 258 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
conta has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 258 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j2k has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
LoneHerm_ has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
aryaching has joined #ruby
c0mrad3 has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
rafadc has quit [Read error: Connection reset by peer]
JoshS has joined #ruby
Rodya_ has quit [Remote host closed the connection]
skweek has quit [Remote host closed the connection]
Derperperd has joined #ruby
skweek has joined #ruby
ruby has joined #ruby
dinoangelov has quit [Quit: (null)]
ruby is now known as Guest37071
allcentury has joined #ruby
lenwood has joined #ruby
ag4ve has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Remote host closed the connection]
rubirc has quit [Quit: Lost terminal]
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
Snowy has joined #ruby
arnonhongklay has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
lenwood has quit [Ping timeout: 265 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
dionysus69 has joined #ruby
rafadc has joined #ruby
elifoster has joined #ruby
vuoto has quit [Remote host closed the connection]
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Moosashi has joined #ruby
Devalo has joined #ruby
unshadow has joined #ruby
symm- has quit [Read error: Connection reset by peer]
blackwind_123 has joined #ruby
solocshaw has joined #ruby
<unshadow> Hi Guys, Does anyone have an idea why all OpenSSL messages (like protocol mismatch, unkownstate, etc..) are handled as Exceptions ? Also, why can't a socket.accept retry for a negotiation ? whey does a new connection and handeling has to be made ?
benlieb has quit [Quit: benlieb]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
nankyokusei has joined #ruby
symm- has joined #ruby
JeanCarloMachado has joined #ruby
palms has joined #ruby
ur5us has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
banisterfiend has joined #ruby
benlieb has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
dcluna has joined #ruby
dnicole_ has quit [Remote host closed the connection]
nonnatus has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
patteh_ has quit [Remote host closed the connection]
patteh has joined #ruby
queequeg1 has quit [Remote host closed the connection]
wpostma1 has joined #ruby
pawnbox has joined #ruby
benlieb has quit [Quit: benlieb]
kirun has joined #ruby
mlehrer has quit [Ping timeout: 248 seconds]
creat has quit [Quit: Leaving]
<ezio> Anyone good with mocks and stubs. I just have a very basic understanding miss in the ol' brain engine. So I THINK I want to stub out HTTP.request login_request ... is that ... correct?
zeroDi has joined #ruby
<ezio> L25
pawnbox_ has quit [Ping timeout: 252 seconds]
A5101 has joined #ruby
ur5us has joined #ruby
<ezio> or maybe I should be creating an alias method and stubbing that out?
ag4ve has joined #ruby
enterprisey has quit [Quit: Leaving]
blackwind_123 has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
ace05 has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
benlieb has quit [Quit: benlieb]
Capela has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
LoneHerm_ has quit [Remote host closed the connection]
byte512 has joined #ruby
LoneHerm_ has joined #ruby
last_staff has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
LoneHerm_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
pawnbox has joined #ruby
dcluna has quit [Read error: Connection reset by peer]
Guest37071 has quit []
dcluna has joined #ruby
<ag4ve> how do i pass the output of a function to a logger?
Capela has quit []
pawnbox has quit [Ping timeout: 248 seconds]
<ag4ve> something like: message "#{pp foo}" ?
dcluna has quit [Client Quit]
wpostma1 has quit [Read error: Connection reset by peer]
<daed> ag4ve: logger.info "#{pp foo}" ?
Xiti` has quit [Ping timeout: 260 seconds]
<ag4ve> ah ty
wpostma1 has joined #ruby
<darix> ag4ve: better
Xiti has joined #ruby
<darix> logger.info foo.pretty_inspect
<daed> or just logger.info pp foo
<daed> or that, yeah
dionysus69 has joined #ruby
nchambers has quit [Quit: ZNC 1.6.3 - http://znc.in]
last_staff has quit [Ping timeout: 258 seconds]
<ag4ve> oooo idk about pretty_inspect
Salih has quit [Quit: Leaving]
<daed> i tend to use "awesome_print", the gem
<daed> by default all my REPLs use that to output anything
lenwood has joined #ruby
last_staff has joined #ruby
<ag4ve> i'm in chef, so if i don't have to do chef_gem and handle that, that's better for me
kobain has quit [Ping timeout: 260 seconds]
<daed> ahh, gotcha
Salih has joined #ruby
nchambers has joined #ruby
<ag4ve> (kinda segregated net so, that's more like: get gem, upload to gem server, make sure cert is present, chef_gem,....)
byte512 has quit [Ping timeout: 265 seconds]
<daed> oi vey, i deal with environments like that too
<daed> i've been looking into gemirror
moei has quit [Quit: Leaving...]
mwlang has joined #ruby
Guest22943 has quit [Changing host]
Guest22943 has joined #ruby
Guest22943 has joined #ruby
<ag4ve> we use nexus (which handles gems, rpm, java, etc)
<ag4ve> .... also $$$$$$
<daed> oh, then we cant use it :P
ace05 has joined #ruby
<ag4ve> it's kinda meh
nchambers has quit [Changing host]
nchambers has joined #ruby
Devalo has joined #ruby
<ag4ve> i'd prefer using separate tools that handle stuff, but not my call
LoneHerm_ has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 248 seconds]
quazimodo has joined #ruby
ace05 has quit [Ping timeout: 246 seconds]
Devalo has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
last_staff has joined #ruby
Guest22943 is now known as giraffe
nankyokusei has quit [Ping timeout: 248 seconds]
wpostma1 has quit [Read error: Connection reset by peer]
wpostma1 has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
Moosashi has quit [Quit: Moosashi]
dagda1 has joined #ruby
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
wpostma1 has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
jcao219_ has joined #ruby
alex0ptr has joined #ruby
ryez has quit [Ping timeout: 260 seconds]
<ezio> Anyone good with mocks and stubs?
jaguarmagenta has quit [Remote host closed the connection]
<alex0ptr> Hi everyone, newbie to ruby here. I'm trying to get an instantiation of a class with a redefinition of a single method. Is there a way without defining a new class? Can anyone point me to the right direction?
Moosashi has joined #ruby
<ezio> i'm sort of a newb, too, but i think you're talking about overloading a function
<alex0ptr> I guess, but only for a single instance.
<ezio> a single instance of ... the class?
<alex0ptr> Yes
tvw has quit []
<ezio> that won't lead to multiple instances
JeanCarloMachado has quit [Ping timeout: 252 seconds]
<alex0ptr> An instance of a class foo that has method bar. And I want to overload the implementation of bar.
<ezio> yes
<alex0ptr> How do I do that?
<ezio> that will only be one instance of the class
<hanmac> alex0ptr: for example you want this:
<hanmac> >> class X; def meth1; "X"; end; end; y = X.new; def y.meth1; "Y"; end; y.meth1
<ruby[bot]> hanmac: # => "Y" (https://eval.in/676906)
<ezio> overloading works on the function signature. that is to say a function with the same name but different parameters(and more generally in other languages, a different return type), during compilation, the proprocessor will figure out what one you mean based on how it's being claled
<alex0ptr> Okay I guess this was exactly what I was looking for! Thank you!
<hanmac> alex0ptr: for most objects of most classes, you can use their singleton class / eigenclass to define methods (and constants) too
<ezio> for example calcTriangleArea base, width and calcTriangleArea base
<ezio> one is for all triangles, the other is for equilateral
vuoto has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<alex0ptr> ezio hanmac Thank you both for your help!
<ezio> np
<hanmac> ezio, ruby itself does not do overload, but there are some gems that does allow such thing
<ezio> ah
palms has quit [Ping timeout: 260 seconds]
<ezio> weird that they wouldn't write that into the preprocessor
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagda1_ has joined #ruby
<hanmac> ezio: ruby does allow variable parameters, so you can use that like calcTriangleArea(base, width=nil)
<ezio> ah
<ezio> like php
kies has quit [Ping timeout: 268 seconds]
<ezio> so ... who wants to help me with stubs
xrlk has joined #ruby
dnicole has joined #ruby
nonnatus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
terlar has quit [Quit: WeeChat 1.6]
enterprisey has joined #ruby
ace05 has joined #ruby
jackjackdripper has joined #ruby
ace05 has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
ace05 has joined #ruby
nonnatus has joined #ruby
LoneHerm_ has quit [Ping timeout: 258 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
Rodya_ has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
aidalgol has joined #ruby
firstdayonthejob has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
<ezio> noooooooooooooobody knows my troubles
b_ has joined #ruby
<ezio> wtf. how was that not a permanent ban?
LoneHerm_ has joined #ruby
<daed> help you with stubs how
Devalo has joined #ruby
Savage has quit [Quit: Connection closed for inactivity]
<ezio> i think i want to stub out ...
<ezio> L25
dnicole has quit [Ping timeout: 245 seconds]
<ezio> is that .. right? i'm just having trouble wrapping my head around it
enterprisey has quit [Quit: Leaving]
<daed> there's a lot of hard-coding in there, your initialize function should take parameters to set those values, and not use constants at the class level
izaac has quit [Ping timeout: 256 seconds]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<daed> def initialize (uri = 'http://whatever')
<daed> then set it there
<daed> and when you create your test, you no longer need to stub that part out
jaguarmagenta has joined #ruby
<daed> that's #1 at least... but it goes beyond that
<ezio> This only works with this specific domain, so if someone ever wanted to
<ezio> they'd have to write something else
<daed> yeah, but you are trying to make this testable right?
<ezio> but maybe i can make it generic
<ezio> yes
<daed> then you should always remove any hard coded URLs/etc period
Devalo has quit [Ping timeout: 258 seconds]
<ezio> okay
izaac has joined #ruby
help_m has joined #ruby
<daed> but, stubbing will just replace a method on your "Jira" class to return a specific thing
<help_m> has anyone here used ruby shoes?
<daed> it doesn't actually test much
<help_m> I'm having issues with my code
<ezio> daed, so should i alias L25 and then stub the alias?
<daed> ezio: i would separate that into multiple pieces of code personally, a data provider (in this case, jira http data), a parser (to handle cookies)
last_staff1 has joined #ruby
nankyokusei has joined #ruby
help_m has quit [Client Quit]
edwinvdgraaf has joined #ruby
<daed> well, there's also gems to handle stubbing web requests
<daed> VCR, etc
last_staff has quit [Read error: Connection reset by peer]
last_staff1 is now known as last_staff
<daed> i think you want webmock, from what it looks like
<ezio> hmm i've seen this single responsbility stuff before
<ezio> yeah probably
<ezio> can you help me with the singe responsbility first?
<daed> stub_request(:any, "www.example.com")
<daed> Net::HTTP.get("www.example.com", "/") # ===> Success
<ezio> what ..
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
smtudor has joined #ruby
<daed> then you can swap in your domain
<daed> run your tests, etc
<ezio> am i doing wrong
<daed> you're not necessarily doing anything wrong
<daed> there's just a lot going on in the one class
<daed> which isn't that bad, until it grows out of control
<ezio> i also wanted to put in a search function
<ezio> that's probably even worse
<daed> haha yeah
<ezio> k i'm going to watch some videos
<daed> which ones?
<daed> that's the first one that came up for me too
nankyokusei has quit [Ping timeout: 268 seconds]
<daed> i've just always known it, i've never seen videos about it
edwinvdg_ has joined #ruby
nonnatus has quit [Ping timeout: 240 seconds]
martynas_ has quit [Quit: Konversation terminated!]
martynas_ has joined #ruby
<daed> ezio: looks like it starts around 7m in
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jcao219_ is now known as jcao219
edwinvdgraaf has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
Sammichmaker has joined #ruby
Sammichmaker has quit [Changing host]
Sammichmaker has joined #ruby
<ezio> thank god for 1.5x
jenrzzz has quit [Ping timeout: 248 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
<daed> ezio: lol i couldn't watch that whole thing. it's a lot of video for a small concept
<daed> it also ties into this
<ezio> yeah separation of concerns. we did this in soft eng patterns ... i still don't get how i'm always violating this concept
<daed> dependency injection might help some
<daed> although, not as big in ruby
jshjsh has joined #ruby
<ezio> i love dependancy injection
<daed> it's not quite as necessary in ruby
<ezio> yeah. i'm not a big fan of ruby in general
<daed> sad
last_staff1 has joined #ruby
<daed> after 2008 it became my favorite language
<daed> still is
pawnbox has joined #ruby
<ezio> I'm a PHP guy.
<daed> i spent 8 years in php
<daed> after ruby, i vowed never to touch php again
handicraftsman has joined #ruby
<daed> thankfully i have not had to go back
<ezio> actually i should say .. i was
<ezio> now i'm turning into a node/go guy
<daed> i've done node/go too
<ezio> super fast
<daed> anything other than php and perl, and i'm good
<ezio> two fastest web servers
<daed> ruby still #1 favorite though
ruibot has joined #ruby
<ezio> what about ZF2
JoshS has quit [Ping timeout: 258 seconds]
<daed> i can't stand php as a language
<daed> ruby is gorgeous in comparison
<daed> easier to reason about
<daed> looks better
<handicraftsman> !ruby RUBY_VERSION
<ruibot> 2.3.1
<daed> everything is an object
<daed> i'm in scala now
<handicraftsman> !ruby RUBY_PATCHLEVEL
<ruibot> 112
<handicraftsman> So, hello
<daed> and i find it familiar, because in scala, values are objects, operators are method calls
<daed> just like ruby
last_staff has quit [Ping timeout: 240 seconds]
<handicraftsman> !ruby RUBY_PLATFORM
<ruibot> i686-linux
pawnbox has quit [Remote host closed the connection]
last_staff1 has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
<handicraftsman> !ruby Gem.loaded_specs["cinch"].version
<ruibot> 2.3.2
<apeiros> handicraftsman: ! is already used as a bot prefix in here. please change it.
pawnbox has joined #ruby
Rodya_ has joined #ruby
<handicraftsman> @apeiros, i'll do that, but NRN
<handicraftsman> !help
<ruibot> ["!help", "!owners", "!dice <\"opt1\"> <\"opt2\">", "!about", "!cash [user]"] | Owner-only: ["!join <channel>", "!leave <channel>", "!cmd <command>", "!msg <nick> <message>", "!cmsg <chan> <message>"]
<ruby[bot]> handicraftsman: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
<handicraftsman> Aha. Now i understand.
wpostma1 has joined #ruby
<apeiros> handicraftsman: yes, you'll do it right now. or I'll ban the bot.
gusrub_ has joined #ruby
<handicraftsman> @apeiros, no need. And i'll not do that right now because look:
<handicraftsman> !leave #ruby
ruibot has left #ruby ["My master said that!"]
<apeiros> that's an option too
dionysus69 has quit [Ping timeout: 258 seconds]
<daed> haha
<daed> i like cinch, FWIW
<daed> i've hooked cinch up with activerecord with good success
vuoto has quit [Remote host closed the connection]
ace05 has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
ace05 has joined #ruby
pawnbox has quit [Ping timeout: 252 seconds]
last_staff has joined #ruby
ruibot has joined #ruby
<handicraftsman> !ruibot ruby RUBY_VERSION
<ruibot> 2.3.1
<handicraftsman> Prefix is "!ruibot", not "!"
<daed> what's the purpose of this bot
<handicraftsman> Just testing cinch
<daed> odd channel to test in
<handicraftsman> Just2Show
<handicraftsman> Next my bot will be archive-bot
<handicraftsman> !ruibot exit
smtudor has quit [Ping timeout: 250 seconds]
<handicraftsman> LEL
<handicraftsman> !ruibot ruby exit
ruibot has quit [Remote host closed the connection]
<daed> you can send it pure ruby code to execute?
<daed> what could go wrong
lenwood has quit [Ping timeout: 260 seconds]
<handicraftsman> Yes.
<daed> nothing quite like evaluating/executing arbirtrary code found on irc channels
jshjsh has quit [Ping timeout: 258 seconds]
<daed> YOLO
edwinvdg_ has quit [Remote host closed the connection]
Silthias has quit [Ping timeout: 245 seconds]
<daed> does anybody here ever have to deal with ruby 1.8 in production anywhere?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<daed> i just had to upgrade a set of legacy code to 2.1 just to be able to use ruby-kafka
Silthias has joined #ruby
elastix has joined #ruby
infernix has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
moei has joined #ruby
ruibot has joined #ruby
<handicraftsman> Awww. Bugged. Wait
ruibot has quit [Remote host closed the connection]
<daed> > At RubyConf 2015 in San Antonio, Yukihiro "Matz" Matsumoto announced Ruby 3x3. The goal of Ruby 3x3 is to make Ruby 3 be 3 times faster than Ruby 2. At AppFolio, we think this is awesome and want to help.
<daed> i wonder how true this is
Salih has quit [Quit: Leaving]
zeroDi has quit [Quit: WeeChat 1.6]
haylon has joined #ruby
dviola has quit [Ping timeout: 245 seconds]
lel has joined #ruby
futilegames has quit [Quit: futilegames]
platzhirsch has joined #ruby
dangeranger has quit [Quit: Textual IRC Client: www.textualapp.com]
handicraftsman has quit [Quit: Leaving]
harai has quit [Ping timeout: 260 seconds]
harai_ has joined #ruby
infernix has joined #ruby
jhack has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
ace05 has quit [Remote host closed the connection]
nankyokusei has joined #ruby
wpostma1 has quit [Ping timeout: 260 seconds]
matp_ has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
matp has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
wpostma1 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
ace05 has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
aidalgol has quit [Remote host closed the connection]
MuffinPimp[m] has left #ruby ["User left"]
elastix has quit [Quit: Leaving]
enterprisey has joined #ruby
JoshS has joined #ruby
conta has joined #ruby
chwbacca has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kobain has joined #ruby
phaza has joined #ruby
rafadc has quit [Ping timeout: 265 seconds]
edwinvdgraaf has joined #ruby
rafadc has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
phaza_ has quit [Ping timeout: 246 seconds]
eljimbo has quit [Ping timeout: 265 seconds]
<alex0ptr> I'm not happy with the solution I came up with to redefine methods for objects. Any opinions on that?: https://eval.in/676926
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
conta has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
jaguarmagenta has quit [Remote host closed the connection]
enterprisey has quit [Read error: Connection reset by peer]
eljimbo has joined #ruby
jhack has quit [Quit: jhack]
bocaneri has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
enterprisey has joined #ruby
gusrub_ has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
gusrub_ has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
lenwood has joined #ruby
cdg_ has quit [Ping timeout: 265 seconds]
cjk101010 has quit [Ping timeout: 246 seconds]
<apeiros> alex0ptr: new_foo.define_singleton_method(:on_do, &proc_to_replace_on_do)
<apeiros> might not even need the &
pwnd_nsfw has joined #ruby
Satyajit has quit [Ping timeout: 258 seconds]
alxgsv has quit [Ping timeout: 260 seconds]
<alex0ptr> Thanks I'll have to check the docs on that.
gusrub_ has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
drzel has quit [Ping timeout: 256 seconds]
Derperperd has quit [Changing host]
Derperperd has joined #ruby
wpostma1 has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
Derperperd has quit [Quit: Derperperd]
Derperperd has joined #ruby
Snowy has quit [Remote host closed the connection]
haylon has quit [Quit: Bye]
Snowy has joined #ruby
jcao219 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Snowy has quit [Ping timeout: 246 seconds]
railssmith has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
agent_white has quit [Quit: brb]
claudiuinberlin has quit []
c0mrad3 has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
Devalo has joined #ruby
Rodya_ has joined #ruby
Devalo has quit [Ping timeout: 256 seconds]
nankyokusei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Immune has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
enterprisey has joined #ruby
LoneHerm_ has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
enterprisey has quit [Remote host closed the connection]
platzhirsch has quit [Quit: WeeChat 1.4]
Wizznt has joined #ruby
cdg has joined #ruby
agent_white has joined #ruby
Moosashi has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
Moosashi has quit [Client Quit]
JoshS has quit [Ping timeout: 265 seconds]
ebbflowgo has joined #ruby
ebbflowgo has quit [Client Quit]
Silthias has quit [Ping timeout: 256 seconds]
zapata has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
kies has joined #ruby
hightower3 has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 265 seconds]
kies has quit [Client Quit]
kies has joined #ruby
hightower2 has joined #ruby
pwnd_nsfw` has joined #ruby
charliesome has joined #ruby
<ezio> daed, k ... so i watched eleventy billion hours of SOLID videos
<ezio> i think i'm ... STARTING to catch on
pwnd_nsfw has quit [Ping timeout: 245 seconds]
<ezio> my first question is how do I do dependancy inversion in ruby
<daed> ezio: haha
<daed> well
<daed> ezio: there's a book i'd recommend
<daed> code examples are here
<daed> it helps understand structuring patterns and objects together
<daed> understanding what components do and how they interact together
zapata has joined #ruby
<ezio> i watched a video on DIP for ruby
martynas_ has quit [Ping timeout: 260 seconds]
<ezio> and it was pretty much saying ... the guy didn't know
gingray has quit [Ping timeout: 245 seconds]
<ezio> he said something about contracts
<ezio> but i think at the end he said ... don't do it or ...it's the same because there's no typing in ruby
<daed> yeah
<ezio> err not no typing but you know what i mean
<daed> other languages make it more verbose
|ifei5g00d has quit []
unshadow has quit [Remote host closed the connection]
pilne has joined #ruby
<daed> if you see the first example
<daed> they refactor stuff out of that main class
Madplatypus has joined #ruby
DLSteve has quit [Remote host closed the connection]
<daed> ezio: in fact, the bottom example gives you a clear idea of what i was going for
cdg_ has joined #ruby
<daed> you pass in the two things, and each can be swapped out as long as they follow the same interface
DLSteve has joined #ruby
<daed> admittedly, they have a typo there
<daed> it should be @parser in the method
honore has joined #ruby
<ezio> ah yes
cjk101010 has joined #ruby
<daed> but that's the general idea
<ezio> so they're sayiung you just inject whatever class you want
<ezio> k
<ezio> simple enough
<daed> in that sense, you could pass in an HTTPDataProvider, or CSVDataProvider, etc etc
<daed> as long as it follows the same interface
<ezio> yeah
cdg has quit [Read error: Connection reset by peer]
<daed> then the strategy pattern is the 'parser' side
<daed> you can pass any parser you want in there
<ezio> okay so in my example and i'll link you to it again
<ezio> i think one thing i should do is have an authorization interface
<ezio> just as a practice
<ezio> for dip
<daed> yeah
<ezio> so someone could have a finger scan
<ezio> or an rsa
<ezio> or password or mfa, etc
chwbacca has quit [Remote host closed the connection]
<daed> that 'private' section, move those into the initialize function
<ezio> ok. why? :p
<ezio> delete the whole private section?
jackneill__ has quit [Remote host closed the connection]
<daed> yeah might as well
harai_ has quit [Ping timeout: 245 seconds]
<daed> i don't know that i have ever in my life seen class level variables outside a function scope
<daed> i didn't even know that was possible
<ezio> will they be exposed?
<daed> no, attr_reader and attr_accessor
<daed> are what you use to expose variables
<ezio> okay
<daed> so class Jira; attr_reader :logged_in
<daed> for example
<ezio> okay
LoneHerm_ has quit [Remote host closed the connection]
<ezio> so first i'm going to implement CredentialsAuth
Immune has quit [Ping timeout: 260 seconds]
<ezio> or should it be AuthCredentials
<daed> whatever makes you happy
<daed> Auth is probably better
<daed> AuthCredentials, AuthKey, AuthWhatever
<ezio> okay
<ezio> and then i have an "interface" method called auth?
<daed> sure
<ezio> okay. any other tips before i travel down that road for a bit?
<daed> what is all this for?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ezio> well, our prof gives us these tasks we're supposed to complete. he wants us to do mock testing on this jira thing which I cracked which was also on a tangent. but now i'm just off on a major tangent to satisfy my own knowledge
<daed> ahh
<daed> school stuff, k
<ezio> but the main thing is to get mocks
<ezio> that's the school part
<daed> if that's the case
<ezio> i actually do work for a software company
<daed> i'd just use what you have now
<daed> and use webmock to stub stuff out
<ezio> and i would like to know the solid principles
<daed> ahh
<daed> commendable
<ezio> i actually graduated from what you guys would call "community college" for programming and went back to get my degree so i've had 8 years in the industry
pragmaticus has quit [Ping timeout: 265 seconds]
<ezio> actually
<ezio> i was supposed to do homework today
<daed> i don't put much value on school personally
<ezio> i haven't put in a single minute on anything that i can claim
askhat has joined #ruby
<ezio> yeah. i want a law degree
<ezio> i mean programming is my passion, but law is a close second
<daed> that's funny
<ezio> i'm actually in a mixed law/compsci dual degree
<daed> 4 years ago, the best developer i interviewed at that job and hired immediately, was a guy with a law degree and not much recent programming experience
<ezio> so i've already done one year of law school. this is my last year for my undergrad
<daed> he beat every other candidate
<ezio> you know why?
<ezio> predicate logic
<daed> hahaha
<ezio> it's the common theme
<daed> get this
<daed> back in january, facebook contacted me, since i was his manager
<daed> i had to write a document up to recommend him to work at FB
<daed> now he's an engineer there
<daed> but he only has law degrees, no engineering degrees
<ezio> lol some guy from our department is now working at facebook too
<havenwood> ezio: This is worth watching when considering the dependency inversion principle in Ruby: http://www.youtube.com/watch?v=dKRbsE061u4&t=19m45s
<ezio> we do network security stuff
<ezio> havenwood, that's what i did watch
<ezio> he basically says ... you don't do anything
<havenwood> i'm a law degree engineer as well
<daed> havenwood: jeez
frmendes has joined #ruby
<daed> what is it with you law people and ruby
<ezio> havenwood, nice
<ezio> i'm not a ruby person
<ezio> not at all
<daed> you should be
<ezio> i consider ruby to be inferior
<daed> compared to?
echosystm has joined #ruby
<daed> after 25 languages, it's still my preferred go-to for most things
<ezio> if you're asking me to compare it to oop languages
echosystm has left #ruby [#ruby]
<ezio> c#, c++, php
<daed> i did C# and C++ professionally for years
<daed> i vastly prefer ruby
nankyokusei has joined #ruby
<havenwood> <3 Ruby
<daed> however, i would like to go back and learn google C++
<ezio> yeah. c#, c, and a million web technologies is what i do for work now
<havenwood> ezio: PHP? OO? Trolling?
<daed> hahaha
<daed> PHP is such a swamp
<ezio> it's now very awesome for oop
<havenwood> Please don't troll.
<ezio> and actually one of the reasons for that is Zend
<daed> rails.
<Zarthus> PHP (7) is decent for OOP.
gizless has joined #ruby
<daed> rails > zend
<ezio> Zend basically said ... you're going to make these changes
<Zarthus> not brilliant, but it'll do
<daed> Zarthus: that'll do, pig, that'll do
<ezio> Zarthus, i would say it's magnificent
<ezio> every pattern
<ezio> it supports
<ezio> and when new ones come out
<ezio> they now adapt
gizmore has quit [Ping timeout: 260 seconds]
<Zarthus> many backwards incompatible changes they didn't do in PHP7 though
<ezio> yeah. php 5 is pretty good in the later versions
jhack has joined #ruby
<Zarthus> in comparison to PHP 5.3 it's absolutely great.
<ezio> it was just a launch pad to realize .. k .. we need to support patterns
<havenwood> I think PHP 6 is the one they did right (not releasing it).
<daed> lol yeah.
<havenwood> j/k :P
LindsayFresco has joined #ruby
<daed> http://reddit.com/r/lolphp <- this is always good for some laughs too
<daed> i wrote php for 8 years
<daed> before i finally said i couldn't take it anymore
<daed> thank god i moved on
<havenwood> We all have our limits.
jhack has quit [Client Quit]
<LindsayFresco> does anyone here know mips assembly
<Zarthus> php 4.0 is not the same as php 5.4 and beyond, though
<havenwood> Yay Ruby! :D
<Zarthus> it still sucks, but less than it did 8 years ago.
* Nilium got his office to stop writing new things in PHP.
<daed> Zarthus: that's not exactly a recojmmendation
<daed> Nilium: nice
<Nilium> The replacement wasn't Ruby, but it was a language of my choice, so it works out.
<ezio> anyways. if you push me right to it, c is my baby
<Zarthus> daed: I'd be wrong to recommend PHP in a channel where people are already working with a better language.
* Nilium only uses Ruby for little CLI tools and whatnot
<daed> Zarthus: fair point.
<ezio> and that's mainly because we write security tools
<daed> ezio: metasploit is all ruby
<Nilium> I mainly use Go, C, and C++ for anything I want to be reasonably certain is working the way I intend it to.
nankyokusei has quit [Ping timeout: 252 seconds]
<ezio> daed, that might be, but canvass is much much better
<daed> i like go. i also have to write scala, because i work with big data
<Nilium> Ruby's more of my "I have this file full of text and I just want to do stuff to it" language.
<daed> Nilium: latimes.com and chicagotribune.com run on top of ruby
<daed> those aren't just text files
<Nilium> Our "big data" choice was Go. I've used Scala for Android apps, but I wouldn't really push it for our office. I'd get killed.
<daed> Nilium: describe "big data"
<ezio> i don't know if this has changed, but ruby used to be one of the slowest languages
<Nilium> daed: Got a smartphone?
<daed> ezio: 1.8 was awful. 2.3 is fast
<daed> Nilium: yes
<Nilium> Any games on it?
<daed> maybe somewhere
<Nilium> Any social apps?
<daed> twitter?
cloud has quit [Changing host]
cloud has joined #ruby
chrisja has joined #ruby
<Nilium> Well, not that one.
<daed> Nilium: i just got back from a big data con
<havenwood> Nilium: Twitter's frontend is still Ruby.
<Nilium> But you're probably sending us data.
<daed> twitter presented
<ezio> daed, cool. the whole reason i switched to node is for speed
<ezio> but now i really like it
<ezio> it's got a good orm
<daed> Nilium: how many events per second
<ezio> which is all i really want in a language
<Nilium> I'd have to hop on the VPN and check things to see that.
<ezio> though ... nothing compares to doctrine
Immune has joined #ruby
<Papierkorb> ezio: good orm? You meant to say "sequel"?
<daed> Nilium: i'm dealing with 1.8 million 2000 byte messages per second, golang/ruby/etc weren't really suitable for it
<havenwood> Nilium: There's Diaspora as well: https://github.com/diaspora/diaspora
<Nilium> Basically, my company does mobile attribution, so impressions, clicks, installs, events / analytics, etc.
<daed> i wanted to use golang more
<Nilium> havenwood: I wasn't arguing against using Ruby for anything.
<Nilium> I just don't use it for that stuff.
<ezio> Papierkorb, sequilize
<daed> for everything else, there's mastercard (and ruby)
<Nilium> Easier for me to think in statically typed languages and whatnot
<daed> Nilium: how do you feel about scala then?
<daed> php 5.4 and beyond, though
<daed> 18:19 < havenwood> Yay Ruby! :D
<ICantCook> I was reading that Ruby 3 is going to be 3x faster than ruby 2.0
<Nilium> I've only used it for writing Android apps, so it was acceptable
<daed> misfire.
<Nilium> I wouldn't do it twice
<Nilium> .. Well, again. I did it three times.
<daed> used what for writing android apps?
<Nilium> Scala.
<daed> oh
<daed> that sounds... awkward
askhat has left #ruby ["Textual IRC Client: www.textualapp.com"]
<Nilium> You have to very carefully remove stuff from the stdlib using proguard.
<daed> why not just use java at that point
<Nilium> Anyway, the complexity of the language, and particularly the difficulty of actually getting through the docs for it (the collections library in particular is horrifying), sbt, etc. is just not great.
<daed> have you heard of kotlin?
<ezio> ruby still has a long way to go as a language
<Nilium> Yes.
<daed> ezio: no way.
<havenwood> Nilium: If you have a penchant for static typing and Ruby you might give Crystal a look if you haven't already.
<Zarthus> can't wait for kotlin to catch the major popularity
<daed> the ruby language is amazing
<Nilium> havenwood: It's somewhere on my list.
<daed> ahh yeah, crystal is another
<Nilium> There was another language, Mirah, that was interesting. Not sure where it's at now.
conta has joined #ruby
<Zarthus> all these new languages :|
<daed> to be fair
<havenwood> ezio: A long way to go to get where? It's been around for 20 years now and is a popular lang in all sorts of spheres.
<daed> crystal is nearly 100% compliant
sagax has quit [Quit: Konversation terminated!]
<Papierkorb> daed: not nearly 100%
<Nilium> Anyway, Scala's fun, but for work stuff I have to think about how it's going to pan out in a team, and Go works out unusually well there
<havenwood> ezio: It continues to improve and innovate to maintain community.
<Zarthus> Rust and Go currently have my attention, but they both have problems that keep me out of hipster town
<Nilium> Mostly because of the tooling
<daed> Papierkorb: oh, i thought it was close
<Papierkorb> not at all, not even meant to be
<ezio> okay then there's things its never going to change that i'm never going to like
<daed> at least it appears to be, generally
<Nilium> Rust's interesting for memory safety but it's a pain train to get into
<Nilium> Community's awesome, though.
<Nilium> Very ruby-ish.
<daed> i went with golang, more practical for the stuff i do
<daed> rust is a bit low level
<ezio> :p
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<daed> ezio: you'd be surprised what rails powers in the industry
<ezio> oh i know
binaryplease has joined #ruby
<ezio> but speed is 90% of my concern when starting a new application
<ezio> at least it is now
<Nilium> I don't like Rails, but I use enough stuff built on it to know I don't care if I don't like Rails.
<daed> horizontal scaling
<daed> Nilium: i love it
<ezio> since i've seen what can happen when you suddenly get hit with 10000% increase in user traffic.
<Nilium> My background's mostly game dev stuff originally, so I'm just generally anti-web-dev stuff
<daed> ezio: that's just bad caching/querying
<Nilium> Not that game dev necessarily means anti-web-dev
<ezio> that, too, but every time it actually has to process something, that's where it can get slow, too
<ezio> not all pages can be cached
<Nilium> There's just a lot less straightforward and pragmatic stuff in web dev areas and it makes me want to smack people.
<daed> ezio: rails also has russian doll caching
<daed> if you really wanna deep dive into stuff
<Papierkorb> daed: But I still recommend trying Crystal ;)
workmad3 has quit [Ping timeout: 245 seconds]
<Nilium> Oh, other language on my to-do list was nim
<ezio> daed, yeah. i'm a proponent of nginx caching with a little bit of tweaking i wrote myself
<Nilium> Since I can't seem to resist compile-to-C languages
conta has quit [Ping timeout: 256 seconds]
cdg_ has quit [Ping timeout: 258 seconds]
<ezio> k get this
<ezio> the retards over at nginx
cyphase has quit [Ping timeout: 245 seconds]
<Nilium> That's not very fair to them
<ezio> the cache only plain copies of pages
<ezio> so every request still has to compress it
<daed> they're definitely very bright people
<Nilium> Isn't that a good thing?
<daed> we actually pay nginx devs
<ezio> well why didnt't they see that one coming
<ezio> Nilium, no
charliesome has joined #ruby
<ezio> no it's not
frmendes has quit [Quit: cya...]
<ezio> you should cache both
<ezio> there's a lot of processing that goes on to gzip a page
<ezio> and if you're gzipping 90% of your requests ...
<Nilium> I like the idea that it could just handle both identity and gzip encodings
<ezio> yeah
jenrzzz has quit [Ping timeout: 265 seconds]
aidalgol has joined #ruby
<ezio> it can serve gzipped files already gzipped
<ezio> it can gzip identity files
<Nilium> And the chance of you storing bad gzip'd data is higher than the chance of you having an error compressing something, I figure.
<ezio> it can't cache gzip and serve them
<daed> ezio
<daed> let's just say i deal with thousands of nginx servers that saturate network links
<ezio> Nilium, the way they do it, they just store the file as a hash
* ezio looks lovingly at daed
<Nilium> Anyway, if it were an issue, I figure there's already a ticket for it.
<daed> there is zero reason for it to ever gzip any content and cache it
<daed> unless explicitly told to do so
honore has quit [Quit: zzz]
<Nilium> There's more pressing things to me, particularly around http/2 support (it can be a bit flaky)
<daed> ahh i'm not in that space yet
<ezio> daed, i disagree. not only does that speed up the server that you process with, but suddenly proxy servers speed up too
<daed> ezio: i deal with 40gbit nginx servers that saturate network links
<ezio> hold on
<ezio> hold on
<ezio> you're not understand me some how
<ezio> nginx ALREADY does that
<ezio> it already serves gzipped files
LindsayFresco has quit [Quit: Page closed]
<ezio> right off the drive
<ezio> it already proxy caches
<daed> i can tell you, thousands of hits per second, nginx will saturate network links, before it touches cpu time
<ezio> the thing it doesn't do is that little crucial bit in between
<daed> disk space is more valuable than cpu time
<Nilium> Could also just throw a cache in front of nginx and not have nginx deal with caches.
<daed> on nginx caching servers
cyphase has joined #ruby
<daed> but yeah
<daed> if you really want that, put varnish in front
<ezio> daed, depends on how many pages you're serving for a small application
<Nilium> Pretty much.
<daed> nobody relies on nginx for caching
<daed> that's not its job
<ezio> well nginx does a really good job of it
<daed> yeah
<ezio> like ... check the bench marks
<ezio> and if you put that in ramfs
<daed> but you still want load balancers and caches in front, too
<daed> the sole responsibility should not be one nginx process
<ezio> yeah. but they're only going to cache the main server's output
<Nilium> Ultimately, it's going to come down to how your systems are laid out and what matters where.
<daed> yep
<ezio> yeah
<Nilium> I'm not inclined to say nginx did anything wrong with how it caches things.
<daed> me either, i'm slightly biased
Rodya_ has quit [Remote host closed the connection]
<ezio> agreed, but if you think of the order of algorithms
<daed> cause i deal with thousands of them
JoshS has joined #ruby
<daed> which is also why i write scala
<daed> to process all the nginx logs :/
<ezio> if you have an algorithm that is in constant time, it's going to grow far less quickly as .. i can't even figure the order of gzip
<daed> ezio: you know most of your porn comes from nginx too right
<ezio> thank god because if it came from IIS we'd all be screwed
<daed> thank god
<ezio> a long time ago
<ezio> some "independent" company put out a bench mark of apache vs iis and said iis was faster
<ezio> now apache is shit slow
<ezio> but when pressed, one of them admitted that microsoft paid for the study
bigmac has quit [Ping timeout: 246 seconds]
harai_ has joined #ruby
<daed> i still deal with some legacy apache/passenger servers
<daed> not a big fan
<ezio> they're okay if you put a proxy in front lel
Rodya_ has joined #ruby
* Nilium just uses nginx because he's too lazy to look at other options.
<ezio> Nilium, a basic go server is faster
<Nilium> Granted I only use it as a fileserver and a reverse proxy for my Go services on my personal server.
<Nilium> At work it's a reverse proxy to our Go services.
<daed> ezio: not if you want to serve 8 TB of content saturating a 40gbit interface
marr has joined #ruby
<ezio> yeah
<ezio> definitely
<daed> i've actually been using apache as a reverse proxy
<daed> on a couple things
<daed> i should look into nginx for that
<ezio> one of my class mates recently asked me to look at his site and tell him why it was so slow
<Nilium> I personally find it easier with nginx, but I'm just not a huge fan of configuring apache
<ezio> i took a look at it .. TTFB was like 800ms
bigmac has joined #ruby
<ezio> so i did some rooting around
<daed> yeah, nginx config files are way more pleasant
nettoweb has joined #ruby
<ezio> guy was running off a godaddy server in singapore
nettoweb has quit [Client Quit]
<daed> lol
<Nilium> Reminds me, I should look at libucl some time
allcentury has quit [Ping timeout: 256 seconds]
<ezio> oh umm ... k one thing i don't like about ruby
koooge has joined #ruby
<ezio> and maybe someone can pass this up the chain
<daed> we'll do our best
<havenwood> ngx_mruby would be on-topic: https://github.com/matsumotory/ngx_mruby
<Nilium> Oh, Dishonored 2 finished loading the mandatory 10gb to run something. I am now compelled to play it.
VladGh has quit [Ping timeout: 260 seconds]
<ezio> i tried to get on ruby's bug reporter but there's either a bug, or they hand approve each person
<daed> Nilium: wow.
<ezio> it says right there you can sign up, though
<ezio> net/http needs to know about cookies
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ezio> i looked through the RFC .. there's a lot going on there
<ezio> it's going to be a big job
<Papierkorb> ezio: Just use any one of the billion http client gems
<ezio> oh really
<daed> i use faraday
* Nilium uses Go because he's a simple person.
<Papierkorb> net/http has a clumsy API
<ezio> okay. well it doesn't mater because that's so far out of the scope of what i have to do for this class.
<daed> yeah, i don't use net/http
nettoweb has joined #ruby
<ezio> i hacked together something very ugly
<daed> shouldn't use net/http
JeanCarl1Machado has joined #ruby
<ezio> as you can see from my code
<daed> unless absolutely necessary
<ezio> okay
<ezio> cool
<Papierkorb> I like typheus
<Papierkorb> wraps libcurl into a decent api
<havenwood> Yeah, Typhoeus is a nice libcurl one.
<havenwood> I like the HTTP gem API as well: https://github.com/httprb/http
CloCkWeRX has joined #ruby
<daed> i actually started using Curb
<daed> for simple curl stuff
<havenwood> HTTPClient and Excon are two other ones that aren't Net::HTTP-wrappers that are nice.
JeanCarloMachado has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tomphp has joined #ruby