baweaver changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
sanscoeu_ has joined #ruby
hahuang65 has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
n0m4d1c has joined #ruby
GodFather has joined #ruby
tcopeland has joined #ruby
hahuang65 has quit [Client Quit]
sanscoeu_ has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
cschneid has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<leitz> Dang. Have I mentioned i hate unicode?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mozzarella> do you want me to grep my log files?
AJA4350 has quit [Remote host closed the connection]
<leitz> No, trying to understand my "git status" line. If i "ls" the file is: 1429_180_0745_Casimir_District_Saorsa.txt
apeiros has joined #ruby
AJA4350 has joined #ruby
<leitz> The git status line shows: #new file: "\357\273\2771429_180_0745_Casimir_District_Saorsa.txt"
FrostCandy has quit []
eckhardt has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
eckhardt has quit [Client Quit]
<mozzarella> yeah?
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
<leitz> Added a comment with the start of the chapter, showing what it was before the new file was written.
tjbp has quit [Ping timeout: 260 seconds]
fribmendes has quit [Quit: fribmendes]
tjbp has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
<leitz> one part I don't understand is the characters; I checked "new_file_name" as I wrote the code, and whatever \357\273\277 are they aren't showing up as printable.
John_Ivan has quit [Read error: Connection reset by peer]
arkymad has joined #ruby
<leitz> BOM; Byte order marking. From a stack overflow on C.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<leitz> Which is one of the reasons I don't like UTF-8.
n0m4d1c has quit [Read error: Connection reset by peer]
ikopico_ has joined #ruby
n0m4d1c has joined #ruby
<mozzarella> weird
<leitz> The BOM or me not liking UTF-8? :)
apeiros has joined #ruby
eckhardt has joined #ruby
eckhardt has quit [Client Quit]
arkymad has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
naprimer has quit [Ping timeout: 240 seconds]
naprimer has joined #ruby
gheegh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kapil___ has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
Psybur has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
jottr_ has quit [Ping timeout: 265 seconds]
n0m4d1c has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
<leitz> And this removed the entire line. new_file_name = new_file_name.delete("^\xEF\xBB\xBF")
<leitz> Ugh.
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
cadillac_ has joined #ruby
n0m4d1c has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
hahuang65 has joined #ruby
ts__ has quit [Quit: Leaving]
konsolebox has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Client Quit]
apeiros has joined #ruby
<leitz> This seems to work: new_file_name = new_file_name.gsub(/.*\[/, '[')
hahuang65 has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
Mr_Tea has joined #ruby
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
apeiros has quit [Ping timeout: 245 seconds]
milardovich has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 265 seconds]
n0m4d1c has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
<Mr_Tea> https://gist.github.com/25c7a44cdb4f4ca1d8a2506c74cc7a24 any tips on how to refactor my chip8 emulator? it works, now it's time to make it good.
gnufied has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
bonhoeffer has joined #ruby
<baweaver> Mr_Tea: better variable names for one.
<baweaver> In nread_key and read_key you're using return with a case statement
<baweaver> Ruby implies returns
<baweaver> It also looks like those two methods are heavily duplicated
<baweaver> What I would do is extract that into a key mapping
<baweaver> KEY_MAP = {'1' => 1 .... }
<Mr_Tea> one does it async and the other doesnt
<baweaver> Sure, but the case statements are the exact same.
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<phaul> baweaver: split up that 100+ lines functions to small chunks that are function calls named after their purpose
<phaul> it will become much more readable
<baweaver> Y'mean Mr_Tea
<phaul> yeah sorry :)
<baweaver> but I would agree to break out all the case mess
<baweaver> Case statements should not be used in lieu of methods
<Mr_Tea> could I use a map for that as well?
<phaul> plus name all the magic values
<baweaver> For that one, probably not, you want to break it into named methods
<baweaver> if you want to know what to name them, ask a question: what does this code do?
minimalism has joined #ruby
<baweaver> Such as you have one area that says "sprite display" in a comment
<baweaver> Also Ruby people tend to not use `for ... in`
<baweaver> Mostly it's each and Enumerable
apeiros has joined #ruby
<baweaver> &ri Enumerable
rflec028 has quit [Quit: WeeChat 1.6]
hahuang65 has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<baweaver> but all the variable names like @v are impossible to follow unless you know the domain.
<Mr_Tea> yeah
<Mr_Tea> that one should be something like registers
<baweaver> Also you can multiply strings
hahuang65 has joined #ruby
milardovich has joined #ruby
<baweaver> >> ' ' * 10
<ruby[bot]> baweaver: # => " " (https://eval.in/967105)
<baweaver> easier than counting all those danged things.
<Mr_Tea> for what? you lost me
<baweaver> @window.addstr(" ")
<Mr_Tea> ah
<Mr_Tea> I just used C-u 64 for that one lol
<baweaver> chip8.draw_graphics unless chip8.drawflag.zero?
<baweaver> suffix conditionals, unless is inverted if, and zero? is a method on Integers
hahuang65 has quit [Client Quit]
apeiros has quit [Ping timeout: 248 seconds]
<Mr_Tea> neat
<baweaver> Also everything in Ruby is an expression
<baweaver> >> a = if true; 1; else 2 end
<ruby[bot]> baweaver: # => 1 (https://eval.in/967106)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 240 seconds]
<Mr_Tea> so everything returns a value?
<baweaver> meaning that you could: @pc += if ....
<baweaver> most everything
<baweaver> puts returns nil, that one's fun
<Mr_Tea> makes sense all you want from puts is the side effects
hahuang65 has joined #ruby
<phaul> Mr_Tea: one other suggestion: are you familiar with any of the testing frameworks? rspec, minitest etc?
<Mr_Tea> nope
<SeepingN> shame on you! ;)
<baweaver> Check the channel topic, I left a book list up there.
<baweaver> There's a good RSpec book mentioned in there
<phaul> Usually before a big refactor it's worth having some tests at least.
<Mr_Tea> ooo books
axsuul has joined #ruby
<phaul> it's always reassuring that you know your code is at least as good as before :)
<Mr_Tea> I didn't really read anything in depth, I just wanted to do a big project in ruby before I needed it for a hackathon
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<baweaver> Mr_Tea: The fast route, since it looks like you know programming already: Eloquent Ruby, Effective RSpec
<baweaver> Entire point of Eloquent is how to Ruby like a Rubyist
apeiros has joined #ruby
jottr_ has joined #ruby
memo1 has joined #ruby
<Mr_Tea> nice
jottr has quit [Ping timeout: 256 seconds]
<Mr_Tea> I like those programming books for programmers
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
apeiros has quit [Ping timeout: 256 seconds]
phaul has quit [Ping timeout: 256 seconds]
axsuul has quit [Quit: Peace]
leitz has quit [Quit: Nappy time]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe_ has quit [Ping timeout: 252 seconds]
rocx has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<SeepingN> Practical Object-Oriented Design in Ruby
<SeepingN> "POODR"
<SeepingN> and "Learn to Program, 2nd Edition"
hahuang65 has quit [Quit: WeeChat 2.0.1]
eckhardt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
bonhoeffer has quit [Ping timeout: 248 seconds]
GodFather has quit [Quit: Ex-Chat]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
milardovich has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
n0m4d1c has joined #ruby
apeiros has quit [Ping timeout: 252 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
gnufied has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
SynSynack has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Mr_Tea> thanks for all the advice I'll be back later this week, hopefully with some eloquent ruby
gheegh has joined #ruby
Mr_Tea has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
TvL2386 has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
axsuul has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.0.1]
hahuang65 has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
TvL2386 has joined #ruby
marr has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
TvL2386 has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
Xiti has quit [Ping timeout: 256 seconds]
Xiti has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
raynold has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
RougeR has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
jottr_ has joined #ruby
Azure has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
Azure has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
dinfuehr_ has joined #ruby
Psybur has quit [Ping timeout: 260 seconds]
dinfuehr has quit [Ping timeout: 240 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
hahuang61 has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jottr_ has joined #ruby
goatish has quit [Quit: Hibernating]
kapil___ has quit [Quit: Connection closed for inactivity]
ramfjord has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
Dimik has quit [Ping timeout: 276 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
gizmore|2 has joined #ruby
apeiros has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
gizmore has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
cadillac_ has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 256 seconds]
jottr_ has joined #ruby
cadillac_ has joined #ruby
milardovich has quit [Remote host closed the connection]
cpallares has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
cpallares has joined #ruby
memo1 has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
hahuang65 has joined #ruby
ianmalcolm has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
Guest35240 has quit [Ping timeout: 256 seconds]
cpallares has quit [Ping timeout: 248 seconds]
cpallares has joined #ruby
ianmalcolm has joined #ruby
Map has joined #ruby
Map is now known as Guest14307
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
apeiros has joined #ruby
kapil___ has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
suhdood has joined #ruby
darkhanb has joined #ruby
marxarelli is now known as marxarelli|afk
cagomez has quit [Ping timeout: 256 seconds]
apeiros has quit [Ping timeout: 256 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
starseed0000 has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 256 seconds]
arescorpio has quit [Quit: Leaving.]
konsolebox has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
nielsk has quit [Read error: Connection reset by peer]
nielsk has joined #ruby
minimalism has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
nielsk has quit [Client Quit]
nielsk has joined #ruby
minimalism has joined #ruby
nielsk has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 268 seconds]
jottr_ has joined #ruby
konsolebox has joined #ruby
howdoi has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
bigblind has joined #ruby
nielsk has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
govg has joined #ruby
ogres has joined #ruby
axsuul has quit [Quit: Peace]
apeiros has quit [Ping timeout: 252 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: peaceee]
jottr_ has joined #ruby
milardovich has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
milardovich has quit [Remote host closed the connection]
jottr_ has joined #ruby
milardovich has joined #ruby
hahuang65 has joined #ruby
bonhoeffer has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 256 seconds]
yadnesh has quit [Quit: EliteBNC 1.6.5 - http://elitebnc.org]
QpQ4_ has joined #ruby
jottr_ has joined #ruby
apeiros has joined #ruby
netherwolfe_ has joined #ruby
eckhardt has joined #ruby
ryzokuken has joined #ruby
cpallares has quit [Ping timeout: 268 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
QpQ4__ has joined #ruby
cpallares has joined #ruby
netherwolfe_ has quit [Ping timeout: 245 seconds]
QpQ4__ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jottr_ has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
yadnesh has joined #ruby
bonhoeffer has quit [Quit: Leaving]
trautwein has quit [Quit: ZNC 1.6.5 - http://znc.in]
trautwein has joined #ruby
jottr_ has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
hahuang61 has joined #ruby
Sambsquanch has quit [Quit: Peace, take it easy.]
hahuang65 has quit [Ping timeout: 248 seconds]
hahuang61 has quit [Ping timeout: 268 seconds]
jottr_ has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
cdg has joined #ruby
rippa has joined #ruby
hahuang65 has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
milardovich has quit []
meinside has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
axsuul has joined #ruby
jottr_ has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has joined #ruby
darkhanb has quit [Read error: Connection reset by peer]
darkhanb_ has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
Cohedrin has joined #ruby
luminous has joined #ruby
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 240 seconds]
hndk has joined #ruby
hahuang61 has joined #ruby
darkhanb_ has quit [Read error: Connection reset by peer]
darkhanb has joined #ruby
jottr_ has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
ryzokuken has joined #ruby
suhdood has quit [Quit: Leaving]
hahuang65 has joined #ruby
apeiros has joined #ruby
jottr_ has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
apeiros has quit [Ping timeout: 248 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
apeiros has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
sidx64 has joined #ruby
apeiros has joined #ruby
ramfjord has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
eckhardt has joined #ruby
sidx64 has quit [Client Quit]
hahuang65 has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
apeiros has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 248 seconds]
iMadper has joined #ruby
dhollinger has quit [Quit: WeeChat 1.0.1]
jottr_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
druonysus has quit [Quit: Konversation terminated!]
hahuang65 has joined #ruby
dhollinger has joined #ruby
apeiros has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
eckhardt has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has joined #ruby
apeiros has joined #ruby
anisha has joined #ruby
bigblind has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
sidx64 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.9.1]
sidx64 has quit [Max SendQ exceeded]
jottr_ has quit [Ping timeout: 248 seconds]
sidx64 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Client Quit]
halt has joined #ruby
halt is now known as Guest84153
Mon_Ouie has joined #ruby
jottr_ has joined #ruby
aufi has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
hndk has quit [Quit: Leaving]
hahuang65 has joined #ruby
troys has quit [Quit: Bye]
aufi has quit [Remote host closed the connection]
jottr_ has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigblind has joined #ruby
oleo has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jottr_ has joined #ruby
n008f4g_ has joined #ruby
sidx64_ has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
sammi` has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
Gucciferal has joined #ruby
sidx64 has joined #ruby
jottr_ has joined #ruby
sidx64_ has quit [Ping timeout: 248 seconds]
sammi`__ has quit [Quit: Lost terminal]
ta_ has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
kapil___ has joined #ruby
jottr_ has joined #ruby
itp_student|3290 has joined #ruby
ianmalcolm has quit [Ping timeout: 240 seconds]
luminous has quit []
itp_student|3290 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jottr_ has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
Gucciferal has quit [Ping timeout: 256 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
ianmalcolm has joined #ruby
jottr_ has joined #ruby
cdg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
mr_foto has quit []
jottr_ has quit [Ping timeout: 252 seconds]
sidx64_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
sidx64 has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
jottr_ has joined #ruby
sidx64_ has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
conta has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
yokel has quit [Ping timeout: 248 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
guardianx has joined #ruby
aguestuser has quit [Remote host closed the connection]
aguestuser has joined #ruby
hahuang65 has joined #ruby
alfiemax has joined #ruby
pwnd_nsfw has joined #ruby
jottr_ has joined #ruby
m27frogy has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
yokel has joined #ruby
alfiemax has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
suukim has joined #ruby
yokel has quit [Remote host closed the connection]
devil_tux has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
cdg has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
dionysus69 has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
jottr_ has joined #ruby
alfiemax has joined #ruby
karapetyan has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
jottr_ has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
bigblind has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
jottr_ has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 240 seconds]
ryzokuken has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
aufi has joined #ruby
uptime is now known as robot
clemens3 has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
aufi has quit [Remote host closed the connection]
schneider- has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
jottr_ has joined #ruby
aufi has joined #ruby
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby
jottr_ has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
jottr_ has joined #ruby
hahuang65 has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
m27frogy has joined #ruby
guardianx has quit []
yokel has joined #ruby
melodia[m] has joined #ruby
guardianx has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
andikr has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
DTZUZO has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
jottr_ has joined #ruby
bigblind has joined #ruby
chihhsin has quit [Read error: Connection reset by peer]
chihhsin has joined #ruby
yokel has quit [Remote host closed the connection]
zapata has quit [Ping timeout: 256 seconds]
jottr_ has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
QpQ4_ has quit [Ping timeout: 245 seconds]
Burgestrand has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
yokel has joined #ruby
claudiuinberlin has joined #ruby
reber has joined #ruby
hahuang61 has joined #ruby
DTZUZO has joined #ruby
jottr_ has joined #ruby
yokel has quit [Remote host closed the connection]
guardianx has quit [Read error: Connection reset by peer]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 256 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
aupadhye has joined #ruby
tomphp has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
jottr_ has joined #ruby
yokel has joined #ruby
nowhere_man has joined #ruby
DTZUZO has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
jottr_ has joined #ruby
Fusselgesicht has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
zapata has joined #ruby
DTZUZO has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
jottr_ has joined #ruby
TvL2386 has quit [Remote host closed the connection]
Sauvin has quit [Ping timeout: 260 seconds]
Mike11 has joined #ruby
Sauvin has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
TvL2386 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
marr has joined #ruby
DTZUZO has quit [Ping timeout: 265 seconds]
DTZUZO has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
sidx64 has joined #ruby
logoscoder_ has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
logoscoder has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
DTZUZO has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
cdg has quit [Ping timeout: 245 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
iMadper has quit [Remote host closed the connection]
Beams has joined #ruby
hahuang65 has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
apeiros has joined #ruby
karapetyan has quit [Remote host closed the connection]
DTZUZO has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
hahuang65 has joined #ruby
cdg has joined #ruby
eblip has quit [Quit: WeeChat 1.9.1]
nfk has joined #ruby
eb0t has quit [Quit: WeeChat 1.9.1]
hahuang65 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
nielsk has quit [Excess Flood]
nielsk has joined #ruby
hahuang65 has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
DTZUZO has joined #ruby
jottr_ has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
sidx64 has joined #ruby
alex`` has joined #ruby
DTZUZO has quit [Ping timeout: 276 seconds]
jottr_ has quit [Ping timeout: 276 seconds]
sidx64 has quit [Client Quit]
sidx64 has joined #ruby
hahuang65 has joined #ruby
ldepandis has joined #ruby
schneider- has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
jaruga has joined #ruby
hahuang65 has joined #ruby
jaruga has quit [Remote host closed the connection]
<agent_white> if ruby was a physical object, what would it be?
<tobiasvl> a red gemstone
<dminuoso> This.
hahuang61 has joined #ruby
karapetyan has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
eb0t has joined #ruby
eb0t has quit [Client Quit]
<agent_white> ooo i would wield both! i was thinking silly putty.
hahuang61 has quit [Ping timeout: 240 seconds]
karapetyan has quit [Ping timeout: 255 seconds]
<dminuoso> agent_white: Honestly I've found this picture to be fitting: https://rot47.net/_s/upload/2013/10/31/1fdf757bdbe24d106e17d3c96d167b8a.jpg
<dminuoso> (Note that Haskell is so advanced, it looks like alien tech compared to the rest)
sidx64 has quit [Client Quit]
adlerdias has joined #ruby
sidx64 has joined #ruby
schneider- has joined #ruby
<agent_white> mushrooms would be a rough cutting utensil, unlike the others.
hahuang65 has joined #ruby
<apeiros> dminuoso: they should have put a supersonic screwdriver as the pic for haskell
<apeiros> oh, just sonic, not supersonic.
schneider- has quit [Ping timeout: 256 seconds]
<dminuoso> (Note when I say "advanced" I dont mean to say better, just that its technology simply far ahead)
<dminuoso> apeiros: Heh
hahuang65 has quit [Ping timeout: 265 seconds]
goatish has joined #ruby
amatas has joined #ruby
thesubr00t has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
eb0t has joined #ruby
<thesubr00t> Hi all
<thesubr00t> I have an object services that I want to test using Rspec, but I don't know what is the proper way to do that.
ts__ has joined #ruby
<thesubr00t> Any help ?
<dminuoso> thesubr00t: Test behavior.
eblip has joined #ruby
suukim has quit [Quit: Konversation terminated!]
<thesubr00t> dminuoso, the service is responsible for generating a CSV file, does that mean that I should compare the result with a pregenerated file?
<dminuoso> thesubr00t: Sure that sounds great.
<dminuoso> thesubr00t: Though the question is what you are testing specifically.
<dminuoso> thesubr00t: For ExportSurveyResponsesService I would probably mock SurveyAnnexService, and ensure that it gets called.
hahuang65 has joined #ruby
fribmendes has joined #ruby
<thesubr00t> dminuoso, I've tried with instance_double & recieve(:call) but I get:
<thesubr00t> (InstanceDouble(ExportSurveyResponsesService::SurveyAnnexService) (anonymous)).new(*(any args))
<thesubr00t> expected: 1 time with any arguments
<thesubr00t> received: 0 times with any arguments
<thesubr00t> same fr :new
<thesubr00t> for*
drewmcmillan has joined #ruby
drewmcmillan has quit [Client Quit]
leitz has joined #ruby
<thesubr00t> dminuoso, here is the spec file so far export_survey_responses_service.rb
hahuang65 has quit [Ping timeout: 240 seconds]
<dminuoso> thesubr00t: Though strictly speaking I wouldnt have any "Service" module to begin with.
<dminuoso> "Service" is a ruby way of saying "global singleton"
<thesubr00t> dminuoso, Its a Rails service
<dminuoso> thesubr00t: Still.
<dminuoso> thesubr00t: Global singletons create invisible dependencies and hidden global state.
tvw has joined #ruby
<thesubr00t> dminuoso, So how should I implement that?
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> thesubr00t: You just pass things. Services are to controllers what helpers are to views.
<thesubr00t> dminuoso, Ok thanks :)
mtkd has quit [Ping timeout: 248 seconds]
<dminuoso> thesubr00t: Thats my personal opinion anyhow. The majority of rails people seem to be sold on the idea of using global mutable state to solve problem, magically injected globally available helpers, and invisible callbacks to control behavior.
<thesubr00t> dminuoso, I get your opinion :)
mtkd has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
sidx64 has joined #ruby
ianmalcolm has quit [Remote host closed the connection]
ianmalcolm_ has joined #ruby
<tbuehlmann> I'm okay with "services" or command objects ¯\_(ツ)_/¯
sidx64 has quit [Client Quit]
hahuang65 has joined #ruby
<dminuoso> tbuehlmann: command objects - you mean "functions" right? :P
Cavallari has joined #ruby
<dminuoso> tbuehlmann: The thing is, they tend to be easier to test. Assume some: def Q.conn(config); @conn ||= Connection.new(config); end;
<dminuoso> This is just memoization, I dont mind this.
Papierkorb has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
alfiemax_ has joined #ruby
thesubr00t has quit [Quit: Ex-Chat]
drewmcmillan has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
rrutkowski has joined #ruby
milardovich has joined #ruby
phaul has joined #ruby
logoscoder_ has quit [Read error: Connection reset by peer]
logoscoder_ has joined #ruby
rrutkowski has quit [Client Quit]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rrutkowski has joined #ruby
hahuang61 has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
ramfjord has joined #ruby
schneider- has joined #ruby
jottr_ is now known as jottr
InfinityFye has joined #ruby
karapetyan has quit [Ping timeout: 256 seconds]
InfinityFye has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
sidx64 has joined #ruby
jenrzzz has joined #ruby
ldnunes has joined #ruby
hahuang65 has joined #ruby
bigblind has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 240 seconds]
Psybur has joined #ruby
Psybur has joined #ruby
Psybur has quit [Changing host]
suukim has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz> Is there any need for a gem/module to build a book from text files, or has it been done to death and I just missed it? https://github.com/makhidkarun/rb_tools/blob/master/bin/build_book
hahuang65 has joined #ruby
ferr1 has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
Mike11 has quit [Ping timeout: 240 seconds]
<tbuehlmann> dminuoso: eventually a service becomes a lambda, yep
milardovich has quit [Ping timeout: 260 seconds]
drewmcmillan has joined #ruby
sidx64 has joined #ruby
ferr1 has left #ruby ["WeeChat 2.0.1"]
<leitz> Hmm..I thought methods had access to variables defined in an outer scope, assuming the method didn't declare its own variable with the same name.
wojnar has joined #ruby
hahuang65 has joined #ruby
<darix> leitz: no
<darix> why would they?
<leitz> darix, so you didn't have to redefine dozens of variables used by multiple methods?
logoscoder_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<apeiros> leitz: that's what you use object state for, via @instance_variables
<leitz> Doesn't seem like a good object candidate though.
<apeiros> don't know what "it" is, so can't comment on that.
<apeiros> but if you have dozens of variables which are all accessed by multiple methods, then there are certainly one to many candidates for classes in there.
<leitz> apeiros, sorry. Coffee still kicking in. I'm taking text files and combining them into a book. Variables include the book's file name, the scene file names, directory names, etc.
hahuang65 has quit [Ping timeout: 260 seconds]
<apeiros> that sounds like a complex task and so naturally will have a couple of classes
<dostoyevsky> Does anyone know a project that uses antlr for ruby? I want to see how I can access the parsed data after calling my Parser.new("string") ... documentation seems very sparse
<leitz> Each scene gets written to a chapter file, and appended to the book.
drewmcmillan has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> tbuehlmann: The problem is thats not what most services ive seen model. And if they do, then stop calling it a "service" because thats just Javaism trying to make every simple concept some weird pattern.
<dminuoso> tbuehlmann: It's kind of hilarious what dependency injection becomes in a functionally oriented setting.
<dminuoso> It's just "arguments" :P
<apeiros> isn't DI just a fancy term for "I want to rely on an argument instead of (potentially global) state"?
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> leitz: yes, that code certainly lends itself to have a class or two
ryzokuken has joined #ruby
schneider- has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alex`` has quit [Ping timeout: 265 seconds]
DaveTaboola has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
schneider- has joined #ruby
sidx64 has joined #ruby
<leitz> apeiros, such as? Remember, I'm the OOP newbie. :)
<apeiros> the cheap thing is to start with a BookBuilder class
<dminuoso> apeiros: Yup. Haskell aside (I just happen to come across a lot of Haskell related topics), the core inside this is very useful: https://stackoverflow.com/a/14329487
<dminuoso> apeiros: And it largely can be applied to Ruby too. But the essential part is: Let's solve the real problem. Keep in mind that you are solving a problem, and that problem is the particular programming task at hand. Don't make your problem "implementing dependency injection".
rrutkowski has quit [Ping timeout: 248 seconds]
<apeiros> dminuoso: I'm just continuously amazed at how people manage to even come up with whole DI frameworks
hahuang65 has joined #ruby
<dminuoso> apeiros: +1
<apeiros> `Don't make your problem "implementing dependency injection"` is part of a larger pattern I've noticed years ago: puzzle coders
<apeiros> "I have this pattern, how can I fit this into my problem?"
<apeiros> instead of "this is my problem, how do I solve this?" and then "Ah, my solution matches the description of pattern X, so I'll tell my coworkers I solved it using pattern X" (as in: use pattern for communication, not for problem identification & solving)
<leitz> apeiros, I need to think through the class idea. I'm not against a small number of classes, if that pattern fits my problem. However, I'm not sure what problem the class(es) would solve outside passing variables.
<apeiros> leitz: why does it have to solve more problems than "outside passing variables"?
<leitz> apeiros, I can solve that with a hash.
<apeiros> sounds a bit like "why would I need money, other than to buy things?"
<apeiros> leitz: yes. in a worse way.
<apeiros> you can also solve it by using globals.
<apeiros> and that too is worse.
<leitz> Classes are easy, if you understand them well. I assume, haven't gotten there yet.
<dminuoso> apeiros: Another interesting part, is that a lot of patterns in languages emerge because of missing language tools to model some abstraction. DI is done frequently because first class support for currying functions or monads is lacking in most languages.
* leitz even avoids globals.
<apeiros> leitz: high time to get started then :-p
<dminuoso> apeiros: So you try to shoehorn some ability into a language and then call it a "pattern", put it into GoF and people will mindlessly copy it.
<dminuoso> I kind of detest GoF because of the impact the book has had
* leitz ensures his copy of GoF isn't too visible on the shelf.
hahuang61 has joined #ruby
<apeiros> leitz: and I think part of your problem to get used to classes is that you seem to think "but it must help me solve a complex problem!" - no, it doesn't. it's already something if it helps you solve your "I need to access this state" problem.
<dminuoso> leitz: I personally have started to make heavy usage of lambdas and currying in Ruby.
<dminuoso> Simply because I dont need the deep and complex meaning of objects with internal state.
<dostoyevsky> leitz: Are you using a SingletonFactoryForestRunForest to guard the book's visibility?
<leitz> dminuoso, I thought you didn't like lambdas?
<dminuoso> leitz: Ruby lambdas are the cleanest first class functions.
hahuang65 has quit [Ping timeout: 268 seconds]
<dminuoso> leitz: Its procs and blocks that have annoying semantics.
<dminuoso> Here's why:
<leitz> dostoyevsky, no classes at all. Yet. apeiros and dminuoso will probably convince me to change that.
<dminuoso> >> -> e { e }[1,2]
<ruby[bot]> dminuoso: # => wrong number of arguments (given 2, expected 1) (ArgumentError) ...check link for more (https://eval.in/967423)
adlerdias has quit [Quit: adlerdias]
RougeR has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 240 seconds]
<dminuoso> apeiros: Swiss quality internet!
* dminuoso grins
<apeiros> dminuoso: no, apple being stupid. tethered via my iphone through BT. plugging the iphone via lightning caused the tethering to reconnect.
<dminuoso> Haha
<apeiros> I could connect through company wifi too. but private laptop requires reauthorization daily through an arduous process. and ever since I've flatrate internet on my mobile, that's just the easier way.
bigblind has joined #ruby
<apeiros> additionally no potential corporate spying on my internet activity :-D
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
<dminuoso> leitz: So for example everytime you hear "Builder", you can actually just write a simple lambda.
<dminuoso> A "builder" is just something that "produces some results"
<apeiros> dminuoso: I think you're preparing leitz for something they'll encounter in maybe 2 or 3 years
<dminuoso> Hah
sidx64 has quit [Client Quit]
<leitz> dminuoso, I have read most of "Mastering Ruby Closures" to get a better understanding of procs and lambas. I know more, but considering how little I knew that's not saying much.
<dminuoso> leitz: Do you know what a method is?
bigblind has quit [Ping timeout: 256 seconds]
<leitz> I also promised to get the book out in the next couple weeks, so major refactoring will have to wait just a bit.
<dminuoso> leitz: Now remove "self", and conceptually you end up with a lambda.
<dminuoso> a lambda is just a function you can call, that produces some result.
<leitz> dminuoso, Ruby "assumes" self, correct?
<dminuoso> leitz: well, my point is methods are tied to objects
<dminuoso> lambdas are not
<apeiros> leitz: any method call without an explicit receiver is sent to self, yes
<leitz> Ah.
<apeiros> assuming that's what you mean by "assuming self"
hahuang65 has joined #ruby
<leitz> apeiros, yes. Like Python's self being explicit, I believe.
<dminuoso> leitz: Consider this: `m = -> e { puts e }` and `def m e; puts e; end`
<dminuoso> leitz: They kind of look the same right?
<dminuoso> neither is tied to some internal objects state
<leitz> Sorry if i seem like the dense kid in the back of the class. I'm actually the dense old guy in the front trying to re-learn.
<leitz> dminuoso, yes, absent " ->"
<dminuoso> leitz: that's just syntax, like def.
<dminuoso> leitz: -> is the "def" for lambdas :)
<leitz> Ah
* leitz gets his notepad and starts noting.
AJA4350 has joined #ruby
<dminuoso> leitz: https://eval.in/967426
sidx64 has joined #ruby
<dminuoso> leitz: There really isn't much do it. `func` is not basically a function. The cool thing is, you can pass `func` around.
<dminuoso> *func is basically
<leitz> That's part of what I didn't see before reading the book; why not use a method vice proc/lambda? Still letting that sink in and looking for use cases.
hahuang65 has quit [Ping timeout: 240 seconds]
<dminuoso> leitz: consider the opposite rather. why use a method?
<dminuoso> leitz: iow: what makes a method different from my `func` and `add`
<leitz> dminuoso, the familiarity of "def" and her cousins in other languages.
<leitz> Sort of like match and ~
<dminuoso> leitz: Methods have to reside in classes (always), which means they are tied to objects of that class. If
Beams has quit [Quit: .]
<dminuoso> So you have to have an object of that class around to invoke that method. If you want to invoke it "without a receiver", you actually make it a completely global method. There's very little in between
<dminuoso> a lambda lets you encapsulate the idea of some computation into a small local object that you can pass around.
melodia[m] has left #ruby ["User left"]
<leitz> dminuoso, not sure I get the "Methods have to reside in classes". I use "def ..." outside of classes in my regular code.
<apeiros> leitz: method(:your_method).owner will tell you where those end up
Beams has joined #ruby
<dminuoso> leitz: Even then they still end up in a class.
<dminuoso> leitz: And you cant (trivially) pass around a method itself as a value
jenrzzz has quit [Ping timeout: 252 seconds]
<apeiros> I'd like to challenge that :)
<dminuoso> apeiros: UnboundMethods have that problem you still need a value, and a :symbol is too lax
<apeiros> both, Object#method and symbols are trivial
<dminuoso> apeiros: For both you still need an object to make it meaningful
<apeiros> yes. it's still trivial.
schneider- has quit [Read error: Connection reset by peer]
schneider- has joined #ruby
<dminuoso> leitz: Let me phrase it differently.
<dminuoso> leitz: Have you ever consciously used a block?
<leitz> dminuoso, "used well", or just "used"? :P
<dminuoso> leitz: used.
<leitz> Then yes.
<dminuoso> leitz: Do you see the value in blocks?
<leitz> Usually.
alfiemax_ has quit [Remote host closed the connection]
<dminuoso> leitz: lambdas are blocks.
<dminuoso> (For the sake of this discussion this is close enough to the truth)
<leitz> Still working on multiple files open in the same block, and automatic closure.
hahuang65 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
alfiemax has joined #ruby
<dminuoso> leitz: `-> e { ... }` and `{ |e| ... }` are two different syntaxes for the same thing.
synthroid has joined #ruby
goatish has quit [Quit: Hibernating]
<tbuehlmann> dminuoso: I have a lot of command objects in my recent project, although they are placed in app/services, but well, that's just naming. and I find them helpful as in they are encapsulated pretty well and have a reasonable purpose. also, I don't clutter controllers and keep models free of method that do too much. so that's my take on it
<dminuoso> leitz: and that's also the same thing as: do |e| ... end
adlerdias has joined #ruby
<dminuoso> leitz: let me show you the use
hahuang65 has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
stairmast0r has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
DaniG2k has joined #ruby
karapetyan has joined #ruby
* leitz goes to read.
<dminuoso> leitz: Everytime you pass a block, you actually pass a *function* as an additional parameter. An anoymous function.
<dminuoso> It has no name, but it takes arguments and returns things
<dminuoso> It just looks a bit quirky because it doesn't look like a parameter since its not inside the () parens of the method call. But that's just the syntax being funky.
hahuang61 has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
armyriad has quit [Ping timeout: 256 seconds]
armyriad has joined #ruby
<leitz> Okay, taking this slowly.
Sauvin has quit [Ping timeout: 265 seconds]
<leitz> The first line of ex.md assuming File.open has a "block_given" set of code, correct? If no block given you can foo = File.open("foo.csv", "w"), correct?
<dminuoso> leitz: Yup, which it does =)
<dminuoso> leitz: But you can change this to _any_ other method that works with a block.
<dminuoso> Array#map is particularly interesting
<dminuoso> >> square = -> e { e * e }; puts square[4]
<ruby[bot]> dminuoso: # => 16 ...check link for more (https://eval.in/967450)
ryzokuken has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
<dminuoso> >> square = -> e { e * e }; [1,2,3,4,5].map(&square)
<ruby[bot]> dminuoso: # => [1, 4, 9, 16, 25] (https://eval.in/967451)
* leitz is still getting used to the & thing.
ldnunes has quit [Read error: Connection reset by peer]
<dminuoso> leitz: just ignore it silently for now.
<dminuoso> leitz: For the purpose of this discussion you can pretend its not there.
<dminuoso> leitz: I'd argue its actually a mistake from the Ruby authors to not allow it without an ampersand.
ldnunes has joined #ruby
<leitz> Brain locks up trying to derefence the pointer. :)
<dminuoso> leitz: For the purpose of reasoning about this, ignore the ampersand.
howdoi has quit [Quit: Connection closed for inactivity]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\du has joined #ruby
<\du> Hello, I want to get a string from a key in an array of hashes, there is any built-in function for it or should I iterate over the array? all the logic will happen in a .erb template, better here: https://kopy.io/QKLGa#Aj9Kphh1UKqFKk any clue? Thanks
<leitz> dminuoso, the first line in ex.md is similar to this, correct? https://github.com/makhidkarun/rb_tools/blob/master/bin/build_book#L69-L73
cgfbee has quit [Excess Flood]
<dminuoso> leitz: Yes
<dminuoso> leitz: That { |f| .... } part
<dminuoso> leitz: Is basically a function defined inline.
<leitz> The "handler"
<dminuoso> You just never assign it to a variable, you just pass that function along to Fileopen
<dminuoso> leitz: Yeah.
hahuang65 has joined #ruby
<dminuoso> \du: Just `map` to map each element to the respective URL, and then join them together.
workmad3 has quit [Ping timeout: 240 seconds]
Sauvin has joined #ruby
milardovich has joined #ruby
<leitz> dminuoso, the handler can use variables defined in the outer scope, correct? I think that's what I understood from the book. If so then I can use that to clean up the code a bit.
ryzokuken has quit [Ping timeout: 240 seconds]
<dminuoso> leitz: Yeah.
<dminuoso> leitz: That part (the ability to use things from outside the function definition) is why you call it a closure.
bigblind has joined #ruby
<dminuoso> leitz: But at the core `handler` is just a function
<dminuoso> not unlike:
bmurt has quit [Ping timeout: 268 seconds]
<dminuoso> square = -> e { e * e }
jenrzzz has quit [Ping timeout: 268 seconds]
cgfbee has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
<leitz> Okay, I need to let this soak in and re-read that section of the book. My boss might appreciate some time on work tasks as well. :)
<leitz> This is cool.
<\du> dminuoso: Thanks for the tip, I will try. It is for a Chef recipe, not a ruby expert :-/
ryzokuken has joined #ruby
<dminuoso> \du: a = {'locale' => 'en','url' => 'weben.net'}
<dminuoso> \du: How do you get `weben.net` ?
milardovich has quit [Ping timeout: 260 seconds]
bigblind has quit [Ping timeout: 260 seconds]
<\du> dminuoso: I use this array of hashes in other place doing a <% @domains.each do |domain| %> ... <%= domain['url'] %>..
ivan_ has joined #ruby
<\du> but now I want to generate a regexpr to be used in one http server directive
jenrzzz has joined #ruby
jcalla has joined #ruby
k0mpa has joined #ruby
hahuang65 has joined #ruby
<dminuoso> \du: Right. So you can use the same idea for `map` :)
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
<dminuoso> \du: i.e. hash.map { |d| d['url'] }.join('|')
<\du> foo.map { |domain| domain['url'] }.join('|')
<\du> dminuoso: just got it, thanks!
<dminuoso> Even better.
Beams has quit [Quit: .]
ivan_ has quit [Quit: ivan_]
ams__ has joined #ruby
mtkd has quit [Ping timeout: 268 seconds]
Beams has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
schneider- has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
konos5__ has joined #ruby
schneider- has joined #ruby
Burgestrand has quit [Quit: Closing time!]
hahuang65 has joined #ruby
mrBen2k2k2k has quit [Ping timeout: 256 seconds]
redondos has quit [Ping timeout: 256 seconds]
mrBen2k2k2k_ has quit [Ping timeout: 256 seconds]
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 245 seconds]
bmurt_ has joined #ruby
milardovich has joined #ruby
ryzokuken has joined #ruby
synthroid has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
schneider- has quit [Ping timeout: 268 seconds]
alex`` has joined #ruby
Burgestrand has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
redondos has joined #ruby
redondos has joined #ruby
schneider- has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gheegh has quit [Ping timeout: 245 seconds]
hahuang65 has joined #ruby
ianmalcolm_ has quit [Quit: ZNC 1.6.5 - http://znc.in]
ianmalcolm has joined #ruby
DLSteve_ has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
karapetyan has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
tomphp has joined #ruby
ryzokuken has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
\du has quit [Quit: Lost terminal]
DTZUZO has joined #ruby
synthroid has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
bigblind has joined #ruby
hahuang65 has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
pastorinni has joined #ruby
spiette has joined #ruby
DTZUZO has quit [Quit: WeeChat 2.0]
DaniG2k has quit [Quit: leaving]
suhdood has joined #ruby
joe_from_maine has joined #ruby
gnufied has joined #ruby
Cavallari has quit [Quit: Cavallari]
cadillac_ has quit [Read error: Connection reset by peer]
fribmendes has quit [Quit: Zzzz...]
[Butch] has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
papajo has joined #ruby
hahuang65 has joined #ruby
cadillac_ has joined #ruby
minimalism has quit [Quit: minimalism]
suukim has quit [Quit: Konversation terminated!]
Rapture has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
bigblind has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
morfin has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
nowhere_man has quit [Ping timeout: 248 seconds]
Zaab1t has joined #ruby
fribmendes has joined #ruby
d10n-work has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
morfin has joined #ruby
fribmendes has quit [Client Quit]
devil_tux has quit [Ping timeout: 256 seconds]
DaniG2k has joined #ruby
IceDragon has joined #ruby
papajo has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
ryzokuken has joined #ruby
howdoi has joined #ruby
cschneid has quit [Remote host closed the connection]
logoscoder has joined #ruby
tildes has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toks has joined #ruby
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
hahuang61 has quit [Ping timeout: 268 seconds]
alex`` has quit [Ping timeout: 240 seconds]
wojnar has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 245 seconds]
netherwolfe has joined #ruby
ryzokuken is now known as ryzokuken[zzz]
ryzokuken[zzz] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
toks has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tomphp has joined #ruby
yonahw has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
cschneid has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
morfin has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zaab1t has quit [Quit: Zaab1t]
fribmendes has joined #ruby
amatas has quit [Quit: amatas]
amatas has joined #ruby
Zaab1t has joined #ruby
clemens3 has quit [Ping timeout: 268 seconds]
gnulnx has joined #ruby
synthroid has quit [Remote host closed the connection]
hahuang65 has joined #ruby
karapetyan has joined #ruby
Derperpe- has left #ruby ["WeeChat 2.0"]
oleo has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
karapetyan has quit [Ping timeout: 252 seconds]
Burgestrand has quit [Quit: Closing time!]
aufi has quit [Quit: Leaving]
troys has joined #ruby
conta has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hahuang65 has quit [Ping timeout: 276 seconds]
starseed0000 has joined #ruby
apeiros has joined #ruby
goatish has joined #ruby
raynold has joined #ruby
hahuang65 has joined #ruby
cagomez has joined #ruby
joe_from_maine has quit [Quit: leaving]
cagomez has quit [Remote host closed the connection]
suhdood has quit [Remote host closed the connection]
hahuang61 has joined #ruby
brewops has joined #ruby
cagomez has joined #ruby
milardovich has joined #ruby
<brewops> Does anyone know if there is a puma specific channel anywhere?
hahuang65 has quit [Ping timeout: 240 seconds]
marens has quit [Remote host closed the connection]
trautwein has quit [Ping timeout: 240 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ErhardtMundt has quit [Quit: No Ping reply in 180 seconds.]
mtkd has quit [Ping timeout: 240 seconds]
trautwein has joined #ruby
ErhardtMundt has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
marens has joined #ruby
marens has joined #ruby
marens has quit [Changing host]
hahuang61 has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
errakeshpd has joined #ruby
mjolnird has joined #ruby
hahuang65 has joined #ruby
jcarl43 has joined #ruby
mrBen2k2k2k_ has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
[Butch] has joined #ruby
dionysus69 has joined #ruby
schneider- has quit [Ping timeout: 248 seconds]
eckhardt has joined #ruby
jeffreylevesque has joined #ruby
mcr1 has quit [Ping timeout: 260 seconds]
balo has quit [Remote host closed the connection]
bmurt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 2.0.1]
bmurt has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
suukim has joined #ruby
jenrzzz has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
zacts has joined #ruby
<darix> brewops: dont think so
<brewops> Running into an issue with Puma itself thats not really rails related, so I suppose I could post here too in case anyone has ideas
anjen has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
\void has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
synthroid has joined #ruby
<havenwood> brewops: This is a good channel to ask in.
<brewops> Sounds good, here it is!
<brewops> We are using Puma with our Rails apps and ran into a fun scenario. We pack everything together including Ruby and all Gems and deploy it as an artifact. When we restart (reload) Puma, since Ruby was packed with the release the master process holds onto old files in the last release. Any idea how we could do something more like Unicorn reloads so the master process would let go of these files?
aupadhye has quit [Quit: Leaving]
stairmast0r has quit [Quit: bye]
dionysus69 has quit [Quit: dionysus69]
<darix> brewops: you mean the seamless restart mode from unicorn right?
<darix> where it hands down the listen socket?
<brewops> Yea, the unicorn reload starts new worker processes and finally the master resulting in a new master PID.
<brewops> With Puma, the master process is not restarted/reloaded or started new so it holds on Ruby files from the old release no matter the reload/restart method
<darix> hmm
<brewops> The only way to get Puma to switch over to using the new Ruby contained in the newest deployed artifact is a stop/start
<darix> readme.md mentions socket passing
<brewops> so far as I can see
jerikl has joined #ruby
<darix> but maybe it still holds onto the code
tvw has quit [Remote host closed the connection]
<brewops> Yea, the workers all do the right thing and end up running the new code
<brewops> So we didn't actually notice until we went poking around with lsof
hahuang65 has joined #ruby
<darix> i would ask in a github issue
<brewops> Not a bad idea, I'll give that a try
<brewops> Was hoping I was missing something :)
jenrzzz has quit [Ping timeout: 256 seconds]
darkhanb has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
suhdood has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
syamaoka has quit [Ping timeout: 268 seconds]
kies has quit [Ping timeout: 265 seconds]
nowhere_man has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
andikr has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
hahuang65 has joined #ruby
sanscoeur has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
karapetyan has joined #ruby
claudiuinberlin has joined #ruby
conta has joined #ruby
gnufied has quit [Quit: Leaving]
Success has joined #ruby
hahuang61 has joined #ruby
<Success> omg i just saw the new ruby
konos5__ has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
<Success> how easy is it to compile ruby on windows from source
gnufied has joined #ruby
Beams has quit [Quit: .]
karapetyan has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
Success has quit [Changing host]
Success has joined #ruby
RougeR has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 268 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
mcr1 has joined #ruby
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 240 seconds]
anisha has quit [Quit: This computer has gone to sleep]
lytol has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Zaab1t has joined #ruby
sammi`_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
guille-moe has quit [Ping timeout: 256 seconds]
ryzokuken13 has joined #ruby
marxarelli|afk is now known as marxarelli
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sammi` has quit [Quit: Lost terminal]
goatish has quit [Quit: Hibernating]
schneider- has joined #ruby
goatish has joined #ruby
alfiemax has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
aufi has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
ryzokuken13 has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
gizmore|2 is now known as gizmore
balo has joined #ruby
balo has quit [Client Quit]
hahuang65 has joined #ruby
Gnut has joined #ruby
balo has joined #ruby
karapetyan has joined #ruby
nfk has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<Gnut> If I have a static class method `self.create()`, what's the best way to reference the class if I'm looking to instantiate an instance e.g. `Classname.new()`?
<Gnut> Maybe self.new()?
SeepingN has joined #ruby
gnufied has quit [Ping timeout: 256 seconds]
SegFaultAX has joined #ruby
PaulCape_ has quit [Ping timeout: 252 seconds]
mzo has joined #ruby
PaulCapestany has joined #ruby
<apeiros> Gnut: just new()
<apeiros> if you insist on an explicit receiver, then self.new, yes
sameerynho has joined #ruby
discopatrick has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
shoogz has joined #ruby
shoogz has quit [Max SendQ exceeded]
<Gnut> apeiros: Cool, `new()` it is
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
shoogz has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
alfiemax has quit [Remote host closed the connection]
ryzokuken13 has joined #ruby
fribmendes has quit [Quit: Zzzz...]
ryzokuken13 has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
aufi has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
aufi has joined #ruby
dionysus69 has joined #ruby
hahuang65 has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
netherwolfe has quit [Read error: Connection reset by peer]
netherwolfe has joined #ruby
tomphp has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit []
gnufied has joined #ruby
ryzokuken has joined #ruby
mtkd has joined #ruby
eckhardt_ has joined #ruby
chouhoul_ has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
chouhou__ has joined #ruby
eckhardt has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
n0m4d1c has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
Success has quit [Ping timeout: 252 seconds]
brewops has quit [Quit: Page closed]
Success has joined #ruby
hahuang65 has joined #ruby
gnufied has quit [Quit: Leaving]
gnufied has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
conta has quit [Remote host closed the connection]
alfiemax has joined #ruby
suukim has quit [Quit: Konversation terminated!]
hahuang65 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
dionysus69 has quit [Quit: dionysus69]
alfiemax has quit [Ping timeout: 240 seconds]
mcr1 has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 268 seconds]
Dimik has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
roshanavand has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
larcara has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
knight33_ has joined #ruby
leah2 has quit [Ping timeout: 265 seconds]
knight33_ has quit [Max SendQ exceeded]
mtkd has quit []
anjen has quit [Quit: anjen]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
HashNuke has quit [Read error: Connection reset by peer]
fury has quit [Read error: Connection reset by peer]
Chew has quit [Read error: Connection reset by peer]
Brak____________ has quit [Read error: Connection reset by peer]
HashNuke has joined #ruby
Brak____________ has joined #ruby
fury has joined #ruby
Chew has joined #ruby
alfiemax has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
claudiuinberlin has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
habs has joined #ruby
marr has joined #ruby
<habs> hi -- i'm new to ruby, and i see some ruby code that says for example "def foo \n return @foo if defined?(@foo) \n" ... and then goes on to actually implement the function foo. what is the purpose of this statement, why have the "return if defined" line there?
cstrahan has joined #ruby
<apeiros> habs: looks like a (bad) memoization technique
<apeiros> i.e. the method will calculate an expensive value once, store it in @foo, and upon further calls just immediately return that value.
hahuang65 has joined #ruby
pastorinni has quit [Remote host closed the connection]
roshanavand has joined #ruby
<habs> apeiros: ah thanks, yes after looking that up i can see it's definitely memoization. it's used by gitlab, what would be a better way of doing memoization? via a gem?
hahuang65 has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
<apeiros> for starters, I prefer to use @_foo to indicate that the ivar is not to be used directly
<apeiros> then, if the value can't be nil or false, simply: @_foo ||= begin; …calc…; value; end
alex`` has quit [Read error: No route to host]
<apeiros> if the value can be nil/false, have a second variable to track the state. initialized with false. `if @foo_computed; @_foo; else; @_foo = …; end`
<apeiros> oh, forgot to set @foo_computed = true :)
<apeiros> if you need the whole thing in a threaded env, I'd probably resort to a gem (hoping there is one doing that correctly)
mzo has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
leah2 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerikl has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
jamesaxl has quit [Quit: WeeChat 2.0.1]
DTZUZU has quit [Quit: WeeChat 1.9]
kapil___ has quit [Quit: Connection closed for inactivity]
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bmurt has joined #ruby
aufi has quit [Remote host closed the connection]
Psybur has quit [Ping timeout: 265 seconds]
adlerdias has quit [Quit: adlerdias]
hahuang65 has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
errakeshpd has quit [Remote host closed the connection]
janos has joined #ruby
larcara has quit []
alfiemax has joined #ruby
janos is now known as kitsched
dionysus69 has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hahuang65 has joined #ruby
cagomez has quit [Remote host closed the connection]
cschneid has quit [Remote host closed the connection]
cschneid has joined #ruby
cschneid has quit [Remote host closed the connection]
alex`` has joined #ruby
cschneid has joined #ruby
stairmast0r has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mcr1 has joined #ruby
orbyt_ has quit [Client Quit]
Success has quit [Changing host]
Success has joined #ruby
kitsched has quit [Ping timeout: 245 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
zapata has quit [Read error: Connection reset by peer]
zapata has joined #ruby
yqt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
cagomez has joined #ruby
Cavallari has joined #ruby
fribmendes has joined #ruby
hahuang65 has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
SeepingN_ is now known as SeepingN
tcopeland has quit [Ping timeout: 268 seconds]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
milardovich has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
milardovich has joined #ruby
jrabe has quit [Quit: Disconnected]
jrabe has joined #ruby
DTZUZU has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
xcyclist has joined #ruby
milardovich has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
cagomez has joined #ruby
kies has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
dionysus69 has quit [Quit: dionysus69]
hahuang65 has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tomphp has joined #ruby
cagomez has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has quit [Ping timeout: 252 seconds]
aufi has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
k0mpa has quit [Remote host closed the connection]
eckhardt has joined #ruby
hahuang65 has joined #ruby
jerikl has joined #ruby
alfiemax has joined #ruby
cagomez has joined #ruby
Azure|dc has joined #ruby
Azure has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
yqt has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 252 seconds]
alfiemax has quit [Ping timeout: 268 seconds]
jeffreylevesque has quit [Ping timeout: 240 seconds]
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
cagomez has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Quit: WeeChat 1.9]
<cjohnson> Is there any tooling or migration guides for upgrading 2.2 -> 2.4?
<cjohnson> And is it generally necessary to also upgrade rails from 4 -> 5 when doing so?
ldnunes has quit [Quit: Leaving]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
<darix> cjohnson: 1. not sure you need many changes for 2.2 -> 2.4 at all 2. rails 4 is EOL if i recall correctly, or will be soon. so you want to consider upgrading.
s3nd1v0g1us has joined #ruby
<darix> cjohnson: support for ruby 2.2 might depend on your distro. but keep in mind 2.5 is out.
Yzguy has joined #ruby
<cjohnson> That much is beyond scope for me, I'm one guy in one dept across many depts and we are moving to 2.4
<cjohnson> so it's up to us to make our apps run on 2.4
<cjohnson> I'm getting at least this error after upgrading to 2.4: constant ::Fixnum is deprecated
<cjohnson> from ActiveSupport
ryzokuken has quit [Quit: Connection closed for inactivity]
<darix> ah yeah
n008f4g_ has joined #ruby
<darix> but that is a warning if i recall correctly :)
Zaab1t has quit [Quit: Zaab1t]
fribmendes has quit [Quit: Zzzz...]
<cjohnson> Hrm, it says it's a warning, but that's the error given in this stacktrace around why passenger isn't starting
<cjohnson> So, a little confusing
<darix> cjohnson: well on which rails 4 version are you?
<cjohnson> 4.2.0
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<cjohnson> We are tasked to upgrade apps to work on ruby 2.4, and if necessary, also upgrade to rails 5, but if it's a massive effort (20 apps or so), we may have to break it into chunks, unless upgrading ruby requires upgrading rails
<cjohnson> It doesn't make sense to upgrade rails to an intermediate version though
<cjohnson> If it's necessary to bump rails at all we will stop to do 5
<cjohnson> But I might give that a temporary try to see if it has any impact, for curiousity
cagomez has joined #ruby
<darix> cjohnson: rails 4.2.10 is the last version and 4.2 wont see more security fixes.
<darix> cjohnson: rails 5.2 is in RC now
<cjohnson> right
hahuang65 has joined #ruby
DTZUZU has joined #ruby
Success has quit [Ping timeout: 240 seconds]
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cjohnson> Nevermind the error is a red herring, the real error is in the logs
<cjohnson> missing database :)
<cjohnson> lol
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 256 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
hahuang61 has joined #ruby
zapata has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
aufi has quit [Remote host closed the connection]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Cavallari has quit [Quit: Cavallari]
hahuang65 has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
schneider- has quit [Ping timeout: 260 seconds]
jerikl has joined #ruby
pastorinni has joined #ruby
ircer2 has joined #ruby
dviola has joined #ruby
jottr has joined #ruby
s3nd1v0g1us has joined #ruby
fribmendes has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 268 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
tcopeland has joined #ruby
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 268 seconds]
hahuang65 has joined #ruby
amatas has quit [Quit: amatas]
jottr has joined #ruby
hahuang61 has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
gnufied has quit [Read error: Connection reset by peer]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
gnufied has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
hahuang61 has joined #ruby
GodFather has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
reber has quit [Remote host closed the connection]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Mike11 has joined #ruby
druonysus has quit [Ping timeout: 265 seconds]
jcalla has quit [Quit: Leaving]
jottr has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
govg has quit [Ping timeout: 268 seconds]
mjolnird has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 256 seconds]
roshanavand has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
shadeslayer has quit [Remote host closed the connection]
wolfshappen has quit [Ping timeout: 276 seconds]
AlHafoudh has quit [Ping timeout: 276 seconds]
alfiemax has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
AlHafoudh has joined #ruby
shadeslayer has joined #ruby
wolfshappen has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
alfiemax has quit [Ping timeout: 265 seconds]
druonysus has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
n008f4g_ has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
milardovich has quit [Ping timeout: 240 seconds]
Mike11 has quit [Quit: Leaving.]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
cliluw has joined #ruby
vutral|kali has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
suhdood has quit [Ping timeout: 276 seconds]
milardov_ has joined #ruby
eckhardt has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 248 seconds]
kapil___ has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
milardov_ has quit [Ping timeout: 248 seconds]
suhdood has joined #ruby
Puffball has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 256 seconds]
pastorinni has quit []
ircer2 has quit [Quit: .]
hahuang65 has joined #ruby
mtkd has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
dmitriy_ has joined #ruby
fribmendes has quit [Read error: Connection reset by peer]
dmitriy_ has quit [Read error: Connection reset by peer]
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
hahuang65 has quit [Ping timeout: 260 seconds]
druonysus has quit [Ping timeout: 265 seconds]
tomphp has quit [Read error: Connection reset by peer]
mtkd has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
mtkd has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
marxarelli is now known as marxarelli|afk
hahuang65 has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
Fusselgesicht has quit [Quit: leaving]
hahuang65 has quit [Client Quit]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
alfiemax has quit [Ping timeout: 260 seconds]
suhdood has quit [Remote host closed the connection]
hahuang65 has joined #ruby
synthroid has quit []
cadillac_ has quit [Ping timeout: 256 seconds]
cadillac_ has joined #ruby
shinnya has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
Yzguy has quit [Ping timeout: 240 seconds]
envex has quit []
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jerikl has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
phaul has quit [Ping timeout: 276 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
kies has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
chouhou__ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 256 seconds]
DLSteve_ has joined #ruby
jerikl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
hahuang65 has quit [Quit: WeeChat 2.0.1]
workmad3 has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
hahuang65 has joined #ruby
hahuang65 has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 260 seconds]
marxarelli|afk is now known as marxarelli
workmad3 has quit [Ping timeout: 264 seconds]
meinside has quit [Quit: Connection closed for inactivity]
milardovich has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
cagomez has quit [Ping timeout: 240 seconds]
halbbalda has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rf has joined #ruby
halbbalda has joined #ruby
ramfjord has joined #ruby
rf has quit [Client Quit]
mtkd has quit []
envex has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
mtkd has joined #ruby
netherwolfe has quit [Ping timeout: 265 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sanscoeu_ has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
John_Ivan has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
phaul has joined #ruby
cdg has joined #ruby
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
sanscoeur has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
sanscoeu_ has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
eckhardt has quit [Read error: Connection reset by peer]
konsolebox has quit [Ping timeout: 248 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
konsolebox has joined #ruby
Lara has joined #ruby
SeepingN_ is now known as SeepingN
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
n0m4d1c has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
Lara has left #ruby [#ruby]
ams__ has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
konsolebox has joined #ruby
chouhoulis has quit [Remote host closed the connection]
gnufied has joined #ruby
chouhoulis has joined #ruby
jottr has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 245 seconds]
n0m4d1c has quit [Remote host closed the connection]