havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
inoperable has quit [Remote host closed the connection]
lamduh has joined #ruby
ur5us has quit [Remote host closed the connection]
br0d1n has quit [Quit: Leaving]
lxsameer has quit [Quit: WeeChat 1.9]
bkxd has joined #ruby
bkxd_ has joined #ruby
eckhardt has joined #ruby
br0d1n has joined #ruby
marr has quit [Remote host closed the connection]
lacuna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
hahuang65 has quit [Ping timeout: 240 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor_ has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
contradictioned has quit [Ping timeout: 240 seconds]
rundor has quit [Ping timeout: 260 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
InfinityFye has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
__Yiota has joined #ruby
mim1k has joined #ruby
charliesome has joined #ruby
rundor_ has quit [Remote host closed the connection]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
rundor has joined #ruby
rwb has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
bkxd_ has quit [Ping timeout: 248 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 260 seconds]
rundor_ has joined #ruby
rundor has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
comet23 has joined #ruby
<comet23> what is a mature object?
lamduh has quit [Ping timeout: 248 seconds]
duderonomy has quit [Ping timeout: 248 seconds]
tunaBee_ has quit [Ping timeout: 248 seconds]
rivalomega has quit [Read error: Connection reset by peer]
<havenwood> comet23: hard to say without some context
<havenwood> comet23: why are you asking? where'd you hear that?
bronson has joined #ruby
rivalomega has joined #ruby
rfoust has joined #ruby
<havenwood> comet23: the only thing i can think is that you mean in terms of the GC? like it's young if it hasn't survived a sweep and mature if it has. is that what you mean?
rivalomega has quit [Remote host closed the connection]
gusrub has quit []
<havenwood> (We actually have a tricolor GC now.)
hahuang65 has joined #ruby
contradictioned has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 260 seconds]
kculpis has joined #ruby
zapata has quit [Ping timeout: 246 seconds]
tunaBee has joined #ruby
AX31_A13X has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
AxelAlex has quit [Ping timeout: 268 seconds]
antgel has quit [Ping timeout: 240 seconds]
iomotoko has joined #ruby
_whitelogger has joined #ruby
gizmore|2 has joined #ruby
zapata has joined #ruby
reino4477 has joined #ruby
reino4477 has left #ruby [#ruby]
gizmore has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
lacuna has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
reino44771 has joined #ruby
reino44771 has left #ruby [#ruby]
ascarter has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 240 seconds]
lacuna has quit [Quit: Textual IRC Client: www.textualapp.com]
SteenJobs_ has quit [Quit: SteenJobs_]
d^sh has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
milardovich has joined #ruby
tunaBee has quit [Ping timeout: 260 seconds]
daivyk has joined #ruby
duderonomy has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
cyfr0n has joined #ruby
AX31_A13X has quit [Remote host closed the connection]
blackwind_123 has joined #ruby
ccha has quit [Quit: WeeChat 1.8]
ecuanaso has joined #ruby
nb_bez______ has quit [Quit: Connection closed for inactivity]
AxelAlex has joined #ruby
milardovich has quit [Remote host closed the connection]
govg has joined #ruby
milardovich has joined #ruby
hightower2 has quit [Ping timeout: 260 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
mim1k has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
<rubycoder37> would it be ok to use BigDecimal for currency?
lamduh has joined #ruby
guardianx has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
hightower2 has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
eightlimbed has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
hotpancakes has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
guardianx has quit []
hahuang65 has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
SteenJobs_ has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
bkxd_ has quit [Read error: Connection reset by peer]
bkxd has quit [Read error: Connection reset by peer]
ledestin has joined #ruby
rundor_ has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
bkxd has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
bkxd_ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SteenJobs_ has quit [Quit: peaceee]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hndk has joined #ruby
jameser has joined #ruby
t-recx has quit [Quit: t-recx]
ahrs has quit [Read error: Connection reset by peer]
ahrs has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 255 seconds]
kies has joined #ruby
SteenJobs_ has joined #ruby
ascarter has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
gix has quit [Ping timeout: 255 seconds]
<comet23> havenwood, thank you for your reply
szymon has joined #ruby
<comet23> I am seriously studying ruby seriously and I wanted to understand more about mature vs primitive objects
szymon is now known as Guest93058
<comet23> how can i use the attr_accessor here to shorten my code?
gix has joined #ruby
<Guest93058> and why you initialize page count that mean you must give a page count
<comet23> oh i didn't know htat
<comet23> i thought i have to initialize everything that i am going to be using in the class
<Guest93058> take a look
<comet23> what are lines 42 and 44 doing?
<Guest93058> open irb and do
<Guest93058> a =
<Guest93058> a = a || 1
<Guest93058> or beter
<Guest93058> a = nil
<Guest93058> a = a || `1
<comet23> okay, i see
<comet23> why would i want to do that?
<comet23> why not just set the page count to 1 as a default value?
<comet23> why create a separate method for it?
ajnulo has joined #ruby
<Guest93058> becouse you dont need use instant varible you t will have page_count not @page_count
AxelAlex has quit [Remote host closed the connection]
AxelAlex has joined #ruby
jeffreylevesque_ has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
ajnulo has quit [Quit: WeeChat 1.9]
<comet23> how can i assign return values to getter and setter methods using the metaprogramming?
runescape07rsps has joined #ruby
<comet23> like attr_accessor :title for example
<comet23> i want that to return the initialized title instance @title
<comet23> or have it set a title by the user
dviola has quit [Quit: WeeChat 1.9]
AnoHito has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
cadillac_ has quit [Ping timeout: 255 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
<Guest93058> ok i do some error so i try to rebuid and her you go
hotpancakes has joined #ruby
curiousdude has joined #ruby
curiousdude was kicked from #ruby by ChanServ [Banned: troll, bad mannered]
_whitelogger has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
hotpancakes has joined #ruby
guardianx has quit []
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
Guest93058 has quit [Quit: Leaving]
AnoHito has quit [Quit: Leaving]
tohsaka has joined #ruby
tohsaka is now known as tohsaka_
SteenJobs_ has quit [Quit: SteenJobs_]
eadthem has joined #ruby
<eadthem> im getting incompatible character encodings: UTF-8 and ASCII-8BIT on a line of code. I want the varables involved to operate in 'BINARY'.
<eadthem> Im new to ruby, and im not having much luck with force_encoding
<eadthem> the orignal line throwing the message was buffer << ([ret].pack('V')) * 2
lamduh has quit [Quit: Leaving]
<eadthem> i added a buffer = buffer.force_encoding("BINARY") above it. but it didnt help
<eadthem> It would be nice if ruby would say which varable is which encoding type. My understanding is that pack('V') would be binary.
<matthewd> eadthem: Where is buffer coming from?
<matthewd> >> [0].pack('V').encoding
<ruby[bot]> matthewd: # => #<Encoding:ASCII-8BIT> (https://eval.in/832862)
bkxd has joined #ruby
bkxd_ has joined #ruby
<eadthem> buffer = "USER" buffer <<"\x90" * 265 #(290 - code.lenght)
mrconfused has joined #ruby
<eadthem> thats the start of buffer, and the line following
synion has joined #ruby
milardovich has quit [Remote host closed the connection]
<matthewd> You might want "USER".b
mim1k has joined #ruby
<matthewd> (though force_encoding should give you the same result)
<eadthem> ASCII-8BIT my understanding is the same as BINARY
<matthewd> Yep
sniffer has quit [Ping timeout: 240 seconds]
<matthewd> Are you sure it didn't help? e.g. maybe the error just moved to a different line?
johnny56_ has quit [Remote host closed the connection]
<eadthem> diffrent line number, but same line. .b didnt help ither
<eadthem> can i drop .encoding in spots to have it output debug info on what encoding type things are
synion has quit [Client Quit]
<eadthem> prob with a puts id bet
synion__ has joined #ruby
johnny56_ has joined #ruby
<matthewd> #p is often more informative than #puts, but yeah, that's where I'd be going
mim1k has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
synion__ has quit [Client Quit]
synion has joined #ruby
<eadthem> oh good. buffer and ([ret].pack('V')) * 2 say Encoding:ASCII-8BIT
hotpancakes has quit [Ping timeout: 246 seconds]
<eadthem> :p adding that stuff made it jump down a line
charliesome has joined #ruby
synion__ has joined #ruby
<synion__> REGISTER
<eadthem> there isnt a way to turn off encoding checks, or force everything to BINARY is there?
<eadthem> Literaly im adding .force_encoding('BINARY') to every line,
<eadthem> got it to work
uZiel has joined #ruby
mrconfused has quit [Ping timeout: 246 seconds]
<comet23> how can i https://repl.it/J2tJ/0 without default arguments in the initializer?
<eadthem> thanks
<elomatreb> comet23: You probably want keyword arguments
<matthewd> eadthem: You might prefer to pack all the strings as well
milardovich has joined #ruby
<eadthem> tbh not sure if i do.
<eadthem> the test didnt work, so this is not the script im looking for.
<eadthem> but this is the first ive ever touched ruby.
<eadthem> c++ c ASM and php are my usual languiges
sniffer has joined #ruby
knight33 has joined #ruby
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
milardovich has quit [Ping timeout: 260 seconds]
tau has joined #ruby
<tau> hi.
<tau> is eventmachine still in use? i mean is it still hot?
<tau> or are there any other choices?
jdawgaz has joined #ruby
tohsaka_ has left #ruby ["Leaving"]
tohsaka_ has joined #ruby
<matthewd> tau: Depends what you want to do
<tau> mattewd lets say an ircbot
<tohsaka_> unzip intern.hct -d ~/.config/hexchat
<tohsaka_> ckear
<tohsaka_> ks
<tohsaka_> woops sorry
<comet23> Thank you everyone
<comet23> I figured it out and it was much simpler than I thought
<comet23> Have a great night I'm off to bed
jdawgaz has quit [Client Quit]
<matthewd> tau: If you specifically want something that can handle multiple connections per thread, you might look at nio4r, or async/socketry (I'm not familiar with those, but I believe they're in the same solution space). But unless you're making an IRC *server*, I'd personally just go with a straight threaded model.
<tau> i see.
tohsaka_ has quit [Read error: Connection reset by peer]
<tau> mattewd i'll consider that.
noe has joined #ruby
bronson has joined #ruby
comet23 has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
Bock has joined #ruby
noe has quit [Client Quit]
apparition has joined #ruby
hahuang65 has joined #ruby
bronson has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
daivyk has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
bkxd has quit [Ping timeout: 248 seconds]
bkxd_ has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 255 seconds]
hahuang65 has joined #ruby
hndk has quit [Read error: Connection reset by peer]
hndk has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd_ has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
br0d1n has quit [Quit: Leaving]
uZiel has joined #ruby
eightlimbed has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
andrzejku has joined #ruby
hotpancakes has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Talltree_ has quit [Ping timeout: 268 seconds]
Timba-as has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
hotpancakes has quit [Ping timeout: 276 seconds]
cam27 has quit [Quit: cam27]
konsolebox has joined #ruby
tau has quit [Remote host closed the connection]
ruby-lang683 has joined #ruby
<ruby-lang683> can anyone have a quick gander at my code if i put it on gist? its angry about some `end` i have, but i'm pretty sure i need it
<elomatreb> Post it, if someone has time they will respond
agrecascino has quit [Quit: ZNC - http://znc.in]
<ruby-lang683> https://gist.github.com/Cyan101/d7f85c0f862c0a56194bbb26df901028 i put the error in the comments
<elomatreb> Oh, the error occurs because there is no "++" in Ruby
<elomatreb> In line 34, replace that with += 1
guardianx has joined #ruby
<ruby-lang683> ah, thanks
milardovich has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
runescape07rsps has quit [Quit: Leaving]
eadthem has quit [Ping timeout: 276 seconds]
milardovich has quit [Ping timeout: 255 seconds]
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
ruby-lang683 has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
kculpis has quit [Quit: Leaving]
hotpancakes has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
cagomez has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
cagomez has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
inoperable has joined #ruby
inoperable has quit [Client Quit]
AnoHito has joined #ruby
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
cjk101010 has joined #ruby
surrounder has quit [Remote host closed the connection]
vondruch has quit [Remote host closed the connection]
surrounder has joined #ruby
vondruch has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
dionysus69 has joined #ruby
guardianx has quit [Remote host closed the connection]
rkellermeyer has quit [Quit: rkellermeyer]
guardianx has joined #ruby
guardianx has quit [Remote host closed the connection]
ur5us has joined #ruby
InfinityFye has joined #ruby
ur5us has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: Bye]
dn` has quit [Read error: Connection reset by peer]
dn` has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
vuoto has joined #ruby
biberu has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
koenrh has joined #ruby
nofxxx has joined #ruby
nofxxxx has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
Timba-as has quit [Quit: Be back later ...]
cagomez has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
hotpancakes has quit [Ping timeout: 246 seconds]
alex`` has quit [Quit: WeeChat 1.9]
Cyrus has quit [Quit: WeeChat 1.7.1]
vuoto has quit [Remote host closed the connection]
Ishido has joined #ruby
cagomez has joined #ruby
alex`` has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
sniffer has quit [Ping timeout: 246 seconds]
cagomez has quit [Ping timeout: 260 seconds]
Cyrus has joined #ruby
apparition has joined #ruby
bronson has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
daivyk has joined #ruby
SteenJobs_ has joined #ruby
daivyk has quit [Ping timeout: 240 seconds]
SteenJobs_ has quit [Client Quit]
rohitpaulk has joined #ruby
hotpancakes has joined #ruby
roshanavand has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
lxsameer has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 246 seconds]
ascarter has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
rohitpaulk has joined #ruby
cagomez has joined #ruby
roshanavand has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 268 seconds]
roshanavand has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
koenrh has quit [Quit: Textual IRC Client: www.textualapp.com]
blackwind_123 has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
cseder has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
mikecmpbll has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
Mia has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
cagomez has joined #ruby
hotpancakes has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Ping timeout: 255 seconds]
cagomez has joined #ruby
cagomez has quit [Ping timeout: 255 seconds]
nadir has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
runescape07rsps has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
XD_ has joined #ruby
XD_ has quit [Remote host closed the connection]
XD_ has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
XD__ has joined #ruby
runescape07rsps has quit [Ping timeout: 248 seconds]
vondruch has quit [Remote host closed the connection]
XD_ has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
cagomez has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
cagomez has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
XD_ has joined #ruby
jameser has joined #ruby
XD__ has quit [Ping timeout: 248 seconds]
XD__ has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
vondruch has quit [Remote host closed the connection]
XD_ has quit [Ping timeout: 268 seconds]
vondruch has joined #ruby
ur5us has joined #ruby
BillyTheKid has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
Ishido has quit [Ping timeout: 255 seconds]
millerti has joined #ruby
Ishido has joined #ruby
jdawgaz has joined #ruby
lele has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
lele has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has quit [Read error: Connection reset by peer]
jameser has joined #ruby
sepp2k has joined #ruby
cadillac_ has joined #ruby
jameser has quit [Client Quit]
jameser has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
dennisvennink has joined #ruby
cyfr0n has left #ruby ["Bye!"]
rwb has quit [Ping timeout: 240 seconds]
Matt[m]4 has quit [Ping timeout: 240 seconds]
gokul_mr[m] has quit [Ping timeout: 240 seconds]
voltai[m] has quit [Ping timeout: 240 seconds]
jonjits[m] has quit [Ping timeout: 240 seconds]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
el_ocho[m] has quit [Ping timeout: 240 seconds]
marr has joined #ruby
ledestin has quit [Ping timeout: 248 seconds]
daivyk has joined #ruby
dionysus70 has joined #ruby
jameser has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
dionysus70 is now known as dionysus69
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
el_ocho[m] has joined #ruby
Matt[m]4 has joined #ruby
voltai[m] has joined #ruby
gokul_mr[m] has joined #ruby
jonjits[m] has joined #ruby
jeffreylevesque_ has joined #ruby
rwb has joined #ruby
roshanavand has quit [Quit: roshanavand]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
minimalism has quit [Ping timeout: 268 seconds]
minimalism has joined #ruby
knight33 has joined #ruby
rwb has quit [Ping timeout: 258 seconds]
rohitpaulk has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
knight33 has quit [Ping timeout: 240 seconds]
jdawgaz has quit [Client Quit]
theunraveler has joined #ruby
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
XD__ has quit [Quit: Leaving]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
jdawgaz has joined #ruby
tau has joined #ruby
tau has left #ruby [#ruby]
jdawgaz has quit [Client Quit]
jeffreylevesque_ has joined #ruby
t-recx has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
bkxd_ has joined #ruby
ur5us has quit [Remote host closed the connection]
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jeffreylevesque_ has joined #ruby
rohitpaulk has joined #ruby
jeffreylevesque_ has quit [Client Quit]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
br0d1n has joined #ruby
comet23 has joined #ruby
<comet23> why are constants mutable?
<apeiros> because matz decided they should be
<apeiros> also note that "constant" means "references the same object constantly" (though you can even assign a new object to a constant, all you get is a warning - or you can use remove_const+const_set)
<ytti> ruby philosophically wants to allow maximum metaprogramming
<ytti> it is definitely double edged sword
<ytti> but in this philosophy it would be silly to completely remove ability to do something
<ytti> you may be using library which is using const, which shouldn't be const
<ytti> and you'll avoid forking that library with bit of nasty monkey patching
<ytti> not inherently good or bad, just one philosophy
Ishido has quit [Ping timeout: 240 seconds]
cam27 has joined #ruby
jameser has joined #ruby
rivalomega has joined #ruby
<comet23> Thank you
Silthias has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
eightlimbed has joined #ruby
Silthias has left #ruby [#ruby]
bkxd has quit [Ping timeout: 240 seconds]
rivalomega has quit [Ping timeout: 255 seconds]
<comet23> How can I improve this method?
<comet23> def brand=(name)
<comet23> end
<comet23> BRANDS << name if BRANDS.include?(name) == false
bronson has joined #ruby
vuoto has joined #ruby
bronson has quit [Remote host closed the connection]
Dimik has joined #ruby
jeffreylevesque_ has joined #ruby
vuoto has quit [Remote host closed the connection]
eightlimbed has quit [Quit: Ex-Chat]
BillyTheKid has quit [Remote host closed the connection]
<Papierkorb> comet23: use `unless` instead of `if`
<Papierkorb> comet23: Also, it might not be obvious at all to a user that `brand=` doesn't set the brand, but adds it to a constant, which is also highly questionable
<comet23> is this a highly questionable method too?
<comet23> def genre=(genre)
<Papierkorb> comet23: This is much more obvious, and also better to test: `def add_brand(name); @brands << name unless @brands.include?(name); end`
<Papierkorb> Yes I wouldn't want that method in my code base.
apparition has quit [Quit: Bye]
<comet23> what would you use instead?
<Papierkorb> Hard to say without context. But writer methods (as in `foo=`) are generally expected to just set a value, maybe a sanity check on the new value, but that's really it it should do.
<Papierkorb> Also, changing the value of a CONSTANT is never a great idea
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
<comet23> but as I understood just now a constant in Ruby is unlike other languages... it simply means a variable that is constantly accessed
<Papierkorb> Ruby allows to do pretty much anything. Doesn't mean it's a good idea to do that "pretty much anything" though.
Dimik has quit [Ping timeout: 240 seconds]
<Papierkorb> And a CONSTANT is constant. Hence the name. If you need something that is variable in value, use a variable.
* apeiros disagrees
<apeiros> and seems matz to
<comet23> apeiros said that a constant is variable that is constantly accessed
<apeiros> *too
<apeiros> not constantly accessed
<apeiros> constantly referencing the same object
<comet23> what's the difference?
<apeiros> but even that is only a half-truth in ruby
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<apeiros> comet23: if this wording isn't clear to you, then I don't know how to explain. maybe you need somebody who can translate both to your mother tongue.
<apeiros> Papierkorb: anyway, if you want immutable objects, #freeze is the way to go
<comet23> i thought everything is an object in ruby
<apeiros> almost
<comet23> so that is why i am confused
<apeiros> code isn't. variables aren't. methods aren't.
<Papierkorb> apeiros: Yeah I generally freeze anything in a constant, if possible
<apeiros> you can get an object representing a method, though
<apeiros> blocks aren't either. but you can turn them into Proc instances.
<comet23> the difference between a class and an object is that an object is a name for a class that has been initialized?
rkellermeyer has joined #ruby
<apeiros> classes are objects
<comet23> class = blueprint and object = initialized blueprint?
<comet23> this is so confusing
<comet23> just when i thought i understood stuff
<apeiros> the difference between non-class objects and classes is that the class of a non-class object isn't a subclass of Class
<apeiros> err, *is* a subclass
<comet23> so what is the difference between a class and an object
<apeiros> all objects are instances of their class
<apeiros> Array.new.instance_of?(Array)
<apeiros> Array.is_a?(Class) # => true
<comet23> okay great, i was right
<apeiros> Array.new.is_a?(Class) # => false
<comet23> but that's not what i said?
<apeiros> but: Array.is_a?(Object) # => true
<Papierkorb> comet23: A constant is not totally unlike a variable: Both point to an object. Consider this code: `a = "hello"; b = a; b << " you"; puts a` - In here, a and b both point (or refer) to the same object (A String in this case). That's why we split the definition of a variable from a value, because many things can refer to the same value at any given time. A CONSTANT and a variable both refer to a value. The key difference now is a constant in
<Papierkorb> itself is constant: It always refers to the same value (might be any object). Consider this code: `FOO = "hi"; bar = "ho"` You can't change what FOO refers to afterwards (*), but you can easily what bar refers to afterwards. { (*) = Of course, ruby being ruby, you can change it. Avoid if possible. }
<apeiros> comet23: and yes, classes are the blueprints
<apeiros> what you said was slightly wrong because it implied classes weren't objects.
vuoto has joined #ruby
<comet23> i thought they weren't until they became instances of some variable
<apeiros> nothing becomes an instance of a variable
<apeiros> the only things which have instances are classes
<Papierkorb> comet23: However, as a constant points to an object, you can /change/ the state of this object. `FOO = []; FOO << "hi"` Is valid: You don't change what FOO points to (It's still the same Array object in this case!), but you change the state of the pointed-to (referred-to) array.
<apeiros> variables only *reference* things
<comet23> i mean before dong bike = Bike.new()
<apeiros> and those things are objects
<apeiros> and those objects can be classes
<apeiros> and classes are usually assigned to constants. they don't have to be, though.
rohitpaulk has quit [Ping timeout: 240 seconds]
<apeiros> >> @my_array_class = Class.new(Array); @my_array_class.new.is_a?(@my_array_class)
<ruby[bot]> apeiros: # => true (https://eval.in/832974)
<apeiros> >> @my_array_class = Class.new(Array); @my_array_class.is_a?(Class)
<ruby[bot]> apeiros: # => true (https://eval.in/832975)
<apeiros> >> x = Array; x.new
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<apeiros> >> x = Array; x.new
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
* apeiros hits eval.in
<apeiros> the result would be # => []
<apeiros> objects: things which you can assign to variables, and which you can invoke methods on.
<apeiros> *everything* where you call a method on is an object
<apeiros> note that with `foo = "hi"; foo.upcase!" you do NOT actually call "upcase!" on foo. you call it on the object referenced by foo.
<apeiros> we will colloquially say "call upcase! on foo". but that's because it'd be way too inconvenient to be precise all the time.
watersoul has quit [Ping timeout: 240 seconds]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> it becomes evident with e.g. this:
<apeiros> >> x = "hi"; y = x; y.upcase!; x
<comet23> Every time the interpreter sees " it creates a new instance of the String class and assigns it to that variable?
<ruby[bot]> apeiros: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
* apeiros grumbled
mrconfused has joined #ruby
<apeiros> meh, fail
bkxd has joined #ruby
bkxd_ has joined #ruby
<apeiros> yes, re "every time"
<apeiros> there are some optimized cases, but in general, this is true.
<apeiros> those are called literals. where the object is literally written in your code. it's not constructed e.g. from IO.
* apeiros afk for a bit
<comet23> I want to impress my technical interviewers when I'm going out job hunting. I want them to see that someone without a college degree can be knowledgeable too. Thank you for your help
<comet23> Thank you so much :)
MrSparkle has quit [Ping timeout: 248 seconds]
jameser has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
misery_ has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
mrconfused has quit [Ping timeout: 276 seconds]
pwned has joined #ruby
<ule> o/
govg has quit [Quit: leaving]
<ule> Happy Saturday folks
<pwned> happy midsummer festival!
<ule> \o/
_aeris_ has quit [Quit: ZNC - http://znc.sourceforge.net]
uZiel has quit [Remote host closed the connection]
<ule> I'm reading the clean code from uncle bob.. trying to make connections with the ruby/rails world
byte512 has joined #ruby
Asher has quit [Quit: Leaving.]
hotpancakes has quit [Ping timeout: 246 seconds]
watersoul has joined #ruby
hotpancakes has joined #ruby
andrewhl has joined #ruby
bkxd has joined #ruby
hndk has quit [Read error: Connection reset by peer]
hndk has joined #ruby
aglorei has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
aglorei has joined #ruby
Asher has joined #ruby
<Harzilein> ewin
mim1k has joined #ruby
im0nde has joined #ruby
im0nde has quit [Client Quit]
im0nde has joined #ruby
im0nde has quit [Client Quit]
im0nde has joined #ruby
im0nde has quit [Client Quit]
bkxd has joined #ruby
boombox_ has joined #ruby
quobo has joined #ruby
comet23 has left #ruby [#ruby]
mim1k has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
bkxd_ has joined #ruby
ar1a_ has quit [Ping timeout: 255 seconds]
ar1a has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
boombox_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
dennisvennink has joined #ruby
kculpis has joined #ruby
nyuszika7h has quit [Quit: WeeChat 1.8]
mim1k has quit [Ping timeout: 260 seconds]
nyuszika7h has joined #ruby
nyuszika7h has quit [Client Quit]
nyuszika7h has joined #ruby
nyuszika7h has quit [Client Quit]
rundor has joined #ruby
dionysus70 has joined #ruby
theunraveler has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
theunraveler has joined #ruby
nyuszika7h has joined #ruby
theunraveler has quit [Ping timeout: 240 seconds]
lxsameer has quit [Ping timeout: 246 seconds]
rivalomega has joined #ruby
hotpanca_ has joined #ruby
rkellermeyer has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
vuoto has quit [Remote host closed the connection]
impermanence has joined #ruby
rohitpaulk has joined #ruby
<impermanence> I'm studying the well grounded 2ed right now and I'm reading the threads overview section
rkellermeyer has joined #ruby
<impermanence> After copying and pasting the author's suggestion I don't get what he says should be stdout'ed
<impermanence> and I'm not sure why
<impermanence> Any insight would be greatly appreciated
<impermanence> :)
lxsameer has joined #ruby
<apeiros> well, that's what can happen with threads…
<apeiros> lets change the code slightly so it's less dependent on chance :)
<impermanence> It *kinda* works in pry
<apeiros> try this
<impermanence> The first line is stdouted immediately but I can't tell if it's like "returning" it or stdouting it or...
<apeiros> printing is not returning
<apeiros> also that code alone will probably be insufficient
<apeiros> without the thread.join, the "At the end of thread" won't be printed
<apeiros> since ruby only waits for the main thread to terminate, it doesn't care about other threads.
<impermanence> what you're saying surprises me because The Well Grounded is generally regarded as one of the finest books on Ruby every written (I think?)
<apeiros> I bet there are errata
<impermanence> not criticising anyone...I'm just like..."huh"...
<impermanence> oh yeah, bet you're right
<impermanence> yeah your second gist revision is where the author heads next
<impermanence> What is it about join that makes it the function we need to use (for threads)?
<impermanence> I usually only think about it in terms of strings and such
<apeiros> I guess the author wanted to demonstrate that "At the end of the thread" is not printed
<apeiros> Thread#join says "wait here until that thread has finished executing"
<apeiros> you can alternatively use Thread#value, which will also evaluate to the last value in the thread.
<apeiros> e.g. Thread.new { x = 3; y = 2; x+y }.value # => 5
<apeiros> &ri Thread impermanence
<apeiros> oy, derpy is dead :( poor bot
<impermanence> derpy is a legen name though, lol
<impermanence> legend
<apeiros> and its master isn't around either! :-O
<impermanence> btw...the additional "sleep 0.5" from your first gist revision was enough to get that first puts to stdout
<impermanence> why is that?
<apeiros> oh, thread moved to core? interesting: http://ruby-doc.org/core-2.4.1/Thread.html
<apeiros> impermanence: because threads run concurrently
<apeiros> and the sleep makes the main thread wait for half a second
<apeiros> so the thread you spawned has a chance to print first
<impermanence> oh. so like a thread fight?
<apeiros> if you don't sleep, the result is not really determined. it depends on what ruby schedules first.
<apeiros> it can even happen that the print operation is interleaved. then you get garbled output.
<impermanence> interesting
<apeiros> though, to ensure that two threads do NOT run concurrently, you shouldn't really ever use sleep. there are tools for that. e.g. Mutex. but I bet the author will get there too.
* apeiros afk for a bit
<impermanence> so how does one write Ruby code that cooperates or intuits the scheduler?
ttilley has joined #ruby
dasher00 has joined #ruby
ttilley has quit [Changing host]
ttilley has joined #ruby
hotpanca_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
<apeiros> impermanence: pretty sure the author will explain ;-)
hndk has quit [Ping timeout: 240 seconds]
<impermanence> yaa, reading the Thread class in core rn so I'm getting up to spizzeed.
<havenwood> impermanence: If you don't have any shared state it's not too bad at all!
<havenwood> impermanence: Jesse Storimer wrote a book on Ruby Threads that's a great introduction.
hotpancakes has quit [Ping timeout: 255 seconds]
<havenwood> "Working with Ruby Threads"
rkellermeyer has quit [Ping timeout: 268 seconds]
<havenwood> I'm excited over the possibility of Ruby getting green threads back, except this time auto-scheduled: https://bugs.ruby-lang.org/issues/13618
<havenwood> Like an Erlang process or Goroutine in Ruby.
<impermanence> havenwood: uh...I thought green threads were always a thing for Ruby though?
<havenwood> impermanence: Ruby had green threads in 1.8, but they could only use one core.
<havenwood> impermanence: Ruby started to map threads one-to-one to system threads in 1.9, but they're sometimes limited from running in parallel by the GVL (also called GIL).
<havenwood> impermanence: The green threads in 1.8 kinda became what is Fiber in 1.9, but they have to be scheduled by the programmer.
universal has joined #ruby
universa1 has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
rohitpaulk has joined #ruby
<impermanence> havenwood: wow, that Storimer link is excellent! I wish I had bought that Unix book he wrote instead of this other one I bought.
<havenwood> impermanence: normalperson implemented green threads for future Ruby that are evented, self-scheduling Fibers.
hotpancakes has joined #ruby
<havenwood> impermanence: They're great books. I recommend all three.
aglorei has quit [Ping timeout: 248 seconds]
pmden has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 246 seconds]
mokiwis has joined #ruby
aglorei has joined #ruby
oleo has quit [Read error: Connection reset by peer]
hndk has joined #ruby
_aeris_ has joined #ruby
pmden has joined #ruby
hays_ has quit [Ping timeout: 260 seconds]
pmden has quit [Ping timeout: 240 seconds]
eightlimbed has joined #ruby
mrconfused has joined #ruby
pmden has joined #ruby
AxelAlex has quit [Quit: AxelAlex]
nanoz has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
<eightlimbed> Does anyone know of a gem that handles audio recording? I'm looking for something that can pick up a recording and export a wav of flac file.
blackwind_123 has quit [Ping timeout: 260 seconds]
mokiwis has quit [Quit: See ya!]
jpinnix has left #ruby [#ruby]
blackwind_123 has joined #ruby
gheegh has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
Timba-as has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
DeeJayh__ has quit [Ping timeout: 260 seconds]
nanoz has quit [Quit: <3]
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
patarr has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
hotpanca_ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
Antiarc has quit [Ping timeout: 248 seconds]
al2o3-cr has quit [Ping timeout: 255 seconds]
Antiarc has joined #ruby
dasher00 has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
daivyk has quit [Ping timeout: 240 seconds]
dasher00 has joined #ruby
bronson has joined #ruby
Coldblackice has joined #ruby
Coldblackice has quit [Client Quit]
bronson has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Quit: Leaving]
_aeris_ has quit [Remote host closed the connection]
mrconfused has quit [Ping timeout: 255 seconds]
_aeris_ has joined #ruby
synion has quit [Quit: Leaving]
synion__ has quit [Quit: Leaving]
dennisvennink has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has joined #ruby
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Coldblackice has joined #ruby
impermanence has joined #ruby
Coldblackice is now known as Guest45726
hndk has quit [Quit: Leaving]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
uZiel has joined #ruby
empty_cup has quit [Quit: leaving]
vondruch has quit [Remote host closed the connection]
sagax has joined #ruby
vondruch has joined #ruby
patarr has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hashrocket has joined #ruby
Guest45726 has quit [Ping timeout: 260 seconds]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
cyberRodent has quit [Ping timeout: 268 seconds]
cyberRodent has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
pwned has quit [Ping timeout: 240 seconds]
DeeJayh has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
dviola has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
alex`` has joined #ruby
DeeJayh has quit [Ping timeout: 248 seconds]
cyberRodent has quit [Ping timeout: 246 seconds]
truenito has joined #ruby
nahra`` has joined #ruby
nahra` has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
cyberRodent has joined #ruby
DeeJayh has joined #ruby
xpedititon has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
thiru has joined #ruby
Vegitto has joined #ruby
<Vegitto> hello
TheBloke has joined #ruby
<Vegitto> is ruby a cute language?
Guest52 has joined #ruby
Guest52 is now known as Saifulapm
<Saifulapm> Hi, Can anyone help me ? How to use dclone() method ?
<apeiros> Vegitto: sure
<apeiros> Saifulapm: more context please
<Saifulapm> In ruby-lang website, I just found this
<Saifulapm> provides a unified clone operation, for REXML::XPathParser to use across multiple Object+ types
armyriad has quit [Quit: Leaving]
<apeiros> do you use REXML?
<apeiros> that's not an answer to my question
<Saifulapm> No.. I don't know what is REXML .. I am learning Ruby
<apeiros> do you use REXML?
<apeiros> then you don't need dclone and probably don't have it
<Saifulapm> ok. But What is REXML ?
<apeiros> classes in ruby are open, means that any library can add additional methods to existing classes. rexml apparently adds dclone to Array (and probably others)
<apeiros> rexml is an xml parser shipping with ruby, it's part of its standard library
<apeiros> so maybe a better question now is: what did you want to use dclone for?
<Saifulapm> Yes
<apeiros> interesting answer to a "what" question…
rgtk has joined #ruby
Nicmavr has quit [Ping timeout: 246 seconds]
rgtk has quit [Client Quit]
rgtk has joined #ruby
Nicmavr has joined #ruby
<Saifulapm> I didn't find any use of dclone() in google. :(
Nicmavr is now known as Guest82335
bronson has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
centrx has quit []
hotpanca_ has quit []
<apeiros> Saifulapm: what problem are you trying to solve?
bronson has quit [Ping timeout: 240 seconds]
aclark has quit [Remote host closed the connection]
<Saifulapm> Actually I am learning now Ruby from ruby-doc website. In Array class, I found this method. In Ruby doc , no example for this method. Also I have searched in google for example of this method. Just I am playing with Ruby
roke has joined #ruby
aclark has joined #ruby
<apeiros> read the core docs, not apidock
<Saifulapm> ok
houhoulis has joined #ruby
truenito has quit [Ping timeout: 240 seconds]
d4ybl1nd has joined #ruby
roke has quit [Quit: roke]
DeeJayh_ has joined #ruby
DeeJayh has quit [Ping timeout: 240 seconds]
d4ybl1nd has quit [Client Quit]
vircung has quit [Ping timeout: 246 seconds]
vuoto has joined #ruby
vircung has joined #ruby
xpedititon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
xpedititon has joined #ruby
impermanence has joined #ruby
impermanence has quit [Client Quit]
impermanence has joined #ruby
Vegitto has quit [Ping timeout: 260 seconds]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Timba-as has quit [Quit: Be back later ...]
rohitpaulk has quit [Ping timeout: 240 seconds]
gheegh has quit [Ping timeout: 240 seconds]
vuoto has quit [Quit: Lost terminal]
rohitpaulk has joined #ruby
cadillac__ has joined #ruby
hays has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac__ is now known as cadillac_
mrgrieves has quit [Ping timeout: 240 seconds]
<rubycoder37> I need to represent currency in decimal, is BigDecimal good enough?
<al2o3-cr> rubycoder37: yes, or just use Rational
t-recx has quit [Quit: t-recx]
weaksauce has quit [Read error: Connection reset by peer]
<rubycoder37> ok, thank you
xpedititon has quit [Quit: Textual IRC Client: www.textualapp.com]
<Zarthus> or a string / two integers if your need is very basic
<Zarthus> (could be a single integer too if you calculate from cents)
<apeiros> rubycoder37: or the money gem
hashrocket has quit [Quit: Connection closed for inactivity]
impermanence has joined #ruby
quobo has joined #ruby
Saifulapm has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
rivalomega has quit [Remote host closed the connection]
daivyk has joined #ruby
ecuanaso has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
impermanence has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Mia has quit [Read error: Connection reset by peer]
gnoss has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
rivalomega has joined #ruby
rivalomega has quit [Remote host closed the connection]
rivalomega has joined #ruby
roshanavand has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
roshanavand has quit [Client Quit]
<yorickpeterse> I'm shocked there's no financial related gem called makeitrain
hays has quit [Ping timeout: 248 seconds]
jud has quit [Ping timeout: 248 seconds]
lxsameer has quit [Quit: WeeChat 1.9]
ecuanaso has joined #ruby
dasher00 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
dasher00 has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darix has quit [Quit: may the packets be with you...]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
houhoulis has quit [Remote host closed the connection]
cam27_ has joined #ruby
ur5us has joined #ruby
cam27 has quit [Ping timeout: 255 seconds]
cam27_ is now known as cam27
kobain has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
rundor has joined #ruby
bruno- has joined #ruby
rivalomega has quit [Read error: Connection reset by peer]
rivalomega has joined #ruby
rivalomega has quit [Remote host closed the connection]
nowhereman has quit [Quit: Konversation terminated!]
nowhereman has joined #ruby
rivalomega has joined #ruby
<rubycoder37> yorickpeterse: hah! I'm sure managers would love that one
mjolnird has joined #ruby
hahuang65 has joined #ruby
ignarps has quit [Ping timeout: 240 seconds]
<apeiros> makeatrain?
mjolnird has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 260 seconds]
mjolnird has joined #ruby
<havenwood> t🚂🚋🚋
sepp2k has quit [Read error: Connection reset by peer]
mjolnird has left #ruby [#ruby]
sepp2k has joined #ruby
misery_ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
Sammichmaker has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
jeffreylevesque_ has joined #ruby
rundor has joined #ruby
rundor has quit [Remote host closed the connection]
ignarps has joined #ruby
rivalomega has quit [Remote host closed the connection]
bkxd has joined #ruby
bkxd_ has joined #ruby
zapata has quit [Ping timeout: 276 seconds]
bkxd_ has quit [Ping timeout: 248 seconds]
bkxd has quit [Ping timeout: 248 seconds]
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
jdawgaz has joined #ruby
patarr has joined #ruby
zapata has joined #ruby
Guest62604 has joined #ruby
<Guest62604> Ruby is not the best language IMO
<Guest62604> Has anyone considered C?
<Papierkorb> Ok leon
<Guest62604> I just find it a bit slow
<Guest62604> C is really quite fast
biberu has quit []
hays has joined #ruby
rubylegend2092 has joined #ruby
rubylegend2092 has quit [Remote host closed the connection]
rubylegend2092 has joined #ruby
<rubylegend2092> #rubyonrails
quobo has quit [Quit: Connection closed for inactivity]
<Guest62604> rubylegend2092, Have you considered C as your saviour?
<rubylegend2092> Yes, actually. I love C
patarr has quit [Ping timeout: 240 seconds]
impermanence has joined #ruby
<rubycoder37> that feeling when I realize that the application I wrote is smarter than myself
impermanence has quit [Client Quit]
<apeiros> !troll Guest62604
Guest62604 was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
alveric2 has joined #ruby
alveric1 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
jud has joined #ruby
bkxd_ has joined #ruby
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
rwb has joined #ruby
jdawgaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
zapata has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 248 seconds]
latemus has quit [Ping timeout: 268 seconds]