jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Spami has quit [Quit: This computer has gone to sleep]
<jher> shevy: wow that bare-words thing shows some crazy metaprogramming
<Mon_Ouie> The code that is executed when a new instance of a class is created is the initialize method
<shevy> jher haha I loved the pictures
<jher> Reminds me of an XKCD a while back about JS
<shevy> we can not poke too much fun at javascript because it is the most popular language on github :( http://githut.info/
bonhoeffer_ is now known as bonhoeffer
esauOp has quit [Remote host closed the connection]
<shevy> lol
<shevy> floor(10.5)
<jher> It's pretty useful though
<jher> Not the floor, JS in general
<shevy> well you don't have an alternative
bruno- has quit [Ping timeout: 240 seconds]
<jher> Ha! `Array(16).join("wat" - 1) + "Batman!"`
yashinbasement has quit [Quit: Leaving]
garethrees has quit [Ping timeout: 240 seconds]
tno has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
diegoaguilar has joined #ruby
fgo has joined #ruby
jamesaxl|2 has quit [Remote host closed the connection]
migimunz has quit [Remote host closed the connection]
majjoha has joined #ruby
Mon_Ouie has joined #ruby
dopamean_ has quit [Ping timeout: 244 seconds]
pyon has quit [Quit: F...ix you, Emacs.]
dopamean_ has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
pyon has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tno has joined #ruby
kith has quit [Ping timeout: 246 seconds]
theery has joined #ruby
grenierm has quit [Quit: grenierm]
tejasmanohar has quit [Quit: WeeChat 1.3]
grenierm has joined #ruby
theery has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
Voker57 has quit [Read error: Connection reset by peer]
jhass has quit [Quit: Bye]
Rurik has quit [Ping timeout: 252 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
grenierm has quit [Quit: grenierm]
n0xff has joined #ruby
Rurik has joined #ruby
grenierm has joined #ruby
michaeldeol has joined #ruby
Rollabunna has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Ping timeout: 244 seconds]
qiukun has quit [Quit: qiukun]
claptor has quit [Quit: this channel is bakas]
yqt has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Stalkr_ has quit [Quit: Leaving...]
moeabdol has joined #ruby
bronson has joined #ruby
<pontiki> that's just silly
Mendenhall has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
moeabdol has quit [Ping timeout: 265 seconds]
roxtrongo has quit []
mahmoudmahfouz has joined #ruby
baweaver has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 250 seconds]
keen__________14 has quit [Read error: Connection reset by peer]
keen__________14 has joined #ruby
[k- has joined #ruby
failshell has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
failshell has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 255 seconds]
Kallis has joined #ruby
govt has joined #ruby
govt has joined #ruby
Rickmasta has quit [Read error: No route to host]
<shevy> that's legal javascript!
Lucky__ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
michaeldeol has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has joined #ruby
mistergibson has joined #ruby
bruno- has joined #ruby
HAL2328 has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
juanpablo____ has joined #ruby
failshell has quit [Ping timeout: 255 seconds]
<Ox0dea> >> "#{0/0.0}" * 16 + ' Batman!'
<ruboto> Ox0dea # => "NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!" (https://eval.in/428611)
datanoise has joined #ruby
datanoise has quit [Client Quit]
PaulCapestany has quit [Ping timeout: 260 seconds]
datanoise has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
<shevy> what is NaN in ruby
juanpablo____ has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
<Ox0dea> The same as NaN in any other language, presumably.
workmad3 has joined #ruby
grenierm has quit [Quit: grenierm]
mhenrixon is now known as mhenrixon_afk
fgo has joined #ruby
<jher> Divide by zero!
<jher> >> 0/0
<ruboto> jher # => divided by 0 (ZeroDivisionError) ...check link for more (https://eval.in/428612)
<jher> Wait so that means
<jher> 1 / 0.0
<jher> >> 1 / 0.0
<ruboto> jher # => Infinity (https://eval.in/428613)
<HAL2328> NaN = Not a Number
<jher> Wat
<jher> >> 0 / 0.0
<ruboto> jher # => NaN (https://eval.in/428614)
workmad3 has quit [Ping timeout: 252 seconds]
<jher> I'm confused why
<jher> 0 / 0 isn't NaN
<jher> But 0 / 0.0 is
<Ox0dea> jher: IEEE 754.
<HAL2328> 0 / 0.0 is NaN
<jher> 0x0dea: Ah, I see
fgo has quit [Ping timeout: 272 seconds]
grenierm has joined #ruby
<HAL2328> 0 is a fixnum
<HAL2328> 0.0 is float
<Ox0dea> >> [Float::NAN, Float::INFINITY] # jher
<ruboto> Ox0dea # => [NaN, Infinity] (https://eval.in/428619)
<Ox0dea> Notice the namespace under which they're defined.
cengizIO has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Most languages that use IEEE 754 semantics for floating point numbers provide some means to acquire NaN and Infinity.
<Ox0dea> Even C: https://eval.in/428620
scripore has joined #ruby
Mendenhall has joined #ruby
Guest1603 has quit [Quit: Leaving]
<shevy> hmmm
<shevy> why is the name Float::NAN
weemsledeux has joined #ruby
gambl0re has joined #ruby
<shevy> I was trying to desperately use Float::NaN
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> shevy: Do you even naming conventions?
<Ox0dea> (I secretly dislike it too. :/)
<shevy> because ruby enforces them?
<Ox0dea> Well, no, but they're socially enforced.
<shevy> oh like rubocop
[k- has quit [Read error: No route to host]
<Ox0dea> People excepting screaming snake case for constants, and it'd be a silly place to break the principle of least astonishment.
<Ox0dea> *People expect
<shevy> there is no such principle in ruby
<shevy> unless you are matz
<Ox0dea> And yet here we are discussing your (misplaced) astonishment.
<shevy> "we" are not doing anything, you are doing something
mhenrixon_afk is now known as mhenrixon
victorkohl has joined #ruby
<Ox0dea> This is a dialogue, the "di" indicating two.
mhenrixon is now known as mhenrixon_afk
jenrzzz has joined #ruby
<shevy> this is a dialogue?
<shevy> so we have constants upcased
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> under what procedure will they become capitalized or non-capitalized, aka NaN versus Infinity?
<shevy> as a String representation that is
[k- has joined #ruby
<shevy> >> (Math::HMM).to_s
<ruboto> shevy # => uninitialized constant Math::HMM (NameError) ...check link for more (https://eval.in/428622)
<shevy> somehow I seem to have CMath
shinnya has quit [Ping timeout: 260 seconds]
Contigi has joined #ruby
Lucky__ has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
jher has quit [Quit: Lost terminal]
FernandoBasso has quit [Quit: WeeChat 1.3]
mary5030 has quit [Remote host closed the connection]
grenierm has quit [Quit: grenierm]
mary5030 has joined #ruby
grenierm has joined #ruby
grenierm has quit [Client Quit]
matp has quit [Remote host closed the connection]
swgillespie has left #ruby ["Textual IRC Client: www.textualapp.com"]
quazimodo has joined #ruby
grenierm has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
RobertBirnie has joined #ruby
wildlander has joined #ruby
matp has joined #ruby
matp has quit [Remote host closed the connection]
fumk has quit [Ping timeout: 264 seconds]
matp has joined #ruby
Rurik has quit [Ping timeout: 250 seconds]
Rurik has joined #ruby
moeabdol has joined #ruby
sargas has joined #ruby
Mendenhall has quit [Ping timeout: 240 seconds]
based_ has joined #ruby
dorei has quit []
jher has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
victorkohl has quit []
moeabdol has quit [Ping timeout: 264 seconds]
based_ has quit [Client Quit]
grenierm has quit [Quit: grenierm]
dvabr has left #ruby [#ruby]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 244 seconds]
failshell has joined #ruby
davedev24 has joined #ruby
based_ has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
bazbing80 has quit [Ping timeout: 244 seconds]
failshell has quit [Ping timeout: 244 seconds]
jdawgaz has joined #ruby
PaulCapestany has joined #ruby
fumk has joined #ruby
d5sx43 has joined #ruby
d5sx43 has quit [Client Quit]
Soda has quit [Remote host closed the connection]
fgo has joined #ruby
majjoha has joined #ruby
sargas has quit [Quit: Leaving]
aaeron has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 240 seconds]
majjoha has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ricer has quit [Quit: Caught SystemExit exception.]
ricer has joined #ruby
KensoDev has joined #ruby
segfalt has joined #ruby
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
Rollabunna has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
aaeron has joined #ruby
mary5030 has joined #ruby
jgt has joined #ruby
deol has joined #ruby
theery has joined #ruby
I has joined #ruby
I is now known as Guest34419
theery has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 264 seconds]
hololeap has joined #ruby
psy_ has quit [Ping timeout: 268 seconds]
michaeldeol has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
davedev24 has quit [Ping timeout: 244 seconds]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
ricer has quit [Quit: Caught SystemExit exception.]
stardiviner has joined #ruby
KensoDev has quit [Remote host closed the connection]
esauOp has joined #ruby
esauOp_ has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ricer has joined #ruby
esauOp has quit [Ping timeout: 240 seconds]
hmsimha_ has quit [Quit: Leaving]
hmsimha_ has joined #ruby
jenrzzz has joined #ruby
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rakunh0 has joined #ruby
darkf has joined #ruby
segfalt has quit [Quit: segfalt]
juanpablo____ has joined #ruby
aaeron has quit [Quit: Leaving.]
juanpablo____ has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
based_ has joined #ruby
jdawgaz has joined #ruby
havenwood has joined #ruby
gener1c has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
gener1c_ has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 244 seconds]
based_ has quit [Client Quit]
braincrash has quit [Quit: bye bye]
roshanavand has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clarkenciel has quit [Remote host closed the connection]
fgo has joined #ruby
majjoha has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
braincrash has joined #ruby
theery has joined #ruby
ledestin has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
majjoha has quit [Ping timeout: 252 seconds]
Rakunh0 has joined #ruby
freerobby has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
bruno- has quit [Ping timeout: 252 seconds]
tejasmanohar has joined #ruby
<tejasmanohar> lol eval.so went down O.o
<tejasmanohar> right as i was using it... i don't think it was related, i didn't run anything bad, just a PHP function returning 0 and nothing else lol
<Ox0dea> tejasmanohar: isup.me
<tejasmanohar> http://isup.me/eval.so Ox0dea
<Ox0dea> tejasmanohar: Sure, I was just pointing out that there's a nicer URL.
tmtwd_ has quit [Quit: Leaving]
tmtwd has quit [Remote host closed the connection]
<tejasmanohar> Ox0dea: oh ok :P
<tejasmanohar> well shit man O.o
<tejasmanohar> hackathon project rekt
<Ox0dea> Why not operate your own sandbox?
yfeldblu_ has joined #ruby
Klumben has quit [Ping timeout: 246 seconds]
Shidash has quit [Ping timeout: 246 seconds]
ohaibbq has quit [Read error: Connection reset by peer]
johnhamelink has quit [Ping timeout: 246 seconds]
johnhamelink has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Klumben has joined #ruby
Shidash has joined #ruby
<tejasmanohar> Ox0dea: now i know _why_ i should! :P
<shevy> _why had one
<shevy> where is ze code to it
jgt has joined #ruby
based_ has joined #ruby
michaeldeol has joined #ruby
dfinninger has joined #ruby
Musashi007 has joined #ruby
codecop has quit [Quit: Išeinu]
<tejasmanohar> shevy: ?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
esauOp_ has quit [Remote host closed the connection]
<gizmore> that´s weird
<gizmore> module Ricer
<gizmore> class Thread < Thread
<gizmore> superclass mismatch for class Thread
<gizmore> in the lower line
ohaibbq has joined #ruby
<tejasmanohar> eval.in + eval.so are by the same people right?
bazbing80 has joined #ruby
<tejasmanohar> apeiros:
<gizmore> i think class Ricer::Thread < Thread might fix it?
jgt has quit [Ping timeout: 260 seconds]
<gizmore> or maybe i need Thread < System::Thread ?
nini1294 has joined #ruby
<shevy> tejasmanohar the code to it, since someone else suggested it
<shevy> gizmore I found usually that it helps to be more specific; sometimes you may have to use leading ::
<shevy> like I have one module RBT
wildlander has quit [Quit: Saliendo]
nini1294 has left #ruby [#ruby]
<gizmore> shevy: so ::Thread will mean the real Thread class from the "kernel"?
<tejasmanohar> oh
<tejasmanohar> yeah i don't see the code to it online
<shevy> inside of that, I have a module called Shared. When I define a class, like: module RBT; class Bla; then I can do either include Shared, or include RBT::Shared <-- I have been doing the extra :: work lately
<gizmore> shevy: like class Foo::Thread < ::Thread ?
moeabdol has joined #ruby
<shevy> gizmore if in doubt yeah although I never had to do ::Thread; I know that I had to use :: for ruby-gnome code, in the module Gtk
<gizmore> shevy: i am inheriting the real ruby thread class
<shevy> like, include Gtk::Colours versus ::Gtk::Colours
roshanavand has quit [Quit: Leaving]
<shevy> ok, class Foo must exist in your example yes?
<gizmore> Ricer::Thread inherits from "real"/"kernel" Thread class .. so Thread < ::Thread ?
<gizmore> the error happens on reloading code
<gizmore> when Ricer::Thread already exists
<shevy> will not this warning happen whenever you reload code anyway?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gizmore> shevy: no... on startup all is fine
<toretore> use ::Thread; when you reload the file, Ricer::Thread exists, and `Thread` in that context evaluates to Ricer::Thread, not ::Thread
<gizmore> yep... thanks shevy and toretore
<toretore> but Ricer::Thread's superclass is ::Thread, and when reloading, you're reopening the class, not redefining it, thus the mismatch
clarkenciel has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
moeabdol has quit [Ping timeout: 252 seconds]
TravisTheNavi has joined #ruby
howdoi has joined #ruby
Musashi007 has joined #ruby
<TravisTheNavi> Can somebody help me review my code?
<ruboto> TravisTheNavi, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/60bfff07c80f4f4f1c5f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
theery has quit [Remote host closed the connection]
<[k-> shevy: look! he is using ruby! https://youtu.be/DBXZWB_dNsw
<TravisTheNavi> It works until I get to line 15 and then I get an error saying "undefined local variable or method `x' for main:Object (NameError)
ranchodev has joined #ruby
<TravisTheNavi> Thank you ruboto!
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> [k-: I see Objective-C?
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> TravisTheNavi: You're setting `x` in the context of `getGuess`; it goes out of scope at the end of the method.
UtkarshRay has joined #ruby
<shevy> [k- a wunderkind!
Rakunh0 has joined #ruby
ricer has quit [Quit: Caught SystemExit exception.]
tejasmanohar has quit [Quit: WeeChat 1.3]
tejasmanohar has joined #ruby
tejasmanohar has quit [Client Quit]
<shevy> [k- that could be you
baweaver has joined #ruby
<Ox0dea> TravisTheNavi: What resource(s) are you using to learn Ruby?
<[k-> Ox0dea: it's in the early part of the video
<[k-> When he goes to his school and one-on-one with his lecturer
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> hold on, i'll just link it
<[k-> hm, you cant link timestamps in mobile
Musashi007 has quit [Quit: Musashi007]
<[k-> the video at 01:14
Rakunh0 has quit [Client Quit]
gix has quit [Ping timeout: 250 seconds]
<TravisTheNavi> Ox0dea: The internet.
scripore has joined #ruby
<TravisTheNavi> More accurately, I'm just looking up things that I need to know about the syntax. For example, I may look up how to define functions.
<TravisTheNavi> Etc.
<Ox0dea> Ruby doesn't have functions.
naim has joined #ruby
<TravisTheNavi> Really? So what did I do on line 2 of my code then?
<naim> hi guys
<Ox0dea> You defined a method.
<TravisTheNavi> I don't understand the difference.
<TravisTheNavi> I assumed that those two words were interchangeable.
<Ox0dea> Not quite.
<Ox0dea> A method is a function attached to an object.
<naim> right
failshell has joined #ruby
<Ox0dea> [k-: That is indeed Ruby.
<Ox0dea> >> def foo; end; method(:foo) # TravisTheNavi
<ruboto> Ox0dea # => #<Method: Object#foo> (https://eval.in/428631)
Musashi007 has joined #ruby
<Ox0dea> See? Even though I defined `foo` at the top level, it ends up being a method on the Object class.
<shevy> [k- he wants to work at apple :(
tejasmanohar_ has joined #ruby
gix has joined #ruby
<TravisTheNavi> Ox0dea: And so you use .foo to instance your method?
<Ox0dea> I'm afraid I can't make sense of the question. :/
<TravisTheNavi> To run the method.
<TravisTheNavi> After you have defined it.
<TravisTheNavi> Nevermind. I think I need to take a class on Ruby before I continue coding this program.
<Ox0dea> Consider reading a book?
<TravisTheNavi> It seems much different from any other language I've dealt with so far (I'm still a beginner, obviously.)
<TravisTheNavi> I have the Pickaxe book.
ndrei has joined #ruby
<TravisTheNavi> And Learn to Program.
<Ox0dea> Are you using them as doorstops? :P
<TravisTheNavi> I recently loaned Learn to Program to my friend (last night) so that I could get him interested in development.
<TravisTheNavi> So I can't really access it for awhile.
<Ox0dea> Well, that was kind of you.
<TravisTheNavi> I'm only using Ruby right now to help him out.
<Ox0dea> The MINASWAN is strong in this one.
<TravisTheNavi> MINASWAN?
failshell has quit [Ping timeout: 246 seconds]
<[k-> matz is nice and so we are nice (minaswan)
<TravisTheNavi> Quick question. I'd imagine that many of the users on this channel use Ruby professionally. Is Ruby really dying?
<TravisTheNavi> Ah, I see.
<[k-> Ruby is not dying, you are misinformed
<TravisTheNavi> Okay, good.
<Ox0dea> It is past its peak, for what that's worth.
<TravisTheNavi> Don't want to learn something that will be dead in 5 years.
<bnagy> just being subsumed by Rails
<bnagy> winky face
<naim> guys how you write clean and optimize code
<bnagy> naim: practice
<naim> where i can learn?
<Ox0dea> TravisTheNavi: See https://www.youtube.com/watch?v=zs0E4E83_X8 for an optimistic take on Ruby's decline.
<bnagy> naim: practice?
<Ox0dea> naim: Do you have a keyboard?
<bnagy> sounds like I'm being an ass but I'm really not
<naim> i mean any refference book
<naim> yup
<naim> dude
<naim> ;)
startupality has quit [Quit: startupality]
<bnagy> the best way to learn to write good code is to write 10s of thousands of lines of code
<naim> like 10 thousund hours of code :)
paradisaeidae has joined #ruby
<bnagy> books are like a tertiary resource imho
<TravisTheNavi> Thank you for the link, Ox0dea . Watching now.
Musashi007 has quit [Quit: Musashi007]
<TravisTheNavi> One more quick question: What do you personally use the Ruby language to develop?
<Ox0dea> I do a lot of boring-ass ETL, but being able to do it in Ruby keeps me sane.
<TravisTheNavi> I figured it could be good to learn for backend scripting of websites instead of learning PHP.
<Ox0dea> Ruby is good for almost everything, numerical analysis and scientific computing being the notable exceptions.
<bnagy> ruby is a fairly awesome prototyping language. It can be pretty much as low level as you want.
<bnagy> well, it's (imho) fine for scicomp, just slow
<bnagy> but it's quick to write, which is sometimes a good tradeoff
Musashi007 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
inteq has joined #ruby
theery has joined #ruby
fgo has joined #ruby
majjoha has joined #ruby
s00pcan has quit [Ping timeout: 244 seconds]
braincra- has joined #ruby
tejasmanohar_ has quit [Quit: tejasmanohar_]
RobertBirnie has joined #ruby
Rakunh0 has joined #ruby
qiukun has joined #ruby
aaeron has joined #ruby
majjoha has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 265 seconds]
fgo has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
Rakunh0 has quit [Client Quit]
ricer has joined #ruby
s00pcan has joined #ruby
RobertBirnie has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
cantaberry has quit []
Musashi007 has quit [Quit: Musashi007]
mary5030 has joined #ruby
qiukun has quit [Quit: qiukun]
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pranny has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
qiukun has joined #ruby
kriskropd has quit [Ping timeout: 246 seconds]
theery_ has joined #ruby
zenspider has quit [Quit: bye]
Rollabunna has joined #ruby
datanoise has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theery has quit [Ping timeout: 264 seconds]
<[k-> shevy: i can't be like him unfortunately
<[k-> he lives and breathes code
<[k-> he even dreams about it @.@
datanoise has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
jgt has joined #ruby
RobertBirnie has joined #ruby
jenrzzz has joined #ruby
ndrei has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 244 seconds]
based_ has joined #ruby
jgt has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
davedev2_ has quit []
ricer is now known as ricer2
<shevy> [k- well he is obsessed with it which is why he excels
ricer2 has quit [Quit: Caught SystemExit exception.]
juanpablo____ has joined #ruby
emba has quit [Remote host closed the connection]
moeabdol has joined #ruby
ricer2 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
RobertBirnie has quit [Ping timeout: 268 seconds]
<[k-> im not obsessed with code!
The_Phoenix has joined #ruby
HAL2328 has quit [Quit: Leaving]
juanpablo____ has quit [Ping timeout: 256 seconds]
The_Phoenix has quit [Max SendQ exceeded]
RobertBirnie has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
The_Phoenix has joined #ruby
workmad3 has joined #ruby
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> yeah me neither... from gregory brown recently https://pbs.twimg.com/media/CN7mzMVVEAACKVo.png:large
theery_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
craysiii has quit [Ping timeout: 246 seconds]
DeweyD has joined #ruby
pranny has quit [Remote host closed the connection]
DeweyD has quit [Client Quit]
datanoise has quit [Quit: Textual IRC Client: www.textualapp.com]
craysiii has joined #ruby
psy_ has joined #ruby
pranny has joined #ruby
voxxit has quit [K-Lined]
Hijiri has quit [K-Lined]
sparr has quit [K-Lined]
larissa has quit [K-Lined]
chinmay_dd has quit [K-Lined]
chinmay_dd has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparr has joined #ruby
larissa has joined #ruby
voxxit has joined #ruby
michaeldeol has joined #ruby
based_ has joined #ruby
khebbie has joined #ruby
Rickmasta has joined #ruby
Ketchy has joined #ruby
arescorpio has joined #ruby
naim has quit [Quit: Page closed]
khebbie has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 264 seconds]
pranny has quit [Remote host closed the connection]
DoctorMo_ has joined #ruby
freerobby has quit [Quit: Leaving.]
pranny has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fgo has joined #ruby
craysiii has quit [Ping timeout: 244 seconds]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
hmsimha_ has quit [Ping timeout: 265 seconds]
craysiii has joined #ruby
charliesome has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
hmsimha_ has joined #ruby
riotjones has joined #ruby
leat has joined #ruby
dfinninger has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
zenspider has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
arescorpio has quit [Quit: Leaving.]
Ox0dea has quit [Read error: No route to host]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hmsimha_ has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 255 seconds]
hmsimha_ has joined #ruby
<shevy> var odds = evens.map(v => v + 1);
<shevy> this is the feature of javascript
<[k-> that works?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
AlexAltea has joined #ruby
rcs has quit [Ping timeout: 256 seconds]
<mozzarella> es6 arrow functions
<shevy> baweaver: I think I found your logo -> http://blog.printfection.com/files/2012/10/grayshiver2.png
<shevy> [k- they even added classes!
<shevy> there be no boundaries between classes and prototypes any longer \o/
rcs has joined #ruby
<[k-> that's more terse than Ruby!
<[k-> (and Haskell)
pranny has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 268 seconds]
Rakunh0 has joined #ruby
pranny has joined #ruby
zenspider has quit [Quit: bye]
leat has quit [Ping timeout: 250 seconds]
phatypus has joined #ruby
weemsledeux has joined #ruby
pranny has quit [Read error: Connection reset by peer]
bronson has joined #ruby
pranny has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emba has joined #ruby
charliesome has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 255 seconds]
moahny has quit [Quit: moahny]
duncannz has quit [Remote host closed the connection]
emba has quit [Ping timeout: 265 seconds]
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.3/20150826023504]]
tkuchiki has joined #ruby
<TravisTheNavi> Quick question. Let's say I'm creating a program to read user input and capitalize it. I would first ask what city they were from. However, what if the user input was "san diego"? If I used the .upcase! method, only San would be capitalized.
<TravisTheNavi> How could I ensure that if there is a space located in the user's input, the following character is also capitalized?
<[k-> .split.map(&:upcase).join(' ')
phatypus has quit [Quit: .>]
Ox0dea has joined #ruby
ponga has quit []
tejasmanohar has joined #ruby
<Ox0dea> That should be :capitalize, not :upcase.
DoctorMo_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> >> 'san diego'.split.map(&:capitalize).join(' ') # TravisTheNavi
<ruboto> Ox0dea # => "San Diego" (https://eval.in/428709)
<Ox0dea> >> 'san diego'.gsub(/\b./, &:upcase)
<ruboto> Ox0dea # => "San Diego" (https://eval.in/428710)
tkuchiki has quit [Ping timeout: 244 seconds]
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
scripore has joined #ruby
pranny has quit [Remote host closed the connection]
scripore has quit [Client Quit]
pranny has joined #ruby
zenspider has joined #ruby
DenSchub has joined #ruby
<[k-> 'san diego and something else'.match(/^(.)(\w+ (.)){0,}/).captures
<[k-> >> 'san diego and something else'.match(/^(.)(\w+ (.)){0,}/).captures
<ruboto> [k- # => ["s", "omething e", "e"] (https://eval.in/428711)
<Ox0dea> What are you even doing?
<[k-> black magic
<Ox0dea> ?experiment
<ruboto> Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
<[k-> it works ok
roxtrongo has joined #ruby
pranny has quit [Remote host closed the connection]
majjoha has joined #ruby
pranny has joined #ruby
pranny has quit [Remote host closed the connection]
failshell has joined #ruby
pranny has joined #ruby
Rodya_ has quit [Quit: Leaving...]
pranny has quit [Remote host closed the connection]
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has joined #ruby
majjoha has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
failshell has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
ghr has joined #ruby
jgt has quit [Ping timeout: 250 seconds]
Ketchy has quit [Quit: Leaving]
jher has quit [Ping timeout: 272 seconds]
pranny has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Rakunh0 has joined #ruby
gambl0re has joined #ruby
pranny has quit [Remote host closed the connection]
fgo has joined #ruby
yardenbar has joined #ruby
AlexAltea has quit [Ping timeout: 250 seconds]
pranny has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
wldcordeiro has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 244 seconds]
bazbing80 has quit [Ping timeout: 256 seconds]
pranny has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 246 seconds]
solars has joined #ruby
youngbaks has joined #ruby
juanpablo____ has joined #ruby
sivsushruth has quit [Ping timeout: 250 seconds]
Symbiosisz has joined #ruby
Rollabunna has joined #ruby
sivsushruth has joined #ruby
phatypus has joined #ruby
juanpablo____ has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 240 seconds]
pranny has joined #ruby
andrei_la has joined #ruby
workmad3 has joined #ruby
Rollabunna has quit [Ping timeout: 250 seconds]
kriskropd has joined #ruby
tkuchiki has joined #ruby
FalseDeal has joined #ruby
FalseDeal has left #ruby [#ruby]
<nofxx> TravisTheNavi, activesupport has #titleize
youngbaks has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
watsy has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
sivsushruth has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
sivsushruth has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mendenhall has joined #ruby
andrei_la has quit []
AlexAltea has joined #ruby
tkuchiki has quit [Remote host closed the connection]
watsy has quit [Quit: Page closed]
AlexAltea has quit [Ping timeout: 250 seconds]
pranny has quit [Remote host closed the connection]
tkuchiki has joined #ruby
radgeRayden has joined #ruby
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
radgeRayden_ has quit [Ping timeout: 265 seconds]
Guest31 has joined #ruby
<zenspider> that's black magic?
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
emba has joined #ruby
majjoha has joined #ruby
emba has quit [Remote host closed the connection]
<nofxx> western abracadabra. oriental magic doesn't have a perfect understand of case ;)
pranny has joined #ruby
Guest34419 has quit [Quit: This computer has gone to sleep]
Exponential has joined #ruby
<nofxx> zenspider, you live in japan right? I'm confusing?
<zenspider> yes, you're confusing.
<arup_r> nofxx: he is from Seattle
jgt has joined #ruby
UtkarshRay has joined #ruby
aaeron has quit [Quit: Leaving.]
majjoha has quit [Ping timeout: 244 seconds]
I has joined #ruby
I is now known as Guest91381
jgt has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
pranny has quit [Remote host closed the connection]
pranny has joined #ruby
faces has joined #ruby
face has quit [Ping timeout: 252 seconds]
dotix has joined #ruby
* baweaver scratches head
phatypus has quit [Quit: .>]
fgo has joined #ruby
dionysus69 has joined #ruby
pranny has quit [Remote host closed the connection]
jimms has joined #ruby
jhass has joined #ruby
phutchins has quit [Ping timeout: 268 seconds]
clarkenciel has quit [Quit: Leaving]
pranny has joined #ruby
Hijiri has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
mhenrixon_afk is now known as mhenrixon
dotix has quit [Ping timeout: 264 seconds]
eGGsha has joined #ruby
Guest31 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
watsy_ has joined #ruby
roxtrong_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
copygift has joined #ruby
copygift has left #ruby [#ruby]
khebbie has quit [Ping timeout: 250 seconds]
roxtrongo has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
zenspider has quit [Ping timeout: 250 seconds]
acke has joined #ruby
acke has quit [Remote host closed the connection]
khebbie has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
acke has joined #ruby
acke has quit [Remote host closed the connection]
acke has joined #ruby
acke has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
acke has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
marienz has quit [Quit: upgrades]
fxn has joined #ruby
sagittarian has joined #ruby
Salehi has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
lampshades has joined #ruby
marienz has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
Rurik has joined #ruby
NightMonkey has quit [Ping timeout: 246 seconds]
khebbie has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has joined #ruby
lampshades has quit [Remote host closed the connection]
based_ has joined #ruby
sivsushruth has quit [Ping timeout: 264 seconds]
sivsushruth has joined #ruby
NightMonkey has joined #ruby
majjoha has joined #ruby
Spami has joined #ruby
failshell has joined #ruby
pranny has quit []
roxtrong_ has quit [Remote host closed the connection]
majjoha has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
failshell has quit [Ping timeout: 250 seconds]
TravisTheNavi has quit [Quit: Page closed]
roelof has joined #ruby
ghr has joined #ruby
Jackneill has joined #ruby
<roelof> why do I see this output: http://lpaste.net/140383 on this code : http://lpaste.net/140384
<roelof> I was expecting to see 1, 2, foo
Zackio has quit [Quit: C-x C-c]
acke has quit [Remote host closed the connection]
DeweyD has joined #ruby
Guest91381 has quit [Quit: This computer has gone to sleep]
Zackio has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
Hounddog has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
juanpablo____ has joined #ruby
fgo has joined #ruby
noethics has joined #ruby
<jimms> roelof: the 3 is your input; the Foobar comes first because 0 % 15 is 0
Hounddog has quit [Ping timeout: 244 seconds]
<jimms> Then the rest is falling to the else and just printing the number
Hounddog has joined #ruby
<roelof> oke, is there a way I can tell times not to use 0 or can I better use a while loop
<jimms> could add 1 to n or yeah, switch up your loop
acke has joined #ruby
acke has quit [Remote host closed the connection]
juanpablo____ has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
emba has joined #ruby
<fxn> roelof: another alternative is 1.upto(n)
yeticry has joined #ruby
youngbaks has joined #ruby
acke has joined #ruby
emba has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
juanpablo____ has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
<roelof> Thanks all. I have made it working
oo_ has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
everlost has joined #ruby
<everlost> hello
tkuchiki has quit [Ping timeout: 244 seconds]
stuartb has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 265 seconds]
<everlost> if /\A[a-z \r\n]+\Z/ =~ my_var
<everlost> can someone tell me what this ereg means?
<everlost> particulary the \Z/ part
<[k-> &ri Regexp
<fxn> \Z means "end of string, optionally matching before a trailing newline if there is one
<[k-> it's all listed there
platzhirsch has joined #ruby
<everlost> thanks guys
juanpablo____ has quit [Ping timeout: 268 seconds]
moeSeth has joined #ruby
Rollabunna has joined #ruby
<[k-> correction, this link above ^
leat has joined #ruby
acke has quit [Remote host closed the connection]
roelof has quit [Quit: Page closed]
Rollabunna has quit [Ping timeout: 246 seconds]
noethics has quit [Quit: Leaving]
Exponential has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arup_r> fxn: Hi
<arup_r> How are you ?
<fxn> hey arup_r ! fine, recovering from a week out in a Perl conference, how about you?
Spami has quit [Quit: This computer has gone to sleep]
radgeRayden_ has joined #ruby
<arup_r> fxn: doing good.. Once you said you will think about writing a book on constant autoloading.. Did you started ?
<arup_r> Waiting for your new talk on that same subject
<arup_r> :)
<jhass> here's my book on it: Avoid doing it where you can.
<jhass> Who do I contact to get it printed?
<fxn> heh, I have a personal conflict about that kind of things, in general prefer to contribute such work as part of the Rails docs rather than writing a book so I wrote a guide instead http://guides.rubyonrails.org/autoloading_and_reloading_constants.html
<arup_r> I read the doc.
bronson has joined #ruby
<arup_r> it is way much technical... In the middle of the doc I was lost..
<fxn> next step is to document constants in the Ruby documentation, again looking forward to do it in the Ruby project itself
dionysus69 has quit [Ping timeout: 250 seconds]
<arup_r> I read 3 times.. I have to read those many more times..
radgeRayden has quit [Ping timeout: 244 seconds]
<fxn> yeah, it's a bit technical, and the problem is constants in Ruby are a complicate and undocumented topic
<arup_r> jhass: I got a huge idea after seeing a talk of fxn , about `Class.new` and `class` keyword
<arup_r> I saw there first how class definitions got assigned to the constants.. Before that I had no that deep idea.
mhenrixon is now known as mhenrixon_afk
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spami has joined #ruby
<fxn> arup_r: good, surprising huh
<arup_r> yes it was..
<arup_r> I think you had 3 talks on the same subject if I remember correctly..
<arup_r> but someone have to see the first talk.. to understand the later
bronson has quit [Ping timeout: 246 seconds]
<arup_r> jhass: contact Pragprog :D
youngbaks has quit [Ping timeout: 265 seconds]
zenspider has joined #ruby
DeweyD has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
noethics has joined #ruby
based_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
<apeiros> oh great
Mon_Ouie has joined #ruby
<apeiros> MatchData#values_at does not work with named captures
n008f4g_ has joined #ruby
youngbaks has joined #ruby
noethics has quit [Quit: Leaving]
mhenrixon_afk is now known as mhenrixon
tkuchiki_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
jgt has joined #ruby
solars has quit [Ping timeout: 260 seconds]
roxtrongo has joined #ruby
quazimodo has joined #ruby
vmatiyko has joined #ruby
chipotle has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
roxtrongo has quit [Ping timeout: 246 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
jgt has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
arup_r has quit [Ping timeout: 244 seconds]
leafybas_ has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
bluOxigen has joined #ruby
ex0ns has quit [Remote host closed the connection]
quazimodo has joined #ruby
blackmesa has quit [Quit: WeeChat 1.3]
lxsameer has joined #ruby
fxn has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
jamesaxl has joined #ruby
jtirila has quit [Ping timeout: 246 seconds]
David27 has joined #ruby
jimms has quit [Remote host closed the connection]
jtirila has joined #ruby
leat has quit [Ping timeout: 255 seconds]
houhouli_ has joined #ruby
DmitryBochkarev has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
ex0ns has joined #ruby
David27 has quit [Remote host closed the connection]
houhoulis has quit [Ping timeout: 272 seconds]
stuartb_ has joined #ruby
jimms has joined #ruby
Fire1o6 has quit [Ping timeout: 240 seconds]
code1o6 has quit [Ping timeout: 240 seconds]
Salehi has quit [Remote host closed the connection]
code1o6 has joined #ruby
Fire1o6 has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
moeabdol has joined #ruby
jenrzzz has joined #ruby
majjoha has joined #ruby
choke has joined #ruby
codenapper has joined #ruby
minimuffins has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
eightfold has joined #ruby
youngbaks has quit [Quit: WeeChat 1.3]
[k- has quit [Ping timeout: 260 seconds]
[k-_ has joined #ruby
mprelude has joined #ruby
oo__ has joined #ruby
freestyl3r has joined #ruby
jtirila has quit [Ping timeout: 246 seconds]
jtirila has joined #ruby
oo_ has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
bkxd has joined #ruby
<freestyl3r> hi, i have the following hash: a = { b: { c: { d: 1 } } } but sometimes 'c' key can be missing: a = { b: { d: 1 } }
<freestyl3r> how can i access it in a universal way? i got this so far a[:b].fetch(:c, a[:b])[:d]
<freestyl3r> is there a cleaner way without repeating a[:b] insice fetch()?
xwct has quit [Ping timeout: 250 seconds]
stuartb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
xwct has joined #ruby
<jhass> not really, no. I'd probably assign it to a local
bruno- has quit [Ping timeout: 244 seconds]
<Mon_Ouie> And maybe just define a method to do that that takes the three keys and the hash as parameters
<freestyl3r> it would be nice if there was something like a[:b].fetch(:c, hash_so_far)[:d]
danieli has joined #ruby
<freestyl3r> tap seems to be doing what i'm asking
<freestyl3r> a[:b].tap { |h| h[:c] }[:d]
AlphaAtom has joined #ruby
bruno- has joined #ruby
ohaibbq has quit [Quit: Leaving...]
apt-get has joined #ruby
<shevy> tap dance \o/
SCHAAP137 has joined #ruby
chipotle has quit [Quit: cheerio]
allomov has joined #ruby
<jhass> freestyl3r: nope, tap will always return a[:b], never a[:b][:c]
startupality has joined #ruby
<apeiros> >> [:a, :b, :c].inject({ b: { d: 1 } }) { |h,k| h[k] || h }
<ruboto> apeiros # => {:d=>1} (https://eval.in/428795)
<apeiros> >> [:a, :b, :c].inject({ b: { c: { d: 1 } } }) { |h,k| h[k] || h }
<ruboto> apeiros # => {:d=>1} (https://eval.in/428796)
khebbie has joined #ruby
<freestyl3r> so this only works if i use it 2nd in chain
<apeiros> though, I question the soundness of a design which allows for this kind of structural changes
bruno- has quit [Ping timeout: 272 seconds]
<apeiros> above in abstract is `KEYS.inject(HASH) { |h,k| h[k] || h }`
alexherbo2 has joined #ruby
mahmoudmahfouz has joined #ruby
SenpaiSilver_ has quit [Quit: Leaving]
Salehi has joined #ruby
Salehi has quit [Read error: Connection reset by peer]
khebbie has quit [Ping timeout: 244 seconds]
FernandoBasso has joined #ruby
leat has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
bkxd has quit [Ping timeout: 250 seconds]
Mendenhall has quit [Ping timeout: 264 seconds]
ebarrett has quit [Quit: leaving]
<shevy> insanity prevails
yfeldblum has joined #ruby
last_staff has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
allomov has quit []
AlexAltea has joined #ruby
bruno- has joined #ruby
DmitryBochkarev has quit [Quit: Leaving]
workmad3 has joined #ruby
platzhirsch has left #ruby [#ruby]
gix has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 244 seconds]
juanpablo____ has joined #ruby
dima_ has joined #ruby
Salehi has joined #ruby
dima_ is now known as DmitryBochkarev
workmad3 has quit [Ping timeout: 244 seconds]
dima_ has joined #ruby
DmitryBochkarev has quit [Client Quit]
dima_ has quit [Client Quit]
dima_ has joined #ruby
juanpablo____ has quit [Ping timeout: 250 seconds]
dima_ has quit [Remote host closed the connection]
DmitryBochkarev has joined #ruby
greg has joined #ruby
bkxd has joined #ruby
watsy_ has quit [Ping timeout: 255 seconds]
codecop_ has quit [Remote host closed the connection]
Voker57 has joined #ruby
fgo has joined #ruby
Rurik has quit [Quit: Leaving]
Rurik has joined #ruby
emba has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
mahmoudmahfouz has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
Salehi has quit [Quit: Leaving]
Salehi has joined #ruby
DmitryBochkarev has quit [Quit: Leaving]
Salehi has quit [Read error: Connection reset by peer]
scripore has joined #ruby
scripore has quit [Client Quit]
stamina has joined #ruby
stuartb has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
DmitryBochkarev has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
segfalt has joined #ruby
<shevy> hmm
govt has quit [Ping timeout: 264 seconds]
<shevy> how do you add people to a rubygems project?
Rollabunna has quit [Ping timeout: 244 seconds]
CloCkWeRX1 has quit [Ping timeout: 244 seconds]
Stalkr^ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
Azure has joined #ruby
emba_ has joined #ruby
emba has quit [Read error: Connection reset by peer]
bkxd has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wnd has joined #ruby
gix has joined #ruby
leat has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
sivsushruth has quit [Ping timeout: 252 seconds]
k3asd` has joined #ruby
greg has quit [Remote host closed the connection]
agni_dev has joined #ruby
Spami has quit [Read error: No route to host]
leafybasil has joined #ruby
Spami has joined #ruby
agni_dev has quit [Client Quit]
joonty has joined #ruby
spider-mario has joined #ruby
Rollabunna has joined #ruby
blackmesa has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
tkuchiki has joined #ruby
jenrzzz has joined #ruby
eightfold has quit [Quit: eightfold]
tkuchiki has quit [Remote host closed the connection]
qwertme has joined #ruby
CloCkWeRX has joined #ruby
qwertme has quit [Client Quit]
jenrzzz has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
codenapp_ has joined #ruby
jenrzzz has joined #ruby
dorei has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: joonty]
codenapper has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
dotix has quit [Ping timeout: 255 seconds]
leafybasil has quit [Ping timeout: 272 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mahmoudmahfouz has joined #ruby
Kallis has joined #ruby
blackmes1 has joined #ruby
fgo has joined #ruby
dotix has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
codenapp_ is now known as codenapper
codenapper has quit []
codenapper has joined #ruby
emba_ has quit [Read error: Connection reset by peer]
emba has joined #ruby
shinnya has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
<shevy> ah... gem owner --add
skade has joined #ruby
symm- has joined #ruby
<freestyl3r> how can you conditionally method call on an object? example: a.merge(b) if condition
<jhass> that should work
codenapper has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest4993 has quit [Quit: ...]
<freestyl3r> if the condition fails it returns nil. at least in my case where i chain 2 method calls: a.merge(b).merge(c) if condition
<freestyl3r> i only want the last call to be optional
<jhass> but it on two lines
<jhass> *put
jimms_ has joined #ruby
<jhass> or a.merge(b).tap {|a| a.merge!(c) if condition } # note the !
jimms has quit [Ping timeout: 260 seconds]
slavox has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
Rurik has joined #ruby
<Ox0dea> >> Hash.const_get('Hash')
<ruboto> Ox0dea # => Hash (https://eval.in/428804)
Oka has joined #ruby
<freestyl3r> thanks. the tap method worked
<freestyl3r> i'm finding solutions but i'm starting to think the code looks funky
<freestyl3r> with all those merge/tap/fetch conditionals etc
<Ox0dea> That's because you're using LOC as a metric for quality code.
<freestyl3r> you mean that i try to do one-liners instead of properly expanding the code?
<Ox0dea> Aye.
mary5030 has quit [Remote host closed the connection]
houhouli_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
<Ox0dea> Brevity = concise expression; forcing things onto one line misses the second part.
<freestyl3r> you are not entirely wrong. since the code is going on a rails project i'm trying to keep controller/views short
<freestyl3r> but maybe the code is too "smart" for it's own good
sdothum has joined #ruby
<freestyl3r> example line from view:
<freestyl3r> link_to params.slice(:q, :sort).merge(q: c[:key]) { |_, old, new| old.include?(new) ? [old].flatten - [new] : [old, new].flatten },
<Papierkorb> uargh
eGGsha has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<Papierkorb> freestyl3r: I think it does something. But I'm not sure what.
millerti has joined #ruby
<jhass> that at very least needs an explanation by putting it into a properly named helper method
<freestyl3r> How did i get here :( i take pride in my C code https://github.com/foss-teiwest/irc-bot
<freestyl3r> but coming into ruby/rails
<jhass> what the hell is c? -> bad variable name
<freestyl3r> i'm finding i'm trying to be smart
mary5030 has quit [Ping timeout: 246 seconds]
Hrorek has joined #ruby
Rurik has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
Hrorek is now known as Rurik
northfurr has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Rurik has quit [Changing host]
Rurik has joined #ruby
blueOxigen has joined #ruby
startupality has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
khebbie has joined #ruby
postmodern has quit [Quit: Leaving]
[k- has joined #ruby
joonty has joined #ruby
bkxd has joined #ruby
khebbie_ has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
khebbie has quit [Ping timeout: 246 seconds]
jimms_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
jgt has quit [Ping timeout: 268 seconds]
joonty has quit [Ping timeout: 246 seconds]
khebbie_ has quit [Ping timeout: 252 seconds]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
failshell has joined #ruby
juanpablo____ has joined #ruby
tejasmanohar has joined #ruby
lolmaus has joined #ruby
fantazo has joined #ruby
patrick_star has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
mhenrixon is now known as mhenrixon_afk
etqqkoiflwhb has joined #ruby
juanpablo____ has quit [Ping timeout: 260 seconds]
failshell has quit [Ping timeout: 260 seconds]
etqqkoiflwhb has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
tkuchiki has joined #ruby
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
ekleog has quit [Remote host closed the connection]
ekleog has joined #ruby
ghr has joined #ruby
<[k-> anyone uses brackets from brackets.io?
etqqkoiflwhb has joined #ruby
etqqkoiflwhb has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
seefood has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
<seefood> Morning! I have an issue with an erubis template (run from puppet). I get a value into a variable, but I can't seem to compare it as an integer to test a threshold. @varname.int_i doesn't do it. what am I doing wrong?
<seefood> I mean @varname.to_i
apt-get has quit [Ping timeout: 250 seconds]
<jhass> what's the error you get?
<shevy> if both are integers then it would work
youngbaks has joined #ruby
<seefood> no error, that's the problem. it's not syntactically wrong, since I got it to run inside the puppet context.
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
<seefood> OK, good idea. 5 minutes.
symm- has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
mprelude has quit [Read error: Connection reset by peer]
<shevy> what happens after these 5 minutes :D
mhenrixon_afk is now known as mhenrixon
<[k-> drink some water shevy!
tkuchiki has joined #ruby
Spami has joined #ruby
solocshaw has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<jhass> ugh
<jhass> anyway, disk_size != disk_size
wldcordeiro has quit [Remote host closed the connection]
<jhass> er, != $disk_size
<jhass> local, @instance, @@class, $global, Constant
<Mon_Ouie> Also do not use eval
<jhass> yeah, was just going to that, @blockdevice wants to be a hash
<jhass> or @blockdevice_size rather
<seefood> I tried with @, $, nothing worked right.
<jhass> @blockdevises should be an array before you pass it to the template
<jhass> yes, disk_size != @disk_size != $disk_size
<jhass> these are three entirely different variables
<jhass> you got it right when you print, no idea why you think you need to change it for the condition
wldcordeiro has joined #ruby
<seefood> I guess. I've tried assigning with local vars methods, no good.
<jhass> what's the code where you set @blockdevices and @blockdevice_xxx_size ?
<seefood> @blockdevice may be better as a hash, but facter gives it to me as a string...
<seefood> [root@setup-42-1 ~]# facter|grep block blockdevice_sda_model => MB2000EAZNL blockdevice_sda_size => 2000398934016 blockdevice_sda_vendor => ATA blockdevice_sdb_model => MB2000EAZNL blockdevice_sdb_size => 2000398934016 blockdevice_sdb_vendor => ATA blockdevices => sda,sdb
<seefood> yuck. hang on...
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<seefood> [root@setup-42-1 ~]# facter|grep sdb
<seefood> blockdevice_sdb_model => MB2000EAZNL
<seefood> blockdevice_sdb_size => 2000398934016
<jhass> I need a really large bat for whenever I meet somebody who designed facter
<seefood> blockdevice_sdb_vendor => ATA
<seefood> blockdevices => sda,sdb
<jhass> !kick seefood Please use https://gist.github.com
seefood was kicked from #ruby by ruboto [Please use https://gist.github.com]
dfinninger has joined #ruby
apt-get has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
f4cl3y has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmes1 has joined #ruby
emba has quit [Ping timeout: 250 seconds]
stamina has quit [Ping timeout: 264 seconds]
Queeniebee has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
k3asd` has quit [Ping timeout: 265 seconds]
emba has joined #ruby
solocshaw has quit [Ping timeout: 244 seconds]
solocshaw has joined #ruby
stuartb has left #ruby ["Textual IRC Client: www.textualapp.com"]
dionysus69 has joined #ruby
leat has joined #ruby
jher has joined #ruby
sepp2k has joined #ruby
diegoaguilar has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
qwertme has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
f4cl3y has quit [Quit: Leaving]
solocshaw has joined #ruby
jgt has joined #ruby
qwertme has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
youngbaks has quit [Ping timeout: 252 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
apt-get has quit [Ping timeout: 252 seconds]
roxtrongo has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
jimms has joined #ruby
hellerbarde2 has quit [Remote host closed the connection]
roxtrongo has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
millerti has joined #ruby
jimms has quit [Client Quit]
diegoaguilar has quit [Read error: Connection reset by peer]
quazimodo has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
scripore has joined #ruby
dfinninger has quit [Remote host closed the connection]
nanoz has joined #ruby
Hounddog has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 246 seconds]
futilegames has joined #ruby
bigredboots has quit [Remote host closed the connection]
jim_ has joined #ruby
jim_ has quit [Client Quit]
northfurr has quit [Quit: northfurr]
tejasmanohar has quit [Quit: tejasmanohar]
riotjones has joined #ruby
ruby-lang457 has joined #ruby
futilegames has quit [Quit: futilegames]
Ropeney has joined #ruby
fgo has joined #ruby
riotjones has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
mahtennek has joined #ruby
ruby-lang457 has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 272 seconds]
acke has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
jenrzzz has joined #ruby
mary5030 has joined #ruby
khebbie has joined #ruby
bigredboots has joined #ruby
lxsameer has quit [Quit: Leaving]
startupality has quit [Quit: startupality]
startupality has joined #ruby
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
tejasmanohar has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
gregf has joined #ruby
juanpablo____ has joined #ruby
emba has quit [Read error: Connection reset by peer]
emba_ has joined #ruby
tejasmanohar has quit [Client Quit]
workmad3 has joined #ruby
acke has quit [Remote host closed the connection]
tejasmanohar has joined #ruby
jher has quit [Ping timeout: 255 seconds]
ordepdev has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
juanpablo____ has quit [Ping timeout: 240 seconds]
ordepdev has quit [Read error: No route to host]
ordepdev has joined #ruby
freestyl3r has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
mary5030 has joined #ruby
UtkarshRay has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
_ht has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
al2o3-cr has joined #ruby
rbennacer has joined #ruby
firstdayonthejob has quit [Read error: Connection reset by peer]
codecop has joined #ruby
codecop_ has joined #ruby
failshell has joined #ruby
diegoaguilar has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
failshell has quit [Ping timeout: 240 seconds]
dgutierrez1287 has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
mahmoudmahfouz has joined #ruby
RenardP has joined #ruby
ghr has joined #ruby
oo__ has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Azure has quit [Read error: Connection reset by peer]
xblade has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
h3ra has joined #ruby
emba_ has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 272 seconds]
emba has joined #ruby
RenardP has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0a2/20150906004019]]
Azure has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jher has joined #ruby
fgo_ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
acke has joined #ruby
roxtrongo has joined #ruby
nanoz has quit [Quit: <3]
Xiti has quit [Quit: Xiti]
dotix has quit [Ping timeout: 256 seconds]
acke_ has joined #ruby
ht__ has joined #ruby
ordepdev has quit [Remote host closed the connection]
dasher00 has joined #ruby
acke has quit [Ping timeout: 264 seconds]
sagittarian has quit [Ping timeout: 246 seconds]
arup_r has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
theery has joined #ruby
theery has quit [Remote host closed the connection]
h3ra has quit []
greg has joined #ruby
Xiti has joined #ruby
northfurr has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
mhenrixon is now known as mhenrixon_afk
allcentury has quit [Ping timeout: 272 seconds]
tejasmanohar has joined #ruby
isxek has joined #ruby
oo_ has joined #ruby
NeverDie has joined #ruby
xblade has quit [Remote host closed the connection]
fgo_ has quit [Ping timeout: 240 seconds]
Kallis has quit [Read error: Connection reset by peer]
fgo_ has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
krz has joined #ruby
Queeniebee has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhenrixon_afk is now known as mhenrixon
oo_ has quit [Ping timeout: 240 seconds]
saddad has joined #ruby
mahtennek has quit []
fantazo has quit [Quit: Verlassend]
mleung has joined #ruby
RobertBirnie has joined #ruby
futilegames has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
chipotle has joined #ruby
khebbie has joined #ruby
tejasmanohar has quit [Quit: tejasmanohar]
<Ox0dea> What explains the spike in Assembly's ranking?
tonios57 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
patrick_star has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
zenguy_pc has joined #ruby
Queeniebee has quit [Ping timeout: 264 seconds]
doublemalt__ has quit [Ping timeout: 252 seconds]
druznek has joined #ruby
<eam> asm.js
leat has quit [Remote host closed the connection]
MrFjords has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
leat has joined #ruby
<shevy> hehe
diegoaguilar has joined #ruby
<[k-> Ox0dea: what explains your disappearance?
yardenbar has quit [Quit: Leaving]
cornerma1 has joined #ruby
druznek has quit [Quit: Leaving]
dgutierrez1287 has quit [Remote host closed the connection]
dmolina has joined #ruby
scripore has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
tkuchiki has quit [Remote host closed the connection]
havenwood has joined #ruby
<Ox0dea> [k-: I used to do drugs.
khebbie has quit [Remote host closed the connection]
tjohnson has joined #ruby
<[k-> at least you changed now \o/
<[k-> hurray for changing for the better \o/
<[k-> ┌(・。・)┘ ♪ └(・。・)┐ ♪ ┌(・。・)┘
<[k-> havenwood: now you must cut down on caffeine
bkxd has quit [Ping timeout: 255 seconds]
* Ox0dea decides to let [k- have his bliss.
xblade has joined #ruby
ghr has joined #ruby
roxtrongo has quit [Remote host closed the connection]
garethrees has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
mleung has quit [Quit: mleung]
jenrzzz has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
jenrzzz has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
emba has quit [Read error: Connection reset by peer]
ndrei has quit [Read error: Connection reset by peer]
emba has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
<[k-> come back to #ot!
<Ox0dea> What's the category?
solars has joined #ruby
<[k-> hangman!
<Ox0dea> The Hangman category is "hangman"?!
riotjones has joined #ruby
emba has quit [Read error: Connection reset by peer]
emba has joined #ruby
* [k- splashes Ox0dea with water
vmatiyko has quit [Ping timeout: 240 seconds]
juanpablo____ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
dionysus69 has joined #ruby
jenrzzz has joined #ruby
emba has quit [Read error: Connection reset by peer]
bigredboots has quit [Remote host closed the connection]
emba has joined #ruby
grotewold has joined #ruby
neohunter has joined #ruby
riotjones has quit [Ping timeout: 244 seconds]
blue_deref has joined #ruby
<[k-> comebaaaaack
juanpablo____ has quit [Ping timeout: 244 seconds]
theery has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
emba has quit [Remote host closed the connection]
tmtwd has joined #ruby
platzhirsch has joined #ruby
MrFjords has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
spider-mario has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 250 seconds]
Papabear has quit [Ping timeout: 252 seconds]
bruno- has quit [Ping timeout: 264 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Papabear has joined #ruby
<shevy> sundays are not fundays
houhoulis has joined #ruby
* [k- strips fun off shevy's day
<Ox0dea> >> Time.new('Funday').sunday?
<[k-> shevy: now you are technically correct today
<ruboto> Ox0dea # => false (https://eval.in/428902)
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has joined #ruby
grotewold has joined #ruby
<platzhirsch> [k- you look like the rest of your name got lost
solocshaw has joined #ruby
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
roxtrongo has joined #ruby
bronson has joined #ruby
<[k-> this is in fact my full nick
mhenrixon is now known as mhenrixon_afk
khebbie has quit [Ping timeout: 244 seconds]
MrFjords has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
pandaant has joined #ruby
mhenrixon_afk is now known as mhenrixon
kirun has joined #ruby
jdawgaz has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
_ht has joined #ruby
MrFjords has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo_ has quit [Ping timeout: 246 seconds]
<shevy> what does that nick mean
rbennacer has quit [Remote host closed the connection]
<[k-> yea, platzhirsch, what does your nick mean
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch> I forgot
<Ox0dea> Wat.
<jhass> [k-: platzhirsch is a real german word, use your dictionary
<platzhirsch> The platzhirsch is the alpha stag in a group of deers, if that makes sense
rbennacer has joined #ruby
dmolina has quit [Quit: Leaving.]
mahmoudmahfouz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has joined #ruby
<[k-> im not german, how would i know if that is german?!
<[k-> Ox0dea: tell me if i would now
<jhass> google?
<platzhirsch> Yes, use your dictionary *slaps book into [k-'s face*
<Ox0dea> [k-: "platz" sounds pretty German, to be fair.
<[k-> that doesnt even seem like a legit word!
<platzhirsch> No smalltalk!
<[k-> DeBot !hangman german in ot!
<platzhirsch> Well anyway, now you know :)
<[k-> until it gets collected by my aggressive memory collector
<Ox0dea> [k-: You own a Pensieve?
tkuchiki has joined #ruby
MrFjords has joined #ruby
ndrei has joined #ruby
MrFjords has quit [Client Quit]
<[k-> nope
MrFjords has joined #ruby
MrFjords has quit [Client Quit]
youngbaks has joined #ruby
blackmes1 has joined #ruby
<shevy> [k- platzhirsch is kinda like the dominant animal in a group (of deer); it's the big boss that kicks out his rivals with ease, the one who commands the others
tkuchiki has quit [Ping timeout: 246 seconds]
<platzhirsch> last time you explained that nick you also said something along the lines of spraying urine in the rival's faces
<shevy> hahaha
<shevy> well that is optional
<[k-> In the interactive Python interpreter, the special variable _ holds the result of the previous evaluation.
<[k-> they forgot irb :(
<shevy> _ is my favourite variable
<platzhirsch> I feel sorry for Python
<shevy> python is so weird
apt-get has joined #ruby
<shevy> what will you do when ruby dies
blackmes1 has quit [Ping timeout: 260 seconds]
<shevy> USE PYTHON?!
<platzhirsch> haha, never
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> I'd rather jump off a cliff burning holding a picture of Guido van Rossum
<shevy> CGI.pm disappear
<shevy> !!!
<[k-> use perl?
<shevy> I dunno
<shevy> there are not so many options
<platzhirsch> Well I guess it's not really an alternative.. but I think I would use Go and become a serious man and have no fun anymore
_ht has quit [Ping timeout: 240 seconds]
<shevy> isn't Go a toy language?
<[k-> your face is a toy language!
michaeldeol has joined #ruby
<platzhirsch> ohhh
<platzhirsch> It's a very potent violin which can shoot elephants down
<platzhirsch> concurrently!
Queeniebee has joined #ruby
michaeldeol has quit [Client Quit]
northfurr has quit [Quit: northfurr]
<[k-> my face is a very potent violin that can shoot elephants down concurrently
<platzhirsch> calm donw
mahmoudmahfouz has joined #ruby
<platzhirsch> down
michaeldeol has joined #ruby
Ox0dea has quit [Read error: Connection reset by peer]
theery has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
Ox0dea has joined #ruby
mahmoudmahfouz has quit [Max SendQ exceeded]
kies has joined #ruby
<shevy> someone here has a facial obsession
roxtrongo has quit [Remote host closed the connection]
apt-get has quit [Read error: No route to host]
<platzhirsch> I am stuck on Ruby 1.9.3 and Resque,..
apt-get has joined #ruby
blackmes1 has joined #ruby
<shevy> update to 2.2.3
dgutierrez1287 has joined #ruby
<platzhirsch> I think there is no reason not to, but I can't justify it at the moment
juanpablo____ has joined #ruby
<platzhirsch> please help me justifying it
Cust0sLim3n has quit [Ping timeout: 250 seconds]
aaeron has joined #ruby
<Papierkorb> moar speed. it's faster, so less machines needed in production
<dorei> i'm stuck on ruby 2.1.1 :D
dgutierrez1287 has quit [Remote host closed the connection]
bigredboots has joined #ruby
tobiasvl has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
tvl has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tvl is now known as tobiasvl
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> platzhirsch hmm
FernandoBasso has quit [Quit: WeeChat 1.3]
<shevy> let me try to remember
<[k-> end of life
juanpablo____ has quit [Ping timeout: 264 seconds]
<platzhirsch> Papierkorb: citation needed *scream*
stamina has joined #ruby
grotewold has joined #ruby
<shevy> I have had these problems jumping from 1.8.x to higher versions:
<shevy> (1) Encoding and (2) psych
bigredboots has quit [Ping timeout: 265 seconds]
<shevy> psych I can still avoid thanks to the syck gem
roxtrongo has joined #ruby
Cust0sLim3n has joined #ruby
<shevy> Encoding is annoying but one can work around it via .force_encoding
David27 has joined #ruby
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
<shevy> with these problems gone, there were no more reasons not to use the latest ruby version
<shevy> platzhirsch does that work for you!
grotewold has joined #ruby
youngbaks has quit [Ping timeout: 250 seconds]
<platzhirsch> oh I guess reviewing everything and being afraid the upgrade breaks production is a reason against it
dionysus69 has quit [Ping timeout: 244 seconds]
grotewold has quit [Client Quit]
AlexAltea has quit [Ping timeout: 250 seconds]
youngbaks has joined #ruby
<shevy> yeah you have to invest time to make things work
<shevy> I am scared of having to do massive changes once strings be frozen by default
naftilos76 has joined #ruby
<[k-> arent you doing massive changes now
<platzhirsch> yeah, we are just too few people, small office 6 people, 5 year old production system, high user base and we're just working on the next product to be pushed out, so I will probably not go with that argument very far
Azure has quit [Ping timeout: 264 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
<[k-> luckily you arent using scala, where everything breaks after every release
jenrzzz has quit [Ping timeout: 240 seconds]
<platzhirsch> We're just revamping the Java backend, that's why I've taken quick course of action and updated it from Java 7, Ant, Eclipse to Java 8, Gradle, Intellj :D
xblade has quit [Remote host closed the connection]
<platzhirsch> oh yeah, we all had high hopes of Scala
solocshaw has joined #ruby
<platzhirsch> Clojure seems to have made it though
<[k-> clojurereeee
<[k-> try Frege
<platzhirsch> but yeah, with Java 8, I don't feel very desperate for that stuff
perturbation has joined #ruby
jenrzzz has joined #ruby
<[k-> shevy: ^ :(
leafybasil has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
s00pcan has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Hrorek has joined #ruby
<arup_r> any body will teach me here the cofeescript ?
grotewold has joined #ruby
[k-_ has quit [Ping timeout: 265 seconds]
s00pcan has joined #ruby
<[k-> no!
eosinx has joined #ruby
<[k-> go away coffeescript
<Papierkorb> arup_r: ECHAN, also http://coffeescript.org/ and js2.coffee/
jdawgaz has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
Hrorek is now known as Rurik
Rurik has quit [Changing host]
Rurik has joined #ruby
<arup_r> [k-: coffeescript is a sister of Ruby .. Don't say like that :/
grotewold has quit [Client Quit]
greg has quit [Ping timeout: 272 seconds]
<platzhirsch> CoffeeScript is a joke
<Papierkorb> I'm somehow starting to think that Coffeescript is hated by angularjs users
<platzhirsch> It's the MongoDB of Web Development
grotewold has joined #ruby
<arup_r> Then should I close my book and learn JS ?
David27 has quit [Remote host closed the connection]
<arup_r> my coffescript book *
<Papierkorb> arup_r: for what? for use with rails? I think it's .. fine as language. I hate JS though. Garbage language.
towski_ has joined #ruby
<arup_r> haha.. Papierkorb Yes learning for Rails
<Papierkorb> arup_r: it's convention over there, so if you don't have a reason for not using it, use it.
<arup_r> got assigned a project where they wrote only coffescript..
mhenrixon is now known as mhenrixon_afk
AlexAltea has joined #ruby
mhenrixon_afk is now known as mhenrixon
s00pcan has quit [Remote host closed the connection]
fgo_ has joined #ruby
<arup_r> and I am lost between -> and => :/
<Papierkorb> Then use CoffeeScript, by all means, introducing another language to the stack won't do good
symm- has joined #ruby
<Papierkorb> arup_r: then read up on it. => is also in the newest JS standard.
kies has quit [Ping timeout: 246 seconds]
<arup_r> reading.. from Google
_blizzy_ has joined #ruby
<Rurik> my favorite JS gem:
<Rurik> >[1,5,20,10].sort()
leafybasil has quit [Remote host closed the connection]
David27 has joined #ruby
<Rurik> [1, 10, 20, 5]
towski_ has quit [Remote host closed the connection]
<Rurik> Genius
<arup_r> I thought it is Hash :( .. As people say it is a kinda Ruby.. so I was with rumor
chipotle has quit [Quit: cheerio]
<[k-> it's a little ruby
<Papierkorb> arup_r: "kinda ruby" is wrong, it's more like JS with a ruby-esque syntax
grotewold has quit [Client Quit]
<arup_r> yeah!
<Papierkorb> Rurik: oh god why
havenwood has quit [Ping timeout: 244 seconds]
<[k-> because js likes doing string comparisons
<Papierkorb> [k-: []+{} <- sometimes at least
<[k-> >> %w[1 5 20 10].sort
<ruboto> [k- # => ["1", "10", "20", "5"] (https://eval.in/428935)
<Rurik> Papierkorb, Array.sort() sorts elements according to unicode code points
<Rurik> even when they are numbers
fgo_ has quit [Ping timeout: 250 seconds]
<Papierkorb> Rurik: yeah. why on earth is anyone, really, saying that JS is alright?
bruno- has joined #ruby
havenwood has joined #ruby
eosinx has quit [Quit: ~ Trillian - www.trillian.im ~]
grotewold has joined #ruby
ndrei has joined #ruby
stamina has quit [Ping timeout: 264 seconds]
greg has joined #ruby
grotewold has quit [Client Quit]
bruno- has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
swgillespie has joined #ruby
fernandezpablo_ has joined #ruby
grotewold has joined #ruby
fernandezpablo_ has quit [Client Quit]
greg has quit [Ping timeout: 244 seconds]
AlexAltea has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 265 seconds]
grotewold has quit [Client Quit]
failshell has quit [Ping timeout: 246 seconds]
<platzhirsch> I don't think CoffeeScript is used anymore in Rails
<platzhirsch> oh apparently, it does
bruno- has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
rbennacer has joined #ruby
krz has quit [Ping timeout: 255 seconds]
Dreamer3 has joined #ruby
dmolina has joined #ruby
grotewold has joined #ruby
AlexAltea has joined #ruby
UtkarshRay has quit [Quit: Leaving]
grotewold has quit [Client Quit]
workmad3 has quit [Ping timeout: 265 seconds]
ordepdev has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
dmolina has quit [Quit: Leaving.]
clarkenciel has joined #ruby
ndrei has joined #ruby
codecop_ has quit [Quit: Išeinu]
phutchins has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rakunh0 has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 244 seconds]
ordepdev has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
jdawgaz has joined #ruby
darkf has quit [Quit: Leaving]
symm- has quit [Ping timeout: 246 seconds]
phutchins has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
_blizzy_ has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
qwertme has joined #ruby
qwertme has quit [Client Quit]
based_ has joined #ruby
moahny has joined #ruby
ndrei has joined #ruby
apt-get has quit [Read error: No route to host]
tkuchiki has joined #ruby
apt-get has joined #ruby
youngbaks has quit [Ping timeout: 240 seconds]
s00pcan has joined #ruby
fantazo has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
roxtrongo has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
xblade has joined #ruby
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
toretore has joined #ruby
AlphaAtom has joined #ruby
phutchins has joined #ruby
dasher00 has quit [Quit: Leaving]
xblade has quit [Ping timeout: 250 seconds]
dasher00 has joined #ruby
<nofxx> platzhirsch, sure it is, otherwise you'll have to write....grrr... javascript
dasher00 is now known as subcon
futilegames has joined #ruby
acosonic_ has joined #ruby
MyMind has quit [Ping timeout: 265 seconds]
<acosonic_> hi, how can I findout which wrapper if installed via rvm is used?
subcon is now known as dasher00
fantazo has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
roshanavand has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
dasher00 has quit [Client Quit]
<jhass> acosonic_: in what context?
dasher00 has joined #ruby
<acosonic_> I’ve foundout...
Exuma has joined #ruby
fgo_ has joined #ruby
<acosonic_> ~/.rvm/wrappers/default/ruby ...
<acosonic_> manually
<acosonic_> but is there some tool which can tell me that?
<jhass> I'm still not sure what you mean with "is used"
<jhass> where?
<jhass> when doing what?
Legitkrillin has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 264 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MyMind has quit [Ping timeout: 240 seconds]
Soda has joined #ruby
mhenrixon is now known as mhenrixon_afk
grotewold has joined #ruby
FernandoBasso has joined #ruby
dasher00 has quit [Client Quit]
s00pcan has quit [Ping timeout: 246 seconds]
dasher00 has joined #ruby
fgo_ has quit [Ping timeout: 244 seconds]
ShalokShalom has joined #ruby
s00pcan has joined #ruby
<havenwood> acosonic_: gem wrappers
Exuma has quit []
jenrzzz has quit [Ping timeout: 265 seconds]
PaulCapestany has quit [Quit: .]
jenrzzz has joined #ruby
<acosonic_> lmc
<acosonic_> havenwood: thnx it works
PaulCapestany has joined #ruby
fedexo has joined #ruby
dfinninger has joined #ruby
Rurik has quit [Ping timeout: 264 seconds]
s00pcan has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
dasher00 has quit [Quit: Leaving]
dasher00 has joined #ruby
Rurik has joined #ruby
<cscheib> I'm blanking... what's the name of the method that you can use to return every possible slice of n characters from a string? i.e.in a scenario where n = 3, it returns index 0-2, then index 1-3, index 2-4, etc...
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<jhass> .chars.each_cons(3)
s00pcan has joined #ruby
Rakunh0 has joined #ruby
<baweaver> permutation on chars
<baweaver> ah
<baweaver> each_cons, yeah
<cscheib> awesome, that's it, thanks!
* baweaver needs to grab coffee
* adaedra drowns baweaver in coffee
<baweaver> bliss
mhenrixon_afk is now known as mhenrixon
dasher00 has quit [Client Quit]
dasher00 has joined #ruby
ndrei has joined #ruby
<cscheib> I knew it was probably in enumerable, but it wasn't popping out at me on the doc
kith has joined #ruby
northfurr has quit [Quit: northfurr]
futilegames has quit [Quit: futilegames]
juanpablo____ has joined #ruby
<nofxx> cscheib, enumerable is by far the obj with more methods in ruby. (am I wrong?) there's always a helper there for that crazy job
<nofxx> ok.. array
dseitz has quit [Quit: updating client]
dseitz has joined #ruby
<cscheib> yea, enumerable's come in quite handy... just so many methods in there (and similar methods) that it can sometimes be hard to find the right one, if you haven't memorized em yet
roxtrongo has joined #ruby
ordepdev has joined #ruby
fantazo has joined #ruby
platzhirsch has left #ruby [#ruby]
juanpablo____ has quit [Ping timeout: 250 seconds]
<havenwood> >> Gem::Specification.instance_methods(false).size
<ruboto> havenwood # => 150 (https://eval.in/428953)
<havenwood> nofxx: ^
Legitkrillin has quit [Quit: Leaving]
<havenwood> >> Enumerable.instance_methods(false).size
<ruboto> havenwood # => 51 (https://eval.in/428954)
<nofxx> havenwood, ahh, but Gem is not something you're using...like in runtime
<havenwood> I am too!
shinnya has joined #ruby
ordepdev has quit [Remote host closed the connection]
<havenwood> >> String.instance_methods(false).size
<ruboto> havenwood # => 116 (https://eval.in/428955)
dasher00 has quit [Quit: Leaving]
<havenwood> nofxx: My retort ^
<nofxx> havenwood, yup, now we got a winner
<havenwood> >> Pathname.instance_methods(false).size
<ruboto> havenwood # => uninitialized constant Pathname (NameError) ...check link for more (https://eval.in/428956)
<havenwood> 96
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<havenwood> But yeah, stdlib.
dasher00 has joined #ruby
stamina has joined #ruby
<jhass> >> c = ObjectSpace.each_object(Class).max_by { c.instance_methods(false).size }; [c, c.instance_methods(false).size]
<nofxx> >> Array.instance_methods(false).size
<ruboto> jhass # => undefined method `instance_methods' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/428958)
<ruboto> nofxx # => 91 (https://eval.in/428958)
arup_r has quit [Ping timeout: 255 seconds]
<nofxx> >> Hash.instance_methods(false).size
<ruboto> nofxx # => 55 (https://eval.in/428959)
<havenwood> >> ObjectSpace.each_object(Module).max_by(6) { |mod| mod.instance_methods(false).size }
<ruboto> havenwood # => [Gem::Specification, String, Array, IO, Hash, ARGF.class] (https://eval.in/428960)
symm- has joined #ruby
<nofxx> havenwood, easier. =D
ruurd has joined #ruby
acke_ has quit [Ping timeout: 264 seconds]
<nofxx> >> String.instance_methods(false) - Array.instance_methods(false)
<ruboto> nofxx # => [:===, :casecmp, :%, :bytesize, :=~, :match, :succ, :succ!, :next, :next!, :upto, :chr, :getbyte, :s ...check link for more (https://eval.in/428961)
David27 has joined #ruby
freestyl3r has joined #ruby
acke has joined #ruby
arup_r has joined #ruby
kobain has joined #ruby
esauOp has joined #ruby
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
grotewold has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
freestyl3r has left #ruby [#ruby]
blackmes1 has quit [Ping timeout: 250 seconds]
khebbie has joined #ruby
xwct has quit [Ping timeout: 256 seconds]
choke has joined #ruby
armyriad has quit [Quit: Leaving]
blackmes1 has joined #ruby
dasher00 has quit [Quit: Leaving]
based_ has joined #ruby
acke has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
segy has quit [Ping timeout: 246 seconds]
khebbie has quit [Ping timeout: 260 seconds]
segy has joined #ruby
Exuma has joined #ruby
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
swgillespie has quit [Max SendQ exceeded]
Silox| has joined #ruby
swgillespie has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
swgillespie has quit [Max SendQ exceeded]
perturbation has quit [Quit: back later]
scripore has quit [Quit: This computer has gone to sleep]
swgillespie has joined #ruby
pandaant has quit [Remote host closed the connection]
clarkenciel has quit [Ping timeout: 255 seconds]
xwct has joined #ruby
welsch4 has joined #ruby
Cust0sLim3n has quit [Ping timeout: 272 seconds]
based_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
chills42 has joined #ruby
iamninja has joined #ruby
dgutierrez1287 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
majjoha has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
based_ has joined #ruby
esauOp has quit [Remote host closed the connection]
based_ has quit [Client Quit]
scripore has joined #ruby
s00pcan has quit [Ping timeout: 240 seconds]
xblade has joined #ruby
[k- has quit [Quit: Lingo: www.lingoirc.com]
xwct has quit [Ping timeout: 260 seconds]
jimbeaudoin has joined #ruby
s00pcan has joined #ruby
yfeldblum has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cust0sLim3n has joined #ruby
fgo_ has joined #ruby
bigredboots has joined #ruby
dgutierrez1287 has joined #ruby
welsch4 has quit [Quit: Textual IRC Client: www.textualapp.com]
danieli has quit [Quit: *does an epic backflip into nowhere*]
dasher00 has joined #ruby
Jardayn has joined #ruby
blindgaenger has joined #ruby
fgo_ has quit [Ping timeout: 246 seconds]
AlexAltea has quit [Ping timeout: 250 seconds]
xblade_ has joined #ruby
bigredboots has quit [Remote host closed the connection]
ruurd has quit [Read error: Connection reset by peer]
millerti has quit [Max SendQ exceeded]
xblade has quit [Ping timeout: 252 seconds]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
ruurd has joined #ruby
lopin has joined #ruby
failshell has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
xwct has joined #ruby
ringarin has joined #ruby
ringaring has joined #ruby
Contigi has quit [Read error: Connection reset by peer]
Rurik has quit [Read error: Connection reset by peer]
failshell has quit [Ping timeout: 256 seconds]
acke has joined #ruby
Rurik has joined #ruby
juanpablo____ has joined #ruby
ringarin has quit [Ping timeout: 255 seconds]
blueOxigen has quit [Ping timeout: 250 seconds]
s00pcan has quit [Quit: Lost terminal]
roxtrongo has quit [Remote host closed the connection]
Rickmasta has joined #ruby
k3asd` has joined #ruby
ringarring_ has joined #ruby
ringarring_ has quit [Client Quit]
ruurd has quit [Read error: Connection reset by peer]
ringarring_ has joined #ruby
patrick_star has quit [Ping timeout: 244 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
juanpablo____ has quit [Ping timeout: 264 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
dopie has joined #ruby
northfurr has joined #ruby
roshanavand has quit [Ping timeout: 244 seconds]
clarkenciel has joined #ruby
bruno- has joined #ruby
kies has joined #ruby
ringarring_ has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blindgaenger has quit [Quit: Bye]
jenrzzz has quit [Ping timeout: 252 seconds]
xblade_ has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 272 seconds]
acke has quit [Remote host closed the connection]
acke has joined #ruby
jenrzzz has joined #ruby
mprelude has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
ruurd has joined #ruby
Mendenhall has joined #ruby
xblade has joined #ruby
AlphaAtom has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
fantazo has quit [Ping timeout: 264 seconds]
patrick_star has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
ShalokShalom has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
kies has quit [Ping timeout: 264 seconds]
yardenbar has joined #ruby
amclain has joined #ruby
jenrzzz has joined #ruby
ShalokShalom has joined #ruby
isxek has quit [Quit: Page closed]
chipotle has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Ping timeout: 255 seconds]
rbennacer has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
stuartb has joined #ruby
oo_ has joined #ruby
startupality has joined #ruby
AlphaAtom has joined #ruby
ringaring has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
stuartb has left #ruby ["Textual IRC Client: www.textualapp.com"]
MyMind has joined #ruby
AlphaAtom has joined #ruby
nofxx has quit [Ping timeout: 244 seconds]
Jackneill has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
oo_ has quit [Ping timeout: 255 seconds]
doublemalt__ has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
Kallis has joined #ruby
apt-get has quit [Ping timeout: 246 seconds]
Rakunh0 has joined #ruby
majjoha has joined #ruby
eightfold has joined #ruby
xblade has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<platzhirsch> So I went for a run and have thought about what I hate on Ruby
dfinninger has quit [Remote host closed the connection]
<platzhirsch> and I came to the conclusion, nothing
<jhass> how about that it makes you hate all other languages?
arup_r has quit [Quit: Leaving]
xblade has joined #ruby
bigredboots has joined #ruby
majjoha has quit [Ping timeout: 255 seconds]
xblade has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
Rurik has quit [Read error: Connection reset by peer]
Rurik has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<platzhirsch> well, I do need a statically-typed language as well to balance my inner self
<jhass> checked crystal yet?
<platzhirsch> I am coding drug-free, thanks
<platzhirsch> interesting
<platzhirsch> a language with the same syntax, so I don't need to learn anything
<jhass> well, similar
<jhass> or even familiar
<everlost> too much assembler
<everlost> pls less assembler :s
<everlost> and less crypto
<jhass> everlost: uh, context?
<everlost> challenges
fgo_ has joined #ruby
<everlost> either reverse or crypto
<platzhirsch> I must admit, Go has a very confusing syntax, sometimes it feels like they just switched order of words and declaration, just to be different
<everlost> or reverse crypto
<platzhirsch> such hipsters
<everlost> also more points for prog
<jhass> we had a nice comparison how 50loc Go was like 10loc in Crystal :P
<everlost> seriously 100 points for people raping stego with 1 command line
<platzhirsch> haha I bet it is
<everlost> and 100 points for 200 lines of code
<everlost> reward devs!
<everlost> devs are the greatest!
<jhass> everlost: watch your language
max_Q has quit [Remote host closed the connection]
adam| is now known as adam12
<platzhirsch> But you know that's the thing with statically typed things. It needs to feel mighty, and it only feelds mighty if I wield code with a magnitude of 10 higher than dynamically typed languages to feel the strength. AFter all, you eat with your eyes first!
<everlost> jhass: watch your problems
<platzhirsch> oh oh
ruurd has quit [Quit: ZZZzzz…]
<jhass> !kick everlost sober up
everlost was kicked from #ruby by ruboto [sober up]
ndrei has quit [Ping timeout: 240 seconds]
everlost has joined #ruby
<everlost> oups
<everlost> wrong chan
<everlost> sorry about that shit talk
<jhass> yw
<everlost> good evening kind sirs
everlost has left #ruby [#ruby]
bigredboots has quit [Ping timeout: 265 seconds]
TomyLobo has quit [Ping timeout: 240 seconds]
<platzhirsch> Anyway, I am looking forward to the day Ruby removes the GIL, I think it's very ambitious that they plan to do that
fgo_ has quit [Ping timeout: 250 seconds]
bigredboots has joined #ruby
esauOp has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.3]
<jhass> I'm looking forward to the day somebody turns https://github.com/manastech/crystal_ruby into something real world usable and then I no longer care about the GIL since I'll just port everything that's too slow to crystal :P
Exuma has quit []
<adam12> :)
doublemalt__ has quit [Remote host closed the connection]
apt-get has joined #ruby
<dseitz> What are the merits of Crystal beyond "It looks and acts like Ruby"?
<adaedra> Compiled
<adam12> It's _familiar_ as well, especially if you are a Ruby dev. I feel right at home with it.
<adam12> I guess that's similar to "acts like Ruby" - but familiarity goes a long way, imho.
Ketchy has joined #ruby
michaeldeol has joined #ruby
esauOp has quit [Ping timeout: 244 seconds]
<jhass> a Go like concurrency model
aaeron has quit [Quit: Leaving.]
aaeron has joined #ruby
michaeldeol has quit [Client Quit]
Anthony__ has joined #ruby
_blizzy_ has quit [Disconnected by services]
Anthony__ is now known as _blizzy_
ShalokShalom has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
naftilos76 has quit [Remote host closed the connection]
max_Q has joined #ruby
riotjones has quit [Ping timeout: 255 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
fostertheweb has joined #ruby
ndrei has joined #ruby
michael_mbp has quit [Excess Flood]
acke has quit [Remote host closed the connection]
Rickmasta has joined #ruby
michael_mbp has joined #ruby
northfurr has quit [Quit: northfurr]
bruno- has joined #ruby
govt has joined #ruby
govt has joined #ruby
acke has joined #ruby
<platzhirsch> But what about JRuby, it's fast, it's strong, it's the JVM! *prown*
<jhass> it's fast. If you can wait 5 minutes for it to boot :P
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<govt> as opposed to MRI rails crashing dozens of times per day
<dseitz> JRuby+Truffle will be fast, at some costs.
<yorickpeterse> Ah yeah, lets rewrite our Ruby apps in some other language
<yorickpeterse> surely that will only bring benefits
<govt> Jruby is just ruby
<chrisseaton> dseitz: what do you think those costs will be? (there are costs, just wondering what people think they are)
<platzhirsch> don't be so sarcastic, that makes me cry
bruno- has quit [Ping timeout: 264 seconds]
pyon has quit [Quit: fix config]
ordepdev has joined #ruby
yardenbar has quit [Quit: Leaving]
<govt> yorick does a lot of shit talking for someone whose most significant contribution to the ecosystem is an xml parser
<govt> just something ive noticed
acke has quit [Remote host closed the connection]
<yorickpeterse> excuse me?
<platzhirsch> I am just jelly of his GitHub repo stars
<yorickpeterse> govt: if we're going down that route, what exactly has been your contribution?
<govt> not being a rubyist who runs his mouth, i havent contributed any foss code
<yorickpeterse> exactly
<yorickpeterse> So either put up, or shut up
<yorickpeterse> Don't go around saying shit like that when you're a nobody yourself
<govt> like i said, im not running my mouth in chat
<yorickpeterse> Neither am I
<yorickpeterse> You also might want to look at the stuff I have worked on, or work on
<yorickpeterse> Instead of making yourself look like a fool
<platzhirsch> hey, hey.. language
<govt> a nobody, lol! i get paid to write code, just like you. i dont feel the need to write open source gems b/c anytime I look in #ruby this is what i find
<yorickpeterse> govt: you're welcome to leave
bigredbo_ has joined #ruby
<govt> id rather you
<yorickpeterse> You won't be missed
<govt> same
<platzhirsch> so much love
<yorickpeterse> Reminds me of small children
<yorickpeterse> "no you!"
<yorickpeterse> "you're a dumbass yourself!"
<govt> hey check out my xml parser
<govt> notice me
<havenwood> Please be nice.
<govt> gf
<platzhirsch> I guess we can agree, that both of you haven't really made it to the top of the ladder, but that doesn't mean you guys have a great a character
<yorickpeterse> govt: that really hurt my feelings
<havenwood> And don't touch anything.
govt has left #ruby [#ruby]
ruurd has joined #ruby
<yorickpeterse> platzhirsch: I care little for fame
govt has joined #ruby
<yorickpeterse> arguebly the programming industry is not a good one to become famous
<platzhirsch> Good, than give me all your GitHub stars
<yorickpeterse> Better to start in some new Hollywood movie
<govt> yorick do you express your feelings with angle brackets?
<yorickpeterse> govt: enjoy the /ignore, I have better things to do than waste my time argueing with a 12 year old
<dseitz> chrisseaton: actually... time moves quicker than I thought :) Truffle is integrated into JRuby now
<govt> id recommend <suicidal> for you
<jhass> !kick govt take it to PM, this is offtopic
govt was kicked from #ruby by ruboto [take it to PM, this is offtopic]
<jhass> yorickpeterse: just add them to ignore please
<yorickpeterse> I did
pyon has joined #ruby
<platzhirsch> jesus, I can't remember #ruby being such a rowdy place
<yorickpeterse> platzhirsch: welcome to Sunday evening :P
<havenwood> Well, that escalated to wildly-inappropriate quickly.
bigredboots has quit [Ping timeout: 246 seconds]
<dseitz> So other than that, I think just the fact that it is not completely stable would be the only risk
<jhass> govt's just looking for trouble, ignore and move on
<platzhirsch> You always want to score more attention, no?
<yorickpeterse> platzhirsch: pardon?
northfurr has joined #ruby
<platzhirsch> That wasn't directed at you yorickpeterse
<platzhirsch> That was directed to everyone who trolls :D
<yorickpeterse> right
<yorickpeterse> but I'm like, 80% troll
<platzhirsch> everything is fine
* platzhirsch strokes yorickpeterse
<craysiii> i came in here at the wrong time it seems.
<jhass> troll's gone, yw
last_staff has joined #ruby
<adaedra> wow
<adaedra> I let all of you alone for some time and you bring in the trolls
ordepdev has quit [Remote host closed the connection]
govt has joined #ruby
clarkenciel has quit [Ping timeout: 246 seconds]
<govt> jhass, jhass, jhass
rbennacer has joined #ruby
<govt> what a fine line you walk
<jhass> !mute govt
<havenwood> !ban NICK !T 1d "abusive trolling"
<ruboto> havenwood, could not find a matching user for "NICK"
<Nilium> Thank you.
<dseitz> I got a second to look at Crystal. Very nice. I've been using a lot of Rust late (and I mostly work in C/C++). Crystal is something I'll enjoy using.
<adaedra> haha havenwood
<havenwood> adaedra: ;)
<platzhirsch> dseitz: Rust! How does the no null-thingie work for you?
<havenwood> adaedra: Time for more coffee!
<adaedra> indeed!
<Nilium> If it's anything like Scala, not having null is actually not that big of a deal.
<adaedra> ☕️
<dseitz> It's a tough language to get used to :)
* havenwood thanks adaedra
<dseitz> So many concepts
<adaedra> Rust?
<Nilium> I keep meaning to learn it, but right now I mostly approach languages with how practical they'd be for what I'm doing at work
firstdayonthejob has quit [Read error: Connection reset by peer]
<dseitz> And unlike other languages where you can get some code to compile and find out later it doesn't work, Rust won't let you compile if the compiler knows your code sucks really bad lol
<platzhirsch> I think it's great that people are open to other topics like different languages in #ruby, there are so many channels in freenode, where they will gag you and hit your kidney when you introduce the wrong topic.
<Nilium> So, Go was first, Erlang or Elixir are probably next, Rust maybe for building libraries for use in other languages
<adaedra> ?ot platzhirsch
<ruboto> platzhirsch, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<adaedra> :p
<platzhirsch> *cry*
chuy has quit [Ping timeout: 246 seconds]
<platzhirsch> no meta discussions, silly!
* Nilium duct tapes platzhirsch to a door
<adaedra> #ruby-offtopic is actually a nice place too :)
<adaedra> One of us! One of us!
<Nilium> I have too many channels, I don't want more
rbennacer has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Ping timeout: 240 seconds]
<Nilium> I could remove c++-social, I guess, but it's comforting having it open
<platzhirsch> C++ has a social channel? haha
<jhass> !ban govt !P troll
govt was kicked from #ruby by ChanServ [Banned: troll]
<jhass> !unmute govt
<Nilium> platzhirsch: They do, and if you get off-topic in ##C++, they will scream at you
<adaedra> std::social<std::communication::irc>
<platzhirsch> I am always afraid around C/C++ people, they are the most violent
<adaedra> it's becuase you don't have -fnice
<Nilium> I'm a C and C++ person, but that's mostly because they're the industry standard for game dev.
<dseitz> Nilium: Rust is great if you need the performance of C & C++, but are sick of solving problems of C in C :)
<Nilium> Pretty much.
<Nilium> They're also the reason I use Go at work
Silox| has quit [Quit: Connection closed for inactivity]
<dseitz> I've seen very little tradeoffs; and where concurrency is a concern, Rust is able to reason about and help you write working code that is safe.
<Nilium> 'Cause I like C, I just don't want to use it for writing server programs, and Go fits that niche really well.
dgutierrez1287 has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<adaedra> I've started learning rust, but it's hard for now. It may get better with practice.
tenderlove has quit [Ping timeout: 264 seconds]
<adaedra> :o
<adaedra> we have tenderlove in here?
pandaant has joined #ruby
<dseitz> But I don't want to turn this into #rust :P Feel free to ask any question. The community is filled with people that love to help and don't bully our beginners with RTFMs and alikes
<dseitz> We'll help :)
bruno- has joined #ruby
<adaedra> Oh, I'm already in #rust
<Nilium> I used to hang out in a rust channel, but that was pre-1.x and the language was a much larger pain in the neck then. Unfortunately, this also means the tiny little bits I knew about it are also completely unusable now.
sgambino has joined #ruby
<adaedra> dseitz: over rust problems, I also don't have anything I could do in Rust to train :T
acosonic_ has quit [Quit: acosonic_]
ruurd has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
maceto has joined #ruby
zenspider has quit [Quit: bye]
VeryBewitching has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
firstdayonthejob has joined #ruby
bruno- has joined #ruby
vmatiyko has joined #ruby
<platzhirsch> Nilium: What do you do with Go at work?
dotix has joined #ruby
<Nilium> Backend server stuff, processing data sent to us. Mostly the really high-volume stuff, since otherwise the majority of our backend code is in PHP for reasons unknown to me.
<dseitz> adaedra: Well that's always the hard part. Finding something that interests you to work on. I'm using it where I used to use C++ in mobile applications.
<Nilium> So basically I write programs to read stuff off of queues and process it faster than anything can put it in.
acke has joined #ruby
bigredbo_ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
max_Q has quit [Quit: leaving]
stamina has quit [Quit: WeeChat 1.3]
<platzhirsch> would like to apply it for our stuff, but I am just learning and no one else knows the language
last_staff has quit [Quit: (Z,Z)]
<Nilium> The majority of the latest system we built is almost entirely in Go, so our internal web API server things, the processing, delivery to third parties, etc. is almost entirely Go.
<platzhirsch> I have written out Slack Bot in Go though, plays sounds over the pi on our speakers
<platzhirsch> wow
<Nilium> There's really only two exceptions, one where it was written in Go and the person who wrote it thought the problem was Go so he rewrote it in Java and had the same problem, the latter being the hooks into the older systems which had to be written in PHP
northfurr has quit [Quit: northfurr]
<Nilium> By the time the one thing got rewritten in Java, I said screw it, just maintain that for now and we'll replace it later, so technically the Go implementation is still sitting around in VCS, it's just slightly outdated.
<Nilium> The main problem is that when we go to replace it, I need to sit down and have a talk with the rest of the team that's using Go about all the weird stuff they've been doing in it.
<Nilium> 'Cause they really, really like pointers.. and I don't know why.
ruurd has joined #ruby
<platzhirsch> oh oh
fgo_ has joined #ruby
<platzhirsch> sounds like.. a lot of fun.. and discussions.. about,.. well :D
<Nilium> I'm not really sure how they got it into their heads that they need pointers to everything in Go, but that's on the list of things I need to tell them not to do.
NeverDie has joined #ruby
<Nilium> Also, the mainly-PHP guy who wrote the internal API server thought that global variables were per-HTTP-request or something, so there was an enormous, scary data race in there
ruurd has quit [Read error: Connection reset by peer]
dotix has quit [Quit: Leaving]
<Nilium> i.e., he had a global response variable and he was just modifying it from every HTTP request, so two or more in-flight requests would overwrite one another, signal they were incorrectly complete, etc.
emba has joined #ruby
<platzhirsch> oh my
armyriad has joined #ruby
<Nilium> So, I rewrote most of that..
emba has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
<platzhirsch> and ordered three copies of Efficient Go
juanpablo____ has joined #ruby
<platzhirsch> Effective
<Nilium> Never read it. I just tell people to do the tour, read Effective Go, and read the language spec.
emba has joined #ruby
<platzhirsch> seems sufficient if you are proficient with general programming concepts
<Nilium> At any rate, that's what happens when you learn a language on the fly, so it just happens.
NeverDie has joined #ruby
<platzhirsch> trail and error
<Nilium> I've been trying to slowly put together a bunch of documents about Go stuff at work just so I've got something to point at
ruurd has joined #ruby
<Nilium> Right now it mostly consists of installing Go, "please don't use go run in production ever," and "don't use interface{} unless there's a really good reason"
fgo_ has quit [Ping timeout: 250 seconds]
moahny has quit [Ping timeout: 264 seconds]
<Nilium> Rust might be a good idea if I want to get stricter about stuff like that.
codecop has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo____ has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
<VeryBewitching> Question regarding passing self to a block and not being able to call a protected method: https://gist.github.com/bewitchingme/28b891f0c20ad6f7bbc0 Once this class is initialized, it's important that values cannot be redefined after initialization, how can I work this so add is not a public method on an instance of this class?
jenrzzz has quit [Ping timeout: 246 seconds]
<VeryBewitching> In the block, I want to do self.add :accessor, value
acke_ has joined #ruby
<mblagden> so you want it to be public to external code contained in a block, but not public to other external code?
<VeryBewitching> I would have assumed that when call is sent to the block that it is executed in the scope that it was called.
<VeryBewitching> mblagden: Yes, once it's initialized the values should be immutable.
helpa-bot has joined #ruby
<Nilium> Couldn't you just freeze the class and then check frozen in your methods?
ordepdev has joined #ruby
<Nilium> i.e., after block.call, freeze the object.
tonios57_ has joined #ruby
jenrzzz has joined #ruby
helpa has quit [Remote host closed the connection]
<VeryBewitching> Nilium: Yes, I can certainly find ways to accomplish it, but I guess I'm looking for clarification on scope with a block that is passed in; I would have assumed that the block shared the scope where it was called.
helpa-bot has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 250 seconds]
acke has quit [Ping timeout: 250 seconds]
<VeryBewitching> I guess I'm looking for a bit of clarification on that.
helpa has joined #ruby
<mblagden> Blocks run in their lexical context, not the callers
<Nilium> Alternatively, have a separate builder object that's mutable and then use the result of the mutable object to create the immutable object, but at that point you're getting silly and the easier thing to do is either freeze it or just don't modify the object after init.
<VeryBewitching> mblagden: Oh, that clears that up then. Thanks :D
<toretore> VeryBewitching: use instance_eval on the block
tonios57 has quit [Ping timeout: 256 seconds]
ranchodev has quit [Ping timeout: 256 seconds]
<toretore> or pass a configuration object to the block which is then used to configure the instance inside initialize
<VeryBewitching> toretore: Nope, that still raises an exception
<VeryBewitching> instance_eval block.call self ?
<Nilium> Could also just make add return a new instance.
<toretore> >> class Foo; def initialize(&b); instance_eval(&b) end; attr_reader :foo; private; def set_foo(f); @foo = f; end; end; Foo.new{ set_foo 'bar' }.foo
<ruboto> toretore # => "bar" (https://eval.in/429002)
Cust0sLim3n has quit [Read error: Connection timed out]
ruurd has quit [Read error: Connection reset by peer]
Cust0sLim3n has joined #ruby
<toretore> class Foo; def initialize(&b); c = Configurator.new; yield c; do_something_with(c); end; end
bronson has joined #ruby
<VeryBewitching> OK, I sorted it out; instance_eval(&block) allows me to use :add in the block
nofxx has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
<VeryBewitching> Thanks guys :D
zenguy_pc has joined #ruby
ruurd has joined #ruby
ordepdev has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 246 seconds]
acke_ has quit [Remote host closed the connection]
maceto has quit [Remote host closed the connection]
maceto has joined #ruby
PaulCapestany has quit [Ping timeout: 240 seconds]
DeweyD has joined #ruby
solars has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
clarkenciel has joined #ruby
diegoaguilar has joined #ruby
PaulCapestany has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claw has quit [Ping timeout: 252 seconds]
Rurik has quit [Ping timeout: 246 seconds]
Rurik has joined #ruby
tkuchiki has joined #ruby
DeweyD has quit [Quit: Textual IRC Client: www.textualapp.com]
jimbeaudoin has quit [Quit: Connection closed for inactivity]
scripore has quit [Quit: This computer has gone to sleep]
ruurd has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
[k- has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
scripore has joined #ruby
scripore has quit [Client Quit]
tenderlove has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
ponga has quit []
sundhell has quit [Quit: WeeChat 1.3]
jamesaxl|2 has joined #ruby
pipework has quit [Quit: pipeworkin' it]
pipework has joined #ruby
CloCkWeRX has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
decoponio has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Rutix has quit []
ponga has joined #ruby
decoponio has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
kirun has quit [Quit: Client exiting]
majjoha has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
jdawgaz has joined #ruby
northfurr has joined #ruby
maceto has quit []
CloCkWeRX has joined #ruby
ruurd has joined #ruby
j5s7 has joined #ruby
KensoDev has joined #ruby
j5s7 has quit [Client Quit]
I has joined #ruby
majjoha has quit [Ping timeout: 272 seconds]
northfurr has quit [Client Quit]
I is now known as Guest76942
bstrrm has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
CloCkWeRX has quit [Ping timeout: 250 seconds]
apt-get has quit [Quit: Quit]
ruurd has quit [Ping timeout: 246 seconds]
ranchodev has joined #ruby
bstrarm has quit [Ping timeout: 260 seconds]
hololeap has joined #ruby
northfurr has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
lignux has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
fgo_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
k3asd` has quit [Ping timeout: 272 seconds]
vmatiyko has quit [Ping timeout: 250 seconds]
eightfold has quit [Quit: eightfold]
fgo_ has quit [Ping timeout: 246 seconds]
Guest76942 has quit [Quit: This computer has gone to sleep]
<nahtnam> When I run this, it prints the number an pin on new lines. Why is that? https://gist.github.com/nahtnam/9c70d834e4b4e416f2ba
failshell has joined #ruby
<heftig> nahtnam: the string that gets returns includes a line ending
<nahtnam> Ohhhhhh
<nahtnam> Is there an alternative to gets?
<heftig> use gets.chomp
<nahtnam> Kk
<nahtnam> Ty
vdamewood has joined #ruby
<nahtnam> Oh one more question
platzhirsch has quit [Ping timeout: 244 seconds]
<nahtnam> How can I have a "default" so if the field is empty, replace it with a default value.
weemsledeux has joined #ruby
Rakunh0 has joined #ruby
<Voker57> puts(somevar || :default)
failshell has quit [Ping timeout: 244 seconds]
Rakunh0 has quit [Client Quit]
<Voker57> or somewar ||= :default if you want to change the variable
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lycanii has joined #ruby
<nahtnam> number = gets.chomp ||= "asdf"
<nahtnam> I dont think that would work
<nahtnam> *it doesnt
eightfold has joined #ruby
max_Q has joined #ruby
saddad has quit [Ping timeout: 246 seconds]
JDiPierro has quit [Remote host closed the connection]
max_Q has quit [Quit: leaving]
bstrrm has quit [Quit: WeeChat 1.3]
max_Q has joined #ruby
hololeap has quit [Remote host closed the connection]
max_Q has quit [Client Quit]
leafybasil has joined #ruby
hololeap has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
symm- has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 240 seconds]
<Radar> nahtnam: You know the rules, and so do I.
<Radar> "Doesn't work" is not useful.
<Radar> Meditate on this:
<Radar> >> "" || "asdf"
<ruboto> Radar # => "" (https://eval.in/429012)
<nahtnam> But that returned "" instead of "asdf"
<Voker57> that's why it doesn't work
<Radar> nahtnam: Yes, now meditate.
aaeron has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 265 seconds]
max_Q has joined #ruby
aaeron has joined #ruby
lignux has quit [Quit: Leaving]
Kallis has quit [Read error: Connection reset by peer]
dopie has joined #ruby
chuy has joined #ruby
jesterfraud has joined #ruby
decoponio has quit [Quit: Leaving...]
workmad3 has joined #ruby
s00pcan has joined #ruby
Guest29337 has joined #ruby
CloCkWeRX has joined #ruby
Guest29337 has left #ruby [#ruby]
havenwood has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
blackmesa has quit [Client Quit]
blackmes1 has quit [Ping timeout: 244 seconds]
michaeldeol has joined #ruby
firstdayonthejob has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
scripore has joined #ruby
chipotle has quit [Quit: cheerio]
juanpablo____ has joined #ruby
Voker57 has quit [Read error: Connection reset by peer]
Swappticon has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
juanpablo____ has quit [Ping timeout: 246 seconds]
dgutierrez1287 has joined #ruby
yashinbasement has joined #ruby
platzhirsch has joined #ruby
s00pcan has joined #ruby
tubuliferous_ has joined #ruby
aaeron has quit [Quit: Leaving.]
SCHAAP137 has quit [Quit: Leaving]
fgo_ has joined #ruby
<platzhirsch> Can anyone recommend good podcasts?
dgutierrez1287 has quit [Ping timeout: 265 seconds]
Kallis has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
s00pcan has quit [Remote host closed the connection]
jesterfraud has quit [Ping timeout: 264 seconds]
fgo_ has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
_clarkenciel has joined #ruby
clarkenciel has quit [Read error: Connection reset by peer]
yashinbasement has quit [Quit: Leaving]
maceto has joined #ruby
s00pcan has joined #ruby
weemsledeux has joined #ruby
Mon_Ouie has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bb010g has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
glenn_ has joined #ruby
startupality has quit [Quit: startupality]
s00pcan has quit [Read error: Connection reset by peer]
ZYPP has quit [Ping timeout: 246 seconds]
ZYPP has joined #ruby
<havenwood> platzhirsch: The Ruby Rogues and the Changelog.
Esya- has quit [Ping timeout: 260 seconds]
Bish has quit [Ping timeout: 246 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
IceDragon has joined #ruby
Alina-malina has quit [Ping timeout: 246 seconds]
IceDragon is now known as Guest7887
Esya- has joined #ruby
Bish has joined #ruby
Guest7887 is now known as IceDragon
<Coraline> Yay Ruby Rogues
<Coraline> http://bikeshed.fm is also good.
Azure has joined #ruby
bigredboots has joined #ruby
fostertheweb has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
segfalt has quit [Quit: segfalt]
rakm has joined #ruby
<shevy> Coraline you got too much time!
<Coraline> Nothing but time
<platzhirsch> Oh the last one features yorickpeterse, you're famous
maceto has quit [Remote host closed the connection]
<shevy> what did he do
Ropeney has joined #ruby
<shevy> I can only became famous by ranting :(
<platzhirsch> He wrote a XML parser in Ruby
<shevy> ohhh
<shevy> that sounds painful
maceto has joined #ruby
<shevy> that deserves legendary fame
<platzhirsch> also there was a troll who made fun of him because of that very fact
LoganG has joined #ruby
<platzhirsch> very dramatic scenes in #ruby
<platzhirsch> During your absence shevy!
_liquid_ has joined #ruby
maceto has quit [Remote host closed the connection]
<shevy> platzhirsch I fell asleep :(
devbug has joined #ruby
<platzhirsch> You're weak!
eightfold has quit [Quit: eightfold]
<shevy> yeah... but right now I feel awesome, so it's time to be productive!
<platzhirsch> I am very tired now and I have to work tomorrow
<shevy> from the backlog it seems as if jhass had to kick about 50 people
<platzhirsch> yeah jhass went mental
Stalkr^ has quit [Quit: Leaving...]
<shevy> hmm
stardiviner has joined #ruby
<shevy> I'd wish I could somehow convert a case when menu into a hash
<shevy> programmatically
claw has joined #ruby
yqt has quit [Ping timeout: 246 seconds]
<platzhirsch> menu?
<havenwood> shevy: try Ripper
<shevy> yeah I always (also) use it as menu actually, main entry point e.g. to cover things like --help but also -h
<platzhirsch> I am sorry case doesn't return a value yet
jenrzzz has joined #ruby
tkuchiki has joined #ruby
ponga has quit []
maceto has joined #ruby
<havenwood> shevy: It'd be convoluted. Hem. Not the most straightforward parser.
lxsameer has quit [Quit: Leaving]
<shevy> hmm
<havenwood> shevy: But I think doable.
<shevy> when 'a','b'
tkuchiki has quit [Ping timeout: 246 seconds]
<shevy> 'c'
<shevy> { 'a' => 'c', 'b' => 'c' }
<shevy> hmm
scripore has quit [Quit: This computer has gone to sleep]
scripore has joined #ruby
maceto has quit [Client Quit]
tubuliferous_ has quit [Ping timeout: 260 seconds]
<havenwood> >> require 'ripper'; Ripper.sexp "case 'a'; when 'a','b'; 'c' end"
<ruboto> havenwood # => [:program, [[:case, [:string_literal, [:string_content, [:@tstring_content, "a", [1, 6]]]], [:when, ...check link for more (https://eval.in/429022)
claw has quit [Ping timeout: 264 seconds]
<shevy> hmmmm
<shevy> what is the [1, 6] there?
Musashi007 has joined #ruby