apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
tjohnson has quit [Quit: Connection closed for inactivity]
baroquebobcat has quit [Quit: baroquebobcat]
vozcelik has joined #ruby
vozcelik has quit [Client Quit]
crueber1 has quit [Quit: Leaving.]
vozcelik has joined #ruby
dixie__ has quit [Remote host closed the connection]
<aob_> jhass: ok got it working with a combination of flat_map and map :)
siso has quit [Quit: siso]
Musashi007 has quit [Quit: Musashi007]
zyxelthrone has quit [Quit: WeeChat 1.1.1]
vozcelik has quit [Ping timeout: 250 seconds]
athan has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clabruno has joined #ruby
davejacobs has joined #ruby
iwishiwerearobot has joined #ruby
razorsharph has quit [Ping timeout: 250 seconds]
wolves_cs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has joined #ruby
zacstewart has joined #ruby
tunaCanBruh has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
iwishiwerearobot has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
jlast has joined #ruby
alyosha has quit [Remote host closed the connection]
tvon has joined #ruby
parduse has quit []
CustosLimen has quit [Ping timeout: 240 seconds]
towski_ has quit [Ping timeout: 245 seconds]
athan has quit [Ping timeout: 245 seconds]
athan has joined #ruby
jlast_ has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
multi_io has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
parduse has joined #ruby
jack_rabbit has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
allcentury has joined #ruby
multi_io_ has quit [Ping timeout: 250 seconds]
jlast_ has quit [Ping timeout: 245 seconds]
greenbagels has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmichelsen has joined #ruby
mxrguspxrt has joined #ruby
dfinninger has quit [Remote host closed the connection]
bmichelsen has quit [Client Quit]
athan has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
ahuman_ is now known as ahuman
charliesome has quit [Quit: zzz]
Soda has joined #ruby
Azure has quit [Excess Flood]
CustosLimen has joined #ruby
Azure has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Alina-malina has joined #ruby
mxrguspxrt has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
ponga has quit [Ping timeout: 250 seconds]
mxrguspxrt has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
mroach has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
Hobogrammer has joined #ruby
CustosL1men has quit [Ping timeout: 245 seconds]
rubytor has joined #ruby
fryguy9 has quit [Quit: Leaving.]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
werelivinginthef has joined #ruby
athan has joined #ruby
_maes_ has quit [Ping timeout: 244 seconds]
werelivinginthef has quit [Ping timeout: 252 seconds]
pengin has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
dkphenom has joined #ruby
athan has quit [Ping timeout: 244 seconds]
tmk1108 has joined #ruby
athan has joined #ruby
fgo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pika_pika has quit [Ping timeout: 245 seconds]
DonOtreply has joined #ruby
livingstn has joined #ruby
jbw__ has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
wolves_cs has joined #ruby
rubytor has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
stunder has quit [Read error: Connection reset by peer]
jbw_ has quit [Ping timeout: 256 seconds]
ptrrr has quit [Client Quit]
jonr22 has joined #ruby
Limix has quit [Quit: Limix]
athan has quit [Ping timeout: 240 seconds]
piotrj has joined #ruby
athan has joined #ruby
marr has quit [Ping timeout: 265 seconds]
clabruno is now known as razorsharph
nfk has quit [Quit: yawn]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptrrr has joined #ruby
mistermocha has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
rubytor has joined #ruby
gsd has joined #ruby
wallerdev has quit [Quit: wallerdev]
baweaver has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 256 seconds]
ptrrr has quit [Ping timeout: 246 seconds]
razieliyo has joined #ruby
dorei has quit []
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
mistermocha has quit [Remote host closed the connection]
piotrj_ has joined #ruby
swgillespie has joined #ruby
pietr0 has quit [Quit: pietr0]
zacstewart has quit [Remote host closed the connection]
jhebden has joined #ruby
jhebden has quit [Max SendQ exceeded]
scripore has quit [Quit: This computer has gone to sleep]
piotrj has quit [Ping timeout: 245 seconds]
jhebden has joined #ruby
jlast has joined #ruby
scripore has joined #ruby
rubytor has quit [Ping timeout: 246 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
lioninawhat has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 255 seconds]
karmatr0n has joined #ruby
Sirupsen has joined #ruby
jlast has joined #ruby
jack_rabbit has joined #ruby
mistermocha has joined #ruby
Takle has quit [Remote host closed the connection]
Number2 has joined #ruby
zachrab has joined #ruby
Deithrian has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
zachrab has quit [Ping timeout: 245 seconds]
mistermocha has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
chrishough has joined #ruby
fabrice31 has joined #ruby
duncannz has joined #ruby
mmoretti has quit [Quit: Leaving...]
chrishough has quit [Client Quit]
TristanH has quit [Ping timeout: 252 seconds]
scripore has quit [Quit: This computer has gone to sleep]
shellfu_afk has quit [Read error: Connection reset by peer]
ponga has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 255 seconds]
pandaant has joined #ruby
psy_ has joined #ruby
wallerdev has joined #ruby
dfinninger has joined #ruby
Ulrike has quit [Quit: asche zu asche und staub zu staub.]
Ulrike has joined #ruby
YourNickname has joined #ruby
sevvie has joined #ruby
YourNickname is now known as Guest99833
timanema has quit [Quit: leaving]
fgo has joined #ruby
dfinninger has quit [Ping timeout: 246 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
Guest99833 has quit [Remote host closed the connection]
leafybasil has joined #ruby
Jetchisel has quit [Ping timeout: 252 seconds]
allcentury has quit [Quit: WeeChat 1.0]
DonOtreply has quit [Quit: DonOtreply]
triple_b has joined #ruby
piotrj_ has quit [Remote host closed the connection]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
athan has quit [Quit: No Ping reply in 180 seconds.]
Megtastique has joined #ruby
athan has joined #ruby
lampd1_ is now known as lampd1
ecksit has joined #ruby
Deithrian has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
<m4rCsi> Hi
ZoanthusR has joined #ruby
<jhass> hi
baroquebobcat has joined #ruby
arescorpio has joined #ruby
Guest123 has joined #ruby
<m4rCsi> I am passing a hash from one part of an application to another. What is the best way to test (with rspec) to output the first part of the application and then also test/generate a valid hash for the test of the second part of the app.
Jetchisel has joined #ruby
<m4rCsi> So the two are both conform to the same. Like if I further down the line change the output. It affects the test of the second.
<m4rCsi> Is there a good way to deal with this?
blackmes1 has quit [Ping timeout: 265 seconds]
OrbitalKitten has joined #ruby
Tuxero has left #ruby [#ruby]
robustus has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Client Quit]
robustus has joined #ruby
cvtsx has quit [Read error: Connection reset by peer]
skj3gg has joined #ruby
athan has quit [Ping timeout: 252 seconds]
techietrash has joined #ruby
iwishiwerearobot has joined #ruby
ptrrr has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
piotrj has joined #ruby
jenrzzz has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
tunaCanBruh has joined #ruby
maximski has quit []
tier has joined #ruby
livingstn has quit [Ping timeout: 250 seconds]
piotrj_ has joined #ruby
tunaCanBruh has quit [Ping timeout: 250 seconds]
skj3gg has quit [Quit: ZZZzzz…]
siso has joined #ruby
jlast has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
piotrj has quit [Ping timeout: 245 seconds]
livingstn has joined #ruby
mikeric has quit []
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
bonhoeffer has joined #ruby
triple_b has quit [Quit: Textual IRC Client: www.textualapp.com]
parduse has quit []
startupality has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has joined #ruby
penzur has joined #ruby
havenwood has quit []
jaequery has joined #ruby
kt2 has quit [Quit: ...]
athan has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
jaequery has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
Guest54901 has joined #ruby
ptrrr has quit [Ping timeout: 265 seconds]
Guest54901 has quit [Client Quit]
havenwood has joined #ruby
lioninawhat has joined #ruby
kt2 has joined #ruby
freds25t_ has quit [Remote host closed the connection]
crazymykl has joined #ruby
kt2 has quit [Client Quit]
mloveless has quit [Remote host closed the connection]
DogHackit has joined #ruby
lys has joined #ruby
freds25th has joined #ruby
Guest123 has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
<DogHackit> Hello. If I create a class with an initializer @init = Array.new, can I use array methods on objects that I create with that class?
<mozzarella> is squeeze a new method?
startupality has quit [Client Quit]
Mia has quit [Read error: Connection reset by peer]
<havenwood> mozzarella: nope
<mozzarella> it's the first time I see it
mxrguspxrt has quit [Remote host closed the connection]
livingstn has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Remote host closed the connection]
riotjones has joined #ruby
<jhass> DogHackit: no, you need to delegate the calls. delegate and forwardable stdlibs may be of interest
<pipework> Mmm forwardable.
wallerdev has quit [Quit: wallerdev]
<DogHackit> jhass, pipework: thanks! I will check it out!
kt2 has joined #ruby
livingstn has joined #ruby
freds25th has quit [Ping timeout: 265 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claptor has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkphenom has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
riotjones has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
willharrison has joined #ruby
mikeric has joined #ruby
piotrj_ has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
jonr22 has joined #ruby
Channel6 has quit [Remote host closed the connection]
<mozzarella> guys
<mozzarella> is there any good ncurses library for ruby? there's a bug in ncursesw so I can't use that one
<mozzarella> it seems to be dead anyway
wallerdev has joined #ruby
mkaesz has joined #ruby
<pipework> There's a couple libraries, but I never felt like they were good, personally. I spent a few weekends trying to write a testing framework to functionally test ncurses applications in ruby. Was a mess.
athan has quit [Ping timeout: 265 seconds]
robert__ has quit [Remote host closed the connection]
davejacobs has quit [Read error: Connection timed out]
jonr22 has quit [Ping timeout: 245 seconds]
kt2 has quit [Quit: ...]
amclain has joined #ruby
lioninawhat has quit [Remote host closed the connection]
davejacobs has joined #ruby
robert__ has joined #ruby
mkaesz has quit [Ping timeout: 246 seconds]
robert__ has quit [Client Quit]
piotrj has joined #ruby
swgillespie has joined #ruby
devdazed has joined #ruby
devdazed has quit [Client Quit]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beef-wellington has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
jenrzzz has joined #ruby
wallerdev has quit [Quit: wallerdev]
freerobby has quit [Quit: Leaving.]
piotrj has quit [Remote host closed the connection]
slawrence00 has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
kt2 has joined #ruby
slushie|| has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
livingstn has quit [Ping timeout: 250 seconds]
beef-wellington has joined #ruby
piotrj has joined #ruby
zachrab has joined #ruby
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
DogHackit has quit [Quit: Konversation terminated!]
mloveless has joined #ruby
jlast has joined #ruby
wolves_cs has quit [Quit: Textual IRC Client: www.textualapp.com]
<mozzarella> ;(
zachrab has quit [Ping timeout: 252 seconds]
tvon has quit [Quit: leaving]
yfeldblu_ has quit [Ping timeout: 246 seconds]
jlast has quit [Ping timeout: 245 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jlast has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
redondos has joined #ruby
davejacobs has quit [Remote host closed the connection]
<redondos> hello. what's an efficient way to flatten a hash of hashes and arrays (of unknown depth) into an array of its values?
rbennacer has joined #ruby
<Nilium> What would a hash be flattened as?
<redondos> an array of its values, recursively
<redondos> i don't care about keys
piotrj has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
<Nilium> So, get its values, map array to convert all hashes to arrays, flatten, repeat until no hashes are found?
<redondos> yes
mikeric has quit []
<Nilium> That seems efficient to me. The alternative is to walk it recursively.
<Nilium> The recursive walk might be more efficient since it could avoid allocations. Don't know. Profile and try.
rbennacer has quit [Ping timeout: 255 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
<redondos> yes
<redondos> thanks
nobitanobi has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
droidburgundy has joined #ruby
Baprath has joined #ruby
leafybasil has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
bonhoeffer has quit [Client Quit]
freds25th has joined #ruby
Channel6 has joined #ruby
revoohc has quit [Quit: revoohc]
freds25th has quit [Ping timeout: 245 seconds]
razorsharph has quit [Quit: Konversation terminated!]
yfeldblum has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
vdamewood has joined #ruby
Lemur has joined #ruby
hamakn has joined #ruby
iwishiwerearobot has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
nobitanobi has quit []
luriv_ has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
Guest90 has joined #ruby
luriv has quit [Ping timeout: 245 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
tus has quit []
tunaCanBruh has quit [Ping timeout: 245 seconds]
kt2 has quit [Quit: ...]
yfeldblum has quit [Ping timeout: 245 seconds]
karmatr0n has joined #ruby
Musashi007 has joined #ruby
dfinninger has joined #ruby
braincrash has quit [Quit: bye bye]
kt2 has joined #ruby
joufflu has joined #ruby
CpuID2 has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
dfinninger has quit [Remote host closed the connection]
braincrash has joined #ruby
freerobby has quit [Client Quit]
kt2 has quit [Quit: ...]
zacstewart has joined #ruby
jlast has joined #ruby
bunbury has quit [Ping timeout: 252 seconds]
kt2 has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
kt2 has quit [Client Quit]
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
pontiki has joined #ruby
davejacobs has joined #ruby
CpuID2 has quit [Quit: Leaving]
jlast has quit [Ping timeout: 245 seconds]
fedalto has joined #ruby
hamakn_ has joined #ruby
mistermocha has joined #ruby
davejacobs has quit [Ping timeout: 252 seconds]
jlast has joined #ruby
<pontiki> hi, all
<Nilium> Hullo.
hamakn has quit [Ping timeout: 256 seconds]
jarjar_prime has joined #ruby
kt2 has joined #ruby
Guest90 is now known as _seanc_
mistermocha has quit [Ping timeout: 245 seconds]
kt2 has quit [Client Quit]
jlast has quit [Ping timeout: 245 seconds]
<pontiki> really quiet tonite
<pontiki> this is a tech channel; none of us have lives...
<Nilium> Was really quiet at the office today because of the whole summit thing and everyone probably being hungover
piotrj has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
piotrj has quit [Ping timeout: 250 seconds]
jaequery has joined #ruby
jonr22 has joined #ruby
gsd has joined #ruby
zachrab has joined #ruby
jenrzzz has joined #ruby
maletor has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
astrobun_ has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
zachrab has quit [Ping timeout: 246 seconds]
Lemur has quit [Read error: Connection reset by peer]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Darryl___ has joined #ruby
Lemur has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
KnownSyntax has joined #ruby
mloveless has quit []
lys has quit [Quit: lys]
Musashi007 has quit [Quit: Musashi007]
Soda has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
swgillespie has quit [Quit: Textual IRC Client: www.textualapp.com]
penzur has quit [Quit: Leaving]
swgillespie has joined #ruby
Baprath has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150125221831]]
Guest123 has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
sevvie has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
sevvie has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
DonOtreply has joined #ruby
greenbagels has joined #ruby
shum has quit [Remote host closed the connection]
hamakn_ has quit [Remote host closed the connection]
ghormoon has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 246 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DonOtreply has quit [Ping timeout: 245 seconds]
jack_rabbit has quit [Ping timeout: 246 seconds]
kt2 has joined #ruby
CpuID2 has joined #ruby
jlast has joined #ruby
rvchangue has quit [Quit: dead]
arescorpio has quit [Excess Flood]
CpuID2 has quit [Client Quit]
Guest47872 has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
speaking1ode has joined #ruby
nobitanobi has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
fedalto has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
Guest123 has joined #ruby
mikecmpbll has quit [Quit: ciao.]
speaking1ode is now known as speakingcode-wor
smithers has joined #ruby
PanzerModern has joined #ruby
Megtastique has quit []
beef-wellington has quit [Ping timeout: 265 seconds]
iwishiwerearobot has joined #ruby
agent_white has joined #ruby
balazs has quit [Ping timeout: 252 seconds]
josephcs has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tunaCanBruh has joined #ruby
mroach has quit [Ping timeout: 272 seconds]
astrobun_ has quit [Remote host closed the connection]
arup_r has joined #ruby
smithers has quit [Quit: Leaving]
Guest47872 has quit [Quit: dead]
codeurge has joined #ruby
rvchangue has joined #ruby
it0a has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
scripore has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
scripore has quit [Client Quit]
goodenough has quit [Remote host closed the connection]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
_seanc_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheNet has joined #ruby
tmtwd_ has joined #ruby
razieliyo has quit [Ping timeout: 250 seconds]
scripore has joined #ruby
tmk1108 has quit [Quit: Textual IRC Client: www.textualapp.com]
josephcs_ has joined #ruby
blizzy has quit [Ping timeout: 250 seconds]
gsd has quit [Ping timeout: 246 seconds]
ptrrr has joined #ruby
daed has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
josephcs has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
ptrrr has quit [Ping timeout: 245 seconds]
agrinb has quit [Ping timeout: 245 seconds]
josephcs_ is now known as josephcs
gsd has joined #ruby
jlast has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
iamninja has quit [Ping timeout: 246 seconds]
DonOtreply has joined #ruby
DonOtreply has quit [Client Quit]
jlast has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Remote host closed the connection]
DonOtreply has joined #ruby
mroach has joined #ruby
Musashi007 has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
mroach has quit [Ping timeout: 272 seconds]
mroach has joined #ruby
nobitanobi has joined #ruby
jonr22 has joined #ruby
JBreit has joined #ruby
DEA7TH has joined #ruby
DEA7TH has joined #ruby
zachrab has joined #ruby
pagios has joined #ruby
<pagios> hi, is ruby considered a functional programming language or oop?
karmatr0n has quit [Remote host closed the connection]
<daed> oop i'd say
<pagios> it looks like FP (the syntax) since you can avoid using for loops and stuff
pontiki has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
<daed> 'avoiding for loops' by using blocks you mean?
zacts has joined #ruby
<pagios> by using methods on objects i mean
<pagios> method.filter() etc
beef-wellington has joined #ruby
Stoge88 has joined #ruby
zachrab has quit [Ping timeout: 265 seconds]
<daed> everything in ruby is an object though
<daed> blocks don't negate that afaik
<pagios> i mean i can do object.filter(..) instead of a for (i=0;i<x;i++ { object manipulation} which made me think ruby uses FP instead of oop
<daed> i guess it's more that style
Musashi007 has quit [Quit: Musashi007]
<pagios> so it is fp?
<daed> you can use the 'style', but i don't think it's a fp languag3e
lucyinthesky has joined #ruby
<daed> guess it depends on how you define it
<daed> ruby has first class functions so there's that
agrinb has joined #ruby
<daed> and isn't functional programming focused on immutability/
davejacobs has joined #ruby
<daed> ruby isn't pure functional in that sense
freds25th has joined #ruby
<pagios> s oit is oop with a sense of FP
<daed> that's probably more accurate
<daed> why do you ask?
beef-wellington has quit [Ping timeout: 252 seconds]
<pagios> curiosity
<daed> what languages do you currently use and what interests you about ruby
<pagios> i dont use any languages yet, coming from a java background, learning javascript and curious about the popularity of ruby
<pagios> was tthinking of learning ruby as a backend programming language when developping wbe apps
agrinb has quit [Ping timeout: 245 seconds]
<daed> ahh i just did a deep dive into javascript last year
<daed> i have put js/frameworks against ruby/sinatra/rails for years
<daed> works well together
<pagios> frontend js/frameworks and backend ruby/sinatra?
versatiletech has quit [Quit: versatiletech]
vozcelik has joined #ruby
<daed> yeah
davejacobs has quit [Ping timeout: 246 seconds]
<pagios> why not node.js and js frameworks in backend?
hvxgr has quit [Ping timeout: 240 seconds]
<daed> i did a proof of concept in node.js
freds25th has quit [Ping timeout: 245 seconds]
<daed> just find ruby/rails easier to write and more powerful out of the box IMO
<daed> to each their own though
mxrguspxrt has joined #ruby
<daed> used node.js for a websocket app
<pagios> so xmlrequest/websockets -> ruby sinatra etc
<daed> yeah i've done that too
<pagios> guess i am on your track then
<daed> ruby as a langauge is just infinitely more pleasant than javascript overall
<pagios> never tried node.js though
<pagios> daed: even when we talk angular with js?
<daed> if for no other reason than 'principle of least surprise'
<daed> yeah that node.js app i wrote was angular on the front-end but it speaks to rails all the same, i don't think angular cares as much
<pagios> i image a ruby binding for javascript on frontend that would be sweet
<daed> not sure that'd be practical
<daed> but would be nice
<pagios> daed: did you try python btw?
<daed> pagios: i spent about 6 years writing python before i found/learned ruby
<daed> havent looked back since really
<pagios> oh good to know
<daed> python is the opposite of 'everything is an object'
<daed> you don't call object.method
<daed> you call method(object/variable)
<daed> doesn't seem as pleasant to me overall
<pagios> so you are using sinatra for small quick web things and rails for bigger web platforms
<daed> pretty much
<pagios> yea i am not considering python
mxrguspxrt has quit [Ping timeout: 245 seconds]
<daed> sinatra makes great lightweight webservices
<daed> i switched to python back in the day because i was doing php
<daed> so python was like 239849823489 steps up
<pagios> such an adventure you had :)
<daed> that's not even the half of it :/
<pagios> and yet programming language are still coming out..
<daed> out of like 15-20 languages, ruby seems the most sane to me
<daed> i started doing some sample projects in go lately too
<daed> it's not bad
<pagios> but you have to know javascript for the frontend, there is no question about that
<daed> i just wouldn't do anything web-related in it
<daed> yeah
<daed> that's why i did the deep dive
<pagios> daed: happy to be on the same track
<daed> if you ever want to know every single intimate detail of js
<daed> from the guy who wrote jquery
<daed> it's extremely detailed
<pagios> daed: wanna get familair wit hthe language first, i am reading the mozilla thing for nwo
CustosLimen has quit [Ping timeout: 255 seconds]
ARCADIVS has joined #ruby
<pagios> tried the eloquent book but quite technical for a newbie
<daed> for js?
CustosLimen has joined #ruby
<pagios> yes
fantazo has joined #ruby
<daed> not sure i read that one
<daed> i've read eloquent ruby though
<pagios> where did you start with js
<pagios> its an off topic but..
User458764 has joined #ruby
<daed> 1997 when i was writing lame php crap, i used js for basic frontend stuff
<daed> stuck with it, but never really dug deep into the language
vozcelik has quit [Ping timeout: 245 seconds]
<daed> it's a necessity for a lot of frontends so i figured i might as well
<pagios> read any js book initally?
<daed> not really no, i think this was the first, i just spend a lot of time in the browser consoles/REPL experimenting and reading code
<daed> if i had to do it over i'd probably just read this book, it has full unit tests in detail for every output and why it happens
fabrice31 has joined #ruby
<daed> full scope and explanation of scope/closures
bMalum has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pagios> daed: recommended for a newbie?
<daed> not sure really, how experienced in java are you
sevenseacat has joined #ruby
<pagios> i know the concepts, can write code
<daed> this is actually how i learned most all of ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<daed> read the entire thing, experimented
fabrice31 has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Ping timeout: 245 seconds]
apeiros__ has joined #ruby
Vivex_ has joined #ruby
Joufflu_ has joined #ruby
mikepack has joined #ruby
Guest123 has joined #ruby
Vivex has quit [Ping timeout: 245 seconds]
mocchi has quit [Ping timeout: 272 seconds]
joufflu has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 246 seconds]
disperso has quit [Ping timeout: 245 seconds]
spacemud has joined #ruby
mocchi has joined #ruby
suy|BNC has joined #ruby
OrbitalKitten has joined #ruby
parus has quit [Ping timeout: 276 seconds]
parus has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
OrbitalKitten has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
jlast has joined #ruby
Skelz0r has quit [Ping timeout: 250 seconds]
Tuxero has joined #ruby
raphaelss has quit [Ping timeout: 250 seconds]
Skelz0r has joined #ruby
Deithrian has joined #ruby
swgillespie has joined #ruby
nobitanobi has quit [Remote host closed the connection]
justinmcp_ has joined #ruby
fredsir_ has joined #ruby
raphaelss has joined #ruby
speakingcode-wor has quit [Quit: Lost terminal]
javawizard has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Dreamer3__ has joined #ruby
KramerC_ has joined #ruby
KramerC has quit [Disconnected by services]
KramerC_ is now known as KramerC
jlast has joined #ruby
lostcuaz_km has joined #ruby
jhass|off has joined #ruby
Deithrian has quit [Ping timeout: 245 seconds]
Dreamer3 has quit [Max SendQ exceeded]
Patteh has joined #ruby
hvxgr has joined #ruby
<arup_r> Guys,,, Could you point some Freelancer sites.. I know only Odesk...
jlast has quit [Ping timeout: 245 seconds]
FifthWall_ has joined #ruby
bennyklo1z has joined #ruby
LiquidInsect has joined #ruby
cpt_yossarian has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
jhass has quit [*.net *.split]
yokel_ has quit [*.net *.split]
fredsir has quit [*.net *.split]
LiquidIn1ect has quit [*.net *.split]
patteh_ has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
ahuman has quit [*.net *.split]
bennyklotz has quit [*.net *.split]
ValicekB has quit [*.net *.split]
jcp has quit [*.net *.split]
justinmcp has quit [*.net *.split]
FifthWall has quit [*.net *.split]
chuck has quit [*.net *.split]
xybre has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
doobi-sham-95717 has quit [*.net *.split]
lostcuaz has quit [*.net *.split]
j416 has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
oz has quit [*.net *.split]
jhass|off is now known as jhass
ahuman has joined #ruby
Guest90 has joined #ruby
<muzik> rentacoder.net
jhebden has quit [Ping timeout: 265 seconds]
cpt_yossarian has joined #ruby
doobi-sham-95717 has joined #ruby
iwishiwerearobot has joined #ruby
<arup_r> thanks
lid_ has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
doobi-sham has quit [K-Lined]
doobi-sham-95717 has quit [K-Lined]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
msgodf has joined #ruby
chuck has joined #ruby
ValicekB_ has joined #ruby
vdamewood has joined #ruby
ValicekB_ is now known as ValicekB
agrinb has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
Lewix has joined #ruby
peteyg has joined #ruby
doobi-sham-95717 has joined #ruby
oz has joined #ruby
Gadgetoid has joined #ruby
terlar has joined #ruby
sn0wb1rd has joined #ruby
ItSANgo_ has joined #ruby
yokel_ has joined #ruby
doobi-sham-95717 has quit [Max SendQ exceeded]
versatiletech has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
j416 has joined #ruby
versatiletech has quit [Client Quit]
agrinb has quit [Ping timeout: 245 seconds]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
amacou has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
Lewix has quit [Ping timeout: 246 seconds]
davejacobs has joined #ruby
freds25th has joined #ruby
yfeldblum has joined #ruby
Morkel has joined #ruby
davejacobs has quit [Ping timeout: 246 seconds]
freds25th has quit [Ping timeout: 265 seconds]
msgodf has quit [Ping timeout: 246 seconds]
TheNet has quit [Ping timeout: 240 seconds]
aapole has joined #ruby
rippa has joined #ruby
lkba has joined #ruby
yfeldblu_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 250 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
aapole has quit [Ping timeout: 264 seconds]
ValicekB has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
Channel6 has quit [Remote host closed the connection]
goshdarnyou has joined #ruby
amystephen has joined #ruby
Takle has joined #ruby
Spami has joined #ruby
ValicekB has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
dcarmich has joined #ruby
apurcell has quit [Quit: Be back later ...]
goodenough has joined #ruby
amclain has quit [Quit: Leaving]
magicien has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
Takle has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
mikepack has quit [Remote host closed the connection]
jonr22 has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
fgo has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
jlast has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
beef-wellington has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
agrinb has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
roshanavand1 has joined #ruby
ptrrr has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
josephcs_ has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
Darryl___ has quit [Quit: Connection closed for inactivity]
josephcs has quit [Ping timeout: 252 seconds]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has joined #ruby
lessless has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
Stoge88 has joined #ruby
fabrice31 has joined #ruby
amacou has quit [Read error: Connection reset by peer]
amacou has joined #ruby
Guest123 has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
Zai00 has joined #ruby
agent_white has quit [Quit: goodnightmoon]
Alina-malina has quit [Ping timeout: 252 seconds]
Alina-malina has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 264 seconds]
avrc has joined #ruby
JohnBat26 has joined #ruby
SumoBoy has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
malcolmva has quit [Ping timeout: 252 seconds]
luriv has joined #ruby
Zarthus has quit [Quit: This night will fall like any other, daylight subsides and shadows crawl.]
luriv_ has quit [Quit: Leaving]
jerry__ has joined #ruby
Senjai has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
hamakn_ has joined #ruby
fgo has joined #ruby
malcolmva has joined #ruby
iwishiwerearobot has joined #ruby
AlexRussia has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
jlast has quit [Ping timeout: 245 seconds]
jerry__ has left #ruby [#ruby]
jlast has joined #ruby
josephcs_ is now known as josephcs
fgo has quit [Ping timeout: 256 seconds]
CpuID2 has joined #ruby
agrinb has joined #ruby
hamakn_ has quit [Remote host closed the connection]
xybre has joined #ruby
xybre has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tunaCanBruh has joined #ruby
iwishiwerearobot has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
mxrguspxrt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Lemur has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 245 seconds]
Lemur has joined #ruby
Senjai has joined #ruby
tunaCanBruh has quit [Ping timeout: 256 seconds]
marr has joined #ruby
mxrguspxrt has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
Rollabunna has joined #ruby
psy_ has quit [Ping timeout: 255 seconds]
Zarthus has joined #ruby
Lemur has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
Guest90 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
CustosL1men has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 252 seconds]
freds25th has joined #ruby
charliesome has joined #ruby
shredding has joined #ruby
freds25th has quit [Ping timeout: 256 seconds]
govg has joined #ruby
psy_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
riotjones has joined #ruby
m8 has joined #ruby
jimms has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mxrguspxrt has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 246 seconds]
SumoBoy has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
User458764 has joined #ruby
MasterPiece has joined #ruby
codecop has joined #ruby
Joufflu_ has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
zachrab has joined #ruby
Takle has joined #ruby
Spami has joined #ruby
ptrrr has quit [Quit: ptrrr]
shredding has quit [Quit: shredding]
jonr22 has quit [Ping timeout: 245 seconds]
zachrab has quit [Ping timeout: 244 seconds]
beef-wellington has joined #ruby
keen__________61 has joined #ruby
Deithrian has joined #ruby
jlast has joined #ruby
josephcs has quit [Ping timeout: 265 seconds]
keen__________60 has quit [Ping timeout: 265 seconds]
agrinb has joined #ruby
beef-wellington has quit [Ping timeout: 245 seconds]
ptrrr has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
agrinb has quit [Ping timeout: 245 seconds]
duper has quit [Remote host closed the connection]
jlast has joined #ruby
duper has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
mattwildig has joined #ruby
fabrice31 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gigetoo has joined #ruby
ptrrr has quit [Quit: ptrrr]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
kalusn has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
maximski has joined #ruby
j0n3 has joined #ruby
posixpascal has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
gigetoo_ has joined #ruby
kalusn has quit []
gigetoo has quit [Quit: Lost terminal]
gigetoo_ is now known as gigetoo
hamakn has joined #ruby
it0a has quit [Ping timeout: 264 seconds]
randiman has joined #ruby
gigetoo has quit [Quit: leaving]
forest_ has joined #ruby
gigetoo has joined #ruby
<Deithrian> Hi guys, I decided to take a look at ruby conf 2014 in an attempt to learn more about the community, but I still can't figure out what was the point of that "golang" presentation which essentially said how terrible ruby is and how awesome go is?
<shevy> ack
<shevy> daed has a dark php past :(
bonhoeffer has joined #ruby
<shevy> Deithrian who was the presenting person?
<apeiros> maybe "get your shit together and make ruby more awesome than go"?
DaniG2k has joined #ruby
<shevy> now that sounds great!
sudog has quit [Ping timeout: 245 seconds]
<Deithrian> shevy, mark bates?
<wasamasa> Deithrian: don't worry, go is no good either
josephcs has joined #ruby
<apeiros> well, he asked about the point of the talk, we don't have to agree with the talk to try and figure what the person intended with it :)
<apeiros> *they
<Deithrian> wasamasa, it's just a bit confusing for a beginner like myself because it brings the question "am I learning the wrong thing" :)
<wasamasa> Deithrian: actually, the language doesn't matter that much
<Deithrian> But in that talk there was literally nothing about Ruby
<Deithrian> it was all Go and some ruby bashing
<wasamasa> Deithrian: so I'd not worry about that talk at all and take it as a rant
olivier_bK has joined #ruby
User458764 has joined #ruby
jerry_tao has joined #ruby
<Deithrian> wasamasa, okidoke
<wasamasa> anyone with sufficient experience with a language can tell you all day long about its bad parts
<apeiros> part of a good community is speaking about the things which are could be done better
<apeiros> there's no point in pretending everything was as good as it can possibly be. it isn't that way anywhere.
zemlya has quit [Ping timeout: 246 seconds]
sudog has joined #ruby
<daed> shevy: :(
<daed> shevy: that was many many MANY years ago
freds25th has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
<Deithrian> I strongly believe in talking about problems instead of pretending they're not there, so they can be fixed, but his talk was in no way intended imo to fix problems in Ruby, it was plane Go praising and Ruby bashing which I found strange :)
<daed> what specifically did they praise and bash?
<daed> i write both so i'm curious
<apeiros> Deithrian: then it's a bit oddly placed at a ruby conf :)
<Deithrian> I can remember Multi threading, and concurrency.
bMalum has quit [Read error: Connection reset by peer]
bMalum has joined #ruby
<Deithrian> He said Ruby runs in a single thread and doesn't take advantage of all CPUs
<Deithrian> He bashed the WEBrick server
<daed> jruby does
<apeiros> that's correct for MRI
<daed> everybody bashes webrick
<apeiros> well, partially
<daed> that's why nobody uses it in production afaik
<Deithrian> his main point was that Google deals with 40% of the traffic so their stuff Must be better than Ruby
<apeiros> it doesn't run in a single thread. but it doesn't run more than one native thread at once (GIL)
c_nick has joined #ruby
<daed> Deithrian: that's kind of an odd argument
<apeiros> ahahaa, that's a silly argument :)
<daed> facebook does a shit ton of traffic and it uses php
<daed> what does that tell you
zemlya has joined #ruby
monod has joined #ruby
<apeiros> it *may* even be correct, that go is better for google. but it omits the question which quality makes it better. there are tons of things which can make it better for google which don't apply at all to anybody outside.
<wasamasa> Deithrian: well, I doubt it was for that reason that google decided to engineer their own language
<wasamasa> Deithrian: in fact, I hold shorter compile times and less complexity for teams (compared to C++) to be the main factors
<apeiros> ease of distribution
<c_nick> My Application spawns multiple threads using Ruby ActiveSupport/Pool, Problem is the application is not able to kill a thread after the work is done. This is observed after another application has been launched along with it
<wasamasa> feature-wise it's pretty much like java
<apeiros> full control over the development of the language
<c_nick> How can i enable fall safe in my application
<wasamasa> which google is already using
Crisix has joined #ruby
<c_nick> it does taskkill does that has no effect
mattwildig has quit []
<c_nick> as the process is no longer existing but on Incredibuild its still seen going on and on
<wasamasa> Deithrian: if I had to take a guess why that guy did such a talk, it was because he feels ruby no longer being the hot thing, unlike go
hamakn has quit [Remote host closed the connection]
<Deithrian> wasamasa, but there's nothing about Go out there, at least nothing I can compare to the amazing tutorials about ruby and for RoR, and thats super important for beginners like myself.
caveat- has joined #ruby
hamakn has joined #ruby
<daed> i don't know, i've written both a lot, but i can write a LOT less ruby to achieve the same result
<daed> with high performance in 95% of cases
<daed> i may swap out this particular use case with go but yeah
<Deithrian> Why would he advertise a language that's supposedly better than ruby and can handle "40% of the internets" when most people will never ever ever develop websites that need such processing power?
iwishiwerearobot has joined #ruby
<daed> how much of google is internally handled by go
<daed> it's a new language
<daed> most of google existed before go
<daed> so that's kind of a lame argument to start
caveat- has quit [Read error: Connection reset by peer]
<Deithrian> I guess I'm making a big deal out of it, back to learning :) thanks for your opinions!
freds25th has quit []
<wasamasa> Deithrian: people get excited about the weirdest things
<wasamasa> Deithrian: sometimes even without evaluating them
iwishiwerearobot has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
forest_ has quit [Remote host closed the connection]
User458764 has joined #ruby
<Deithrian> I guess so
jlast has joined #ruby
tunaCanBruh has quit [Ping timeout: 252 seconds]
randiman has quit [Quit: (null)]
iamninja has joined #ruby
<daed> Deithrian: what all do you write/prefer?
mikepack has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
leafybasil has joined #ruby
<Deithrian> dead, I'm sorry, what do you mean?
<daed> ah sorry, which languages/frameworks
jlast has joined #ruby
SumoBoy has joined #ruby
Deele has joined #ruby
<centrx> Google high-performance is mostly in C++ and Java
<Deithrian> dead, I'm learning programming, absolute beginner. Tried to learn C++, Java, which failed, then Python which made some sense, and for the past week Ruby which I think is great! My benchmark is that I can almost 100% understand the code displayed at ruby conf, which with other languages is impossible to tell what's going on.
mikepack has quit [Ping timeout: 255 seconds]
hamakn has quit [Remote host closed the connection]
oleo has joined #ruby
<Deithrian> Ruby code just makes more sense for some reason. Strange, because I thought that all languages do the same thing with different syntax :)
jlast has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
ptrrr has joined #ruby
rap has joined #ruby
<Deithrian> But when I look at Go code, I have to squint my eyes and try to read it, while with Ruby it's just easier. Can't really tell why.
jud has joined #ruby
tens0r has joined #ruby
oleo__ has quit [Ping timeout: 245 seconds]
fantazo has quit [Quit: Verlassend]
fgo has joined #ruby
<centrx> Deithrian, Ruby is designed for programmer happiness
<centrx> Deithrian, Ruby is a much more expressive language than some other languages
Terens has quit [Ping timeout: 264 seconds]
monod has quit [Ping timeout: 245 seconds]
<centrx> Deithrian, Go is a more C-like language. You will be able to see the same concepts in different languages as you learn more
DaniG2k has joined #ruby
jerry_tao has left #ruby [#ruby]
jerry_tao has joined #ruby
wyan has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
mxrguspxrt has quit [Remote host closed the connection]
<Deithrian> centrx, maybe it's also the Ruby community as well, because after that Ruby tutorial on youtube I finally understood how to work with Classes and how data is being handled without using global vars. I mean the guy really answered the logical blocks I had in my mind that prevented me to understand how data works in a program.
wyan has left #ruby [#ruby]
SumoBoy has quit [Quit: Leaving]
<Deithrian> centrx, and that's not just in one tutorial, all Ruby tutorials I watched made terrible sense, as opposed to Java and C tutorials which did explain what a function is and what a variable is, but they felt more like "this is a car and this is a tire", not like "this is a car and here's how it works" like in ruby tutorials
* wasamasa shakes fist at ripper
neoxquick has quit [Ping timeout: 256 seconds]
<centrx> Deithrian, Java causes brain damage
mxrguspxrt has joined #ruby
nfk has quit [Quit: yawn]
<Deithrian> centrx, lol
<wasamasa> bisecting to this snippet was exhausting
timonv has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
tens0r has quit [Quit: tens0r]
CustosL1men has quit [Remote host closed the connection]
mroach has quit [Quit: mroach]
AlexRussia has quit [Quit: WeeChat 1.2-dev]
AlexRussia has joined #ruby
chinmay_dd has joined #ruby
Morkel has joined #ruby
msgodf has joined #ruby
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
zachrab has joined #ruby
jonr22 has joined #ruby
DaniG2k has quit [Quit: leaving]
jonr22 has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
beef-wellington has joined #ruby
Abhijit has joined #ruby
Abhijit has quit [Changing host]
Abhijit has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
n008f4g_ has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
ZoanthusR has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
ZoanthusR has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 245 seconds]
kirun has joined #ruby
startupality has quit [Client Quit]
tens0r has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlast has joined #ruby
zorak8 has joined #ruby
Soda has joined #ruby
SumoBoy has joined #ruby
startupality has joined #ruby
blizzy has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Client Quit]
jlast has quit [Ping timeout: 245 seconds]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tens0r has quit [Quit: tens0r]
jlast has joined #ruby
tens0r has joined #ruby
goodenough has quit [Remote host closed the connection]
jenrzzz has joined #ruby
DadoCe has joined #ruby
shum has joined #ruby
[gmi] has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
timonv has quit [Quit: WeeChat 1.1.1]
fgo has joined #ruby
tens0r has quit [Quit: tens0r]
bMalum_ has joined #ruby
CustosL1men has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
fgo has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 264 seconds]
bMalum_ is now known as bMalum
scripore has quit [Quit: Leaving]
bonhoeffer has quit [Quit: bonhoeffer]
bonhoeffer has joined #ruby
Musashi007 has joined #ruby
DouweM has joined #ruby
jonr22 has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
CustosLimen has quit [Ping timeout: 246 seconds]
mxrguspxrt has joined #ruby
CustosLimen has joined #ruby
siso has quit [Quit: siso]
jimms has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
nateberkopec has joined #ruby
DouweM has quit [Quit: Leaving...]
iwishiwerearobot has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
ARCADIVS has quit [Quit: ARCADIVS]
jonr22 has quit [Ping timeout: 265 seconds]
vire has joined #ruby
iamninja has quit [Quit: Page closed]
tunaCanBruh has joined #ruby
iwishiwerearobot has quit [Ping timeout: 265 seconds]
jimms has joined #ruby
OrbitalKitten has joined #ruby
Abhijit has left #ruby ["Leaving"]
Stoge88 has joined #ruby
mxrguspx_ has joined #ruby
beef-wellington has joined #ruby
mxrguspxrt has quit [Ping timeout: 244 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
phale has joined #ruby
e^0 has joined #ruby
<phale> hello I need to learn ruby quickly
e^0 is now known as Guest62239
<centrx> Yes
Guest62239 has quit [Client Quit]
Musashi007 has quit [Quit: Musashi007]
beef-wellington has quit [Ping timeout: 264 seconds]
razieliyo has joined #ruby
Morkel has quit [Quit: Morkel]
e^0_ has joined #ruby
phale has left #ruby [#ruby]
Akagi201 has joined #ruby
sameerynho has joined #ruby
lys has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Takle has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zorak8 has quit [Ping timeout: 240 seconds]
zorak8 has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
<wasamasa> lol
<wasamasa> that was quick
Zai00 has quit [Quit: Zai00]
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> What is with these people
<wasamasa> no patience
jlast has joined #ruby
<wasamasa> they want to learn to program in 21 days
bonhoeffer has quit [Quit: bonhoeffer]
<apeiros> why take so much time?
<apeiros> 7 languages in 7 days
User458764 has joined #ruby
MasterPiece has quit [Quit: Leaving]
<wasamasa> I've sent the same thing to that guy in a /query
bonhoeffer has joined #ruby
jenrzzz has joined #ruby
<apeiros> I wish I had more time.
<wasamasa> learning how to impress people takes less time though
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
fantazo has joined #ruby
e^0_ has quit [Quit: WeeChat 0.4.3]
c_nick has quit [Ping timeout: 255 seconds]
shaquile has quit [Ping timeout: 245 seconds]
shaquile has joined #ruby
mxrguspx_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
jlast has quit [Ping timeout: 245 seconds]
Bacta has joined #ruby
<Bacta> Wow. The more I read up on this language the more it reminds me of Perl
<Bacta> So much syntax
beef-wellington has joined #ruby
<centrx> It's powerfully expressive like Perl, but not as complicated and much more orderly
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
josephcs has quit [Quit: (null)]
mxrguspxrt has joined #ruby
bluOxigen has joined #ruby
pika_pika has joined #ruby
claw has quit [Ping timeout: 246 seconds]
Spami has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
<jhass> Surprisingly few things are syntax actually
mxrguspxrt has quit []
hiyosi has joined #ruby
qba73_ has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
pagios has left #ruby ["Leaving"]
shum1 has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
qba73 has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
zachrab has joined #ruby
bonhoeffer has joined #ruby
leafybasil has quit [Remote host closed the connection]
bonhoeffer has quit [Client Quit]
jonr22 has quit [Ping timeout: 255 seconds]
zachrab has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
alex88 has joined #ruby
agrinb has joined #ruby
bonhoeffer has joined #ruby
<jerry_tao> LOL , 1 language in 21h.
charliesome has quit [Quit: zzz]
agrinb has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
yeticry has quit [Read error: Connection reset by peer]
bonhoeffer has quit [Quit: bonhoeffer]
tunaCanBruh has joined #ruby
vire has quit [Ping timeout: 244 seconds]
pontiki has joined #ruby
zyxelthrone has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has quit [Remote host closed the connection]
yeticry has joined #ruby
tunaCanBruh has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Quit: Connection closed for inactivity]
OrbitalKitten has joined #ruby
sameerynho has quit [Quit: Leaving]
<shevy> Bacta ruby and perl are quite complex, this derives a lot out of "there is more than one way to do things" philosophy
<shevy> Bacta this flexibility also means that you have a lot more freedom to decide on your own what you want to do. In python, you must use (). In ruby, you normally do not have to, if you don't want to. You can use things such as alias-es freely, you can have DSL-like instructions, things such as method_missing to ad-hoc define behaviour, modify things freely at run-time (I'd wish refinements would have been ther
<shevy> e from the get go though)
Takle has joined #ruby
fabrice31 has joined #ruby
ismaelga has joined #ruby
blizzy has quit [Ping timeout: 245 seconds]
blizzy has joined #ruby
freerobby has joined #ruby
User458764 has joined #ruby
alex88 has joined #ruby
jlast has joined #ruby
lioninawhat has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
bonhoeffer has joined #ruby
rbennacer has joined #ruby
Morkel has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
mkaesz has joined #ruby
bonhoeffer has quit [Client Quit]
mkaesz has quit [Client Quit]
jlast has quit [Ping timeout: 245 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jlast has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
rbennacer has quit [Ping timeout: 264 seconds]
seal has joined #ruby
seal has quit [Remote host closed the connection]
decoponio has joined #ruby
Akagi201 has quit []
jlast has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
bMalum has quit [Quit: bMalum]
cazrin has joined #ruby
bMalum has joined #ruby
lioninawhat has quit [Remote host closed the connection]
maximski has quit []
pierre1_ has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
amacou has quit [Remote host closed the connection]
danman has joined #ruby
iamjarvo has joined #ruby
bonhoeffer has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
nuke has joined #ruby
nuke is now known as Guest97043
<Guest97043> hello
<Guest97043> !list
Zai00 has joined #ruby
<centrx> wtf
Guest97043 has left #ruby [#ruby]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bacta has quit [Quit: Leaving]
lolmaus has quit [Remote host closed the connection]
<wasamasa> lol
fgo has joined #ruby
dblessing has joined #ruby
iwishiwerearobot has joined #ruby
lolmaus has joined #ruby
fgo has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
pierre1_ has quit [Ping timeout: 264 seconds]
iwishiwerearobot has quit [Ping timeout: 246 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
centrx has quit [Quit: Shutting down, Please wait...]
Megtastique has joined #ruby
jerry_tao has left #ruby [#ruby]
it0a has joined #ruby
jenrzzz has joined #ruby
sevenseacat has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
Akagi201 has joined #ruby
leafybasil has joined #ruby
monod has joined #ruby
Apocalypse has quit [Remote host closed the connection]
davidhq has joined #ruby
User458764 has joined #ruby
amacou has joined #ruby
davidhq has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
maximski has joined #ruby
DadoCe has quit []
timonv has joined #ruby
alex88 has quit []
bMalum has quit [Quit: bMalum]
karmatr0n has joined #ruby
jlast has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
Takle has joined #ruby
bMalum has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
jblancett has quit []
jblancett has joined #ruby
monod has quit [Ping timeout: 265 seconds]
jlast has quit [Ping timeout: 245 seconds]
aapole has joined #ruby
jblancett has quit [Quit: leaving]
phale has joined #ruby
coinrookie has joined #ruby
hamakn has joined #ruby
Jackneill has joined #ruby
P1RATEZ has joined #ruby
keen__________62 has joined #ruby
zachrab has joined #ruby
max96at|off is now known as max96at
hamakn has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
keen__________61 has quit [Ping timeout: 264 seconds]
phale has left #ruby [#ruby]
hamakn has joined #ruby
jottr has joined #ruby
jonr22 has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
ptrrr has quit [Quit: ptrrr]
nobitanobi has quit [Remote host closed the connection]
shum has quit [Quit: WeeChat 1.1.1]
shum has joined #ruby
mary5030 has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
agrinb has joined #ruby
DonOtreply has joined #ruby
skj3gg has joined #ruby
mary5030 has quit [Remote host closed the connection]
jblancett has joined #ruby
jblancett has quit [Client Quit]
codecop has quit [Remote host closed the connection]
jblancett has joined #ruby
maximski has quit []
Jackneill has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
jblancett has quit [Client Quit]
freerobby has joined #ruby
jottr has quit [Ping timeout: 252 seconds]
User458764 has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
User458764 has joined #ruby
jottr has joined #ruby
havenwood has joined #ruby
tunaCanBruh has quit [Ping timeout: 245 seconds]
vt102 has quit [Remote host closed the connection]
rap has quit [Remote host closed the connection]
iamjarvo has joined #ruby
agrinb has joined #ruby
roshanavand1 has quit [Ping timeout: 245 seconds]
hesco has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
jblancett has joined #ruby
fabrice31 has joined #ruby
jblancett has joined #ruby
jblancett has quit [Client Quit]
bonhoeffer_ has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
it0a has joined #ruby
jblancett has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
shredding has joined #ruby
<arup_r> Having difficulty to get the relative path using pathname lib. Suppose i have a file ""/home/arup/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby"" .. Now I want to create a relative path..But getting error https://gist.github.com/aruprakshit/a623fd150c76441637d5
fabrice31 has quit [Ping timeout: 250 seconds]
amacou has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
athan has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DouweM has joined #ruby
OrbitalKitten has joined #ruby
<arup_r> Any body clicked on my gist? :p
OrbitalKitten has quit [Client Quit]
kobain has joined #ruby
Adran has quit [Quit: Este é o fim.]
hesco has joined #ruby
DouweM has quit [Client Quit]
<jhass> turn the relative path in p1 to an absolute one first
ych4k3r has joined #ruby
Takle has joined #ruby
jlast has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
lessless has joined #ruby
ghormoon has joined #ruby
<arup_r> ok
jlast has quit [Ping timeout: 245 seconds]
Adran has joined #ruby
PanzerModern has quit [Remote host closed the connection]
<arup_r> How then I get now "/home/arup/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby" ?
<arup_r> jhass:
jlast has joined #ruby
baroquebobcat has joined #ruby
ptrrr has joined #ruby
<arup_r> I tried p1.expand_path(p1.relative_path_from(p2)).to_s
<arup_r> but it is giving "/ruby/site_ruby"
higherpass has joined #ruby
baroquebobcat has quit [Client Quit]
jlast has quit [Ping timeout: 245 seconds]
mgorbach has quit [Quit: ZNC - http://znc.in]
qba73_ has quit []
Crisix has quit [Read error: Connection reset by peer]
cazrin has quit []
mgorbach has joined #ruby
DadoCe has joined #ruby
<jhass> arup_r: how should it figure out what your initial path is relative to in order to expand it correctly?
<jhass> you need to provide that info
slawrence00 has joined #ruby
higherpass has quit [Quit: leaving]
ghormoon has quit [Quit: ZNC - http://znc.in]
<jhass> yes
<jhass> but from what do you think should ruby guess what "ruby/site_ruby" is relative to?
mitchellhenke has joined #ruby
bMalum has quit [Quit: bMalum]
<arup_r> Ok.. I know... I'm wrong.. Then what should be the correct code?
<jhass> I can't grab that information out of thin air either
<jhass> you need to provide it
msgodf has quit [Ping timeout: 245 seconds]
<WhereIsMySpoon> Why is this not working? It's not printing anything where it should, so I assume there's some syntax error but Im not getting anything from the log
<WhereIsMySpoon> er, http://pastie.org/9947339
iwishiwerearobot has joined #ruby
<arup_r> jhass: Sorry not getting you.. :-(
<jhass> WhereIsMySpoon: I assume Rails, so #RubyOnRails for the future maybe. Anyway, the way to output something with ERB is to use the <%= tag
shredding has quit [Quit: shredding]
<jhass> <% ignores the expressions value
<WhereIsMySpoon> oh...duhhhhh
<WhereIsMySpoon> excuse my stupidness
<jhass> WhereIsMySpoon: you're welcome ;)
<WhereIsMySpoon> thanks
yellowgh0st has joined #ruby
jottr has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
<jhass> arup_r: do you even know what you want to do?
<arup_r> WhereIsMySpoon: on your table... search it carefully... :)
<arup_r> jhass: yes
mitchellhenke has quit [Client Quit]
<jhass> describe it
haylon has joined #ruby
iwishiwerearobot has quit [Ping timeout: 252 seconds]
tmtwd_ has quit [Remote host closed the connection]
commmmodo has joined #ruby
mgorbach has quit [Quit: ZNC - http://znc.in]
karmatr0n has quit [Remote host closed the connection]
<arup_r> I will supply the a absolute path to a file name... I would like to see if the path to file exist inside the $LOAD_PATH
<arup_r> jhass: ^^
mgorbach has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ptrrr has quit [Quit: ptrrr]
lys has quit [Quit: lys]
spider-mario has joined #ruby
karmatr0n has joined #ruby
<jhass> what for? why?
JBreit has joined #ruby
<arup_r> :-)
<arup_r> What I said is it possible ?
<arup_r> I know possible... but I'm not able to figure this.. :(
JaTochNietDan has quit [Ping timeout: 272 seconds]
<jhass> tbh. I don't quite follow what you want yet
<arup_r> Do you want me to repeat ?
<jhass> if I follow that last description correctly I fail to see much relation to your code
felixjet_ has quit [Read error: Connection reset by peer]
<jhass> no, if my suspicion on what you're doing is correct, there's a better way
<jhass> but you yet have to describe what your actual goal is
felixjet_ has joined #ruby
<jhass> so I'm still left in the guesswork
willharrison has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
JaTochNietDan has joined #ruby
<arup_r> I will supply the a absolute path to a file name... I would like to see if the path to file exist inside the $LOAD_PATH.. If exist, then OK. Otherwise I want to add the path to the $LOAD_PATH dynamically.
BTRE has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
BTRE has joined #ruby
<atmosx> arup_r: you like to do that in ruby?
<jhass> you're still describing your wanted solution, not your goal
SumoBoy has quit [Ping timeout: 240 seconds]
<atmosx> jhass: isn't his goal to load a file?
terlar has quit [Ping timeout: 245 seconds]
<jhass> that's your guess
<arup_r> atmosx: ^^
<arup_r> sorry
<arup_r> jhass: atmosx is right
<jhass> my guess so far is loading some data that's shipped with his gem
<atmosx> jhass: I'm a phychic, I can read in Indian people's mind! :-P
<jhass> arup_r: require takes an absolute path just fine then, no need to make it relative
bonhoeffer_ has quit [Ping timeout: 246 seconds]
<arup_r> atmosx: humm.. Aww! you got my probloem..
<jhass> though that scenario still seems a bit weird
JBreit has left #ruby ["Leaving"]
mary5030 has joined #ruby
<atmosx> arup_r: that seems to easy to do compared to the things you normally ask on the mailing related to object handling, reflections, etc. That I'm not sure we're on the same page.
yellowgh0st has quit [Quit: yellowgh0st]
sevvie has joined #ruby
yellowgh0st has joined #ruby
<atmosx> jhass: you use syntastic?
<atmosx> jhass: oh sorry, I made the assumption you use vim
<jhass> I don't even know what syntastic is :P
<jhass> I use vim for adhoc editing only, sublime else
<atmosx> jhass: a plugin for the vim editor for code-linting. Shows errors (usually) on the fly but I need to make it ignore 2 lines on the current file which shows as errors, it's distracting.
Kricir has joined #ruby
mitchellhenke has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: Leaving]
<jhass> I guess you would need to teach the linter to ignore them
hamakn_ has joined #ruby
<atmosx> jhass: yes, problem in the helpfile I can't see a related functionality.
bMalum has joined #ruby
<jhass> arup_r: where does that absolute path even come from? why isn't it static?
<arup_r> atmosx: "same page" means ?
<arup_r> :)
<atmosx> arup_r: I think that I don't understand what you are trying to do.
DouweM has joined #ruby
<atmosx> arup_r: "we're not on the same page" it's a phrasal verb for saying "I am not sure we understand each other". As Socrates used to say, people talk to each other often but rarely communicate.
<jhass> atmosx: try prefixing port with _ so it becomes _port
<arup_r> as you said to add it the the load path so that I can require it... :)
mitchellhenke has quit [Client Quit]
<atmosx> jhass: worked, nice converntion. _port is a variable that I'm not going to user later on?
<jhass> atmosx: yup
DouweM has quit [Client Quit]
<jhass> at least to ruby -wc it is
<jhass> and I guess that's what used under the hood
hamakn has quit [Ping timeout: 250 seconds]
<atmosx> yes worked fine thank you. Now line 132 hm
higherpass has joined #ruby
<atmosx> "unused variable from"
<arup_r> jhass: I will put all my files inside the `lib`.. and I'll add it to the load path statically... thanks... no need dynamic way..
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> arup_r: sorry, but sounds very wrong
zacstewart has joined #ruby
<jhass> you don't add files to the load path
<jhass> in the case of a gem, your gems lib folder is automatically added to the loadpath
jgt has joined #ruby
<jhass> you just list out your requires relative to it
<arup_r> atmosx: you meant mailing means Ruby talk ? :)
<atmosx> arup_r: yes
<atmosx> arup_r: are you trying to do something like this? https://github.com/atmosx/metro/blob/master/routes/init.rb
melmouss has joined #ruby
* jhass doesn't like that pattern
<arup_r> jhass: ok
Zarthus has quit [Ping timeout: 265 seconds]
<jhass> arup_r: it helps to look at a few (small) gems to learn about such stuff
<atmosx> jhass: just a fast way to load a shit-load of files actually that act as routes :-P
<arup_r> jhass: Rspec people add lib/ to the LOAD_PATH statically.. I learned it from them
<jhass> arup_r: link?
<arup_r> wait
<arup_r> Need to find
Zarthus has joined #ruby
<atmosx> I used this way https://github.com/atmosx/argosnap/blob/master/bin/argosnap ... I wonder if it's wrong or right I saw this elsewhere (but can't recall where).
<atmosx> this *approach*
<atmosx> bbl
aapole has quit [Ping timeout: 245 seconds]
<jhass> atmosx: it's largely opinion, but I argue that the correct way is to utilize load path since rubygems does that for you automatically once the gem is installed
paradoja has joined #ruby
<jhass> in development you just do ruby -Ilib bin/foo
<jhass> or if you use bundler in your gem bundle exec bin/foo
<arup_r> He is from Rspec core team
bonhoeffer has joined #ruby
iMe has joined #ruby
lioninawhat has joined #ruby
<jhass> arup_r: yes that seems correct, however I fail to see how you arrived at having some absolute path and trying to munch that into a relative path from that
<arup_r> jhass: I even don't know :-(
<jhass> so what are you even doing? you still didn't describe your goal
apeiros__ has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
<jhass> what's the underlying problem that you try to solve?
jlast has joined #ruby
<jhass> is there a repo or something that produces the problem?
fantazo has quit [Quit: Verlassend]
<jhass> atmosx: oh, btw regarding the second warning you get there, did you mean to use a keyword argument? that's from: ip then. from=ip just assigns a local and passes the result of that expression as the first argument to the method
tunaCanBruh has joined #ruby
<jhass> the result of an assignment is always the right hand side
<arup_r> i m writing some parsing scripts.. for my friend... xml parser... he has some business.. so each time new need will come.. i will write it and ask him to put thodse inside lib/..
<arup_r> and the rest is will run ok.
Kricir has quit [Remote host closed the connection]
<arup_r> that's it :)
jlast has quit [Ping timeout: 245 seconds]
<jhass> I'd write it as a gem and just build a new version and send him the .gem file to install
OrbitalKitten has joined #ruby
dfinninger has joined #ruby
<jhass> however as I said initially require takes absolute files just fine and atmosx even showed you some real world code proving that
<jhass> *absolute paths
jlast has joined #ruby
zachrab has joined #ruby
<jhass> there's no need to make the paths Dir[] or whatever you use to enumerate the plugins gives you relative
awerush has joined #ruby
hamakn_ has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 252 seconds]
davidhq has joined #ruby
<awerush> Greetings. What is the status on Timeout#timeout and all the net/* libraries? I've read several (probably outdated) blog posts about the usage of Timeout#timeout in e.g. Net::HTTP making things not Thread safe. Is that (still) true?
<arup_r> ok
jonr22 has joined #ruby
sent1nel has joined #ruby
aapole has joined #ruby
<jhass> awerush: since headius here wrote the probably most popular article about that, we shall wait for his comment on that ;)
jlast has quit [Ping timeout: 256 seconds]
zachrab has quit [Ping timeout: 245 seconds]
<jhass> but afaik there simply is not thread safe way to kill a thread from the outside, it's not a technical limitation but a conceptual one
mitchellhenke has joined #ruby
Lemur has joined #ruby
<jhass> thus an idea like Timeout#timeout is inherently thread unsafe
<awerush> jhass: yeah, his post is one of them. :-)
zacstewart has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 245 seconds]
yellowgh0st has quit [Quit: yellowgh0st]
<awerush> jhass: if what the posts say about Thread#kill and/or Timeout#timeout is true, then I wonder why this stuff hasn't been modified/fixed. I believe headius' post is about 7 years old.
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 240 seconds]
Zarthus has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
<arup_r> people here too much Rubyish.. :)
<arup_r> shevy: _/\_
Zarthus has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
skj3gg has quit [Quit: ZZZzzz…]
mikecmpbll has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
checkit has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
RDash has quit [Quit: This device has been compromised!]
Soda has quit [Remote host closed the connection]
shum1 has joined #ruby
RDash has joined #ruby
RDash has quit [Changing host]
RDash has joined #ruby
infinitone has joined #ruby
<pontiki> what does that mean?
Soda has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Yzguy has joined #ruby
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
checkit has quit [Quit: (null)]
fabrice31 has joined #ruby
<infinitone> anyone have a good structure for doing 1 file ruby scripts
<infinitone> since there isnt really a main fn
<arup_r> pontiki: namasakar! We Indian do to greet people
Hobogrammer has joined #ruby
<arup_r> infinitone: Didn't get you
<infinitone> right now i just do require and write all my code there... no methods/OO conventions
<infinitone> i feel like thats not right..
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> the all space in your .rb file is your place(called main) something called "top level
<infinitone> yeah but i want to break code into classes/methods, modularize it
<arup_r> then break it..
<infinitone> and that means having a main fn to know where to call my inits
checkit has joined #ruby
<arup_r> you can
rbennacer has joined #ruby
<infinitone> so where would it start executing if i put methods it
<infinitone> in*
fabrice31 has quit [Ping timeout: 250 seconds]
OrbitalKitten has joined #ruby
<jhass> infinitone: how many lines are we talking?
<jhass> and how many users?
<infinitone> its scripting/internal tools/server automation stuff
<infinitone> 100-1000
Lewix has joined #ruby
iMe has quit [Ping timeout: 250 seconds]
lioninawhat has quit [Remote host closed the connection]
<jhass> I tend to write everything as a library and have the initialization not much more than require "library"; Library::CLI.new(ARGV) or so
skj3gg has joined #ruby
<jhass> in a gem situation that code would go into bin/foo and the library part into lib
<jhass> but you could do that approach in a single file too, you just would do the Library::CLI.new(ARGV) at the end
mary5030 has joined #ruby
<jhass> I'm just not too convinced that would increase readability or reusability too much though, opposed to splitting it into smaller files
iMe has joined #ruby
<infinitone> its not a matter of readability
<infinitone> but DRY
<infinitone> i need to modularize it so i can reuse some of the code in other parts
<jhass> other parts = other scripts or still inside the single file?
<infinitone> its just wierd... in python/java, you have a main method and its clear where runtime will start
<infinitone> still in single file
maletor has joined #ruby
<infinitone> ie. rest api calls
<jhass> it starts at the very first line that's not a comment (to ruby)
<jhass> to illustrate:
<infinitone> so my question is.. if i have a method at top, does it get executed?
<jhass> >> Foo.new; class Foo; end;
<eval-in__> jhass => uninitialized constant Foo (NameError) ... (https://eval.in/285825)
<infinitone> and i have code below it
TgMts has joined #ruby
bwilson has joined #ruby
<jhass> module/class/method definitions are actually code that's just executed like runtime code
n008f4g_ has quit [Ping timeout: 264 seconds]
<infinitone> well thats the wierd thing
<jhass> they're convenience syntax around writing Foo = Class.new; Bar = Module.new; define_method(:bar) and so on
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<infinitone> in java, a method isnt executed unless its called
<jhass> neither it is in Ruby
<jhass> >> def foo; bomb_the_world; end;
<eval-in__> jhass => :foo (https://eval.in/285826)
centrx has joined #ruby
<jhass> as you can see the world is still there
<jhass> it didn't get run
<jhass> what did get run was the method definition
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass> >> class Foo; end; before = Foo.instance_methods.include?(:bar); class Foo; def bar; end; end; after = Foo.instance_methods.include?(:bar); [before, after]
<eval-in__> jhass => [false, true] (https://eval.in/285827)
<infinitone> k
fantazo has joined #ruby
<centrx> >> do You.see?(TheWorld)
<eval-in__> centrx => /tmp/execpad-b4f603117772/source-b4f603117772:2: syntax error, unexpected keyword_do_block ... (https://eval.in/285828)
<infinitone> and so
djellemah has quit [Ping timeout: 265 seconds]
athan has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
<infinitone> ok now it makes better sense
<infinitone> thanks jhass!
Number2 has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
centrx has quit [Client Quit]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
<haylon> Is anyone familiar with the zabbixapi gem? https://github.com/express42/zabbixapi I'm trying to figure out why its stuck on json 1.7, but the latest is 1.8, and my ruby environment can't figure it out.
yfeldblum has joined #ruby
jlast has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
ponga has quit [Remote host closed the connection]
skj3gg has joined #ruby
<jhass> haylon: what's the error message you're getting?
<haylon> its been a while, but it would say that json 1.8 is installed but the gem only used 1.7 and would not load it
roshanavand has joined #ruby
bonhoeffer has joined #ruby
<jhass> maybe some other gem locks it down
User458764 has joined #ruby
<jhass> using bundler and looking at the .lock would tell easily
aapole has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
jlast has quit [Ping timeout: 245 seconds]
<haylon> Ok, I see in the Gemfile.lock, which is that even supposed to be uploaded with the gem, it has json 1.6.1
zacstewart has joined #ruby
Vivex_ has quit [Read error: Connection timed out]
<jhass> the gems Gemfil.lock is irrelevant for you
<jhass> only its .gemspec counts
jlast has joined #ruby
<jhass> what's relevant for you is a Gemfile.lock on your machine/in your project
Vivex_ has joined #ruby
startupality has joined #ruby
zachrab has joined #ruby
User458764 has quit [Client Quit]
<jhass> and yes it's supposed to, not comitting the Gemfile.lock to your repo pretty much defeats bundlers purpose
iwishiwerearobot has joined #ruby
checkit has quit [Quit: (null)]
<haylon> hmmm, ok, I'll play around with it some more and come back. Thanks for the tips jhass
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yellowgh0st has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
zachrab has quit [Ping timeout: 246 seconds]
davejacobs has joined #ruby
iwishiwerearobot has quit [Ping timeout: 256 seconds]
devdazed has joined #ruby
DogHackit has joined #ruby
nobitanobi has joined #ruby
<DogHackit> If I have an array of arrays and I need the some of a certain index of all of the arrays how would I get that?
Kricir has joined #ruby
<DogHackit> *the sum
bonhoeffer has quit [Quit: bonhoeffer]
robbyoconnor has joined #ruby
<jhass> .inject(0) {|sum, nice_name_not_array| sum+nice_name_not_array[certain_index] }
davejacobs has quit [Ping timeout: 245 seconds]
<DogHackit> jhass, thanks again! I will try that out!
aryaching has quit []
checkit has joined #ruby
chipotle_ has joined #ruby
bunbury has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
chipotle has quit [Ping timeout: 245 seconds]
sent1nel has quit [Read error: Connection reset by peer]
sent1nel has joined #ruby
Musashi007 has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
tus has joined #ruby
bonhoeffer has joined #ruby
iMe has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
iMe has joined #ruby
OrbitalKitten has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DogHackit> jhass, Any reason I would get an undefined method [] with that?
<jhass> yes
<jhass> you don't have an array
SumoBoy has joined #ruby
<jhass> the error tells you what you have instead
melmouss has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tunaCanBruh has joined #ruby
<DogHackit> crap, I think I made it into a string when I stored the arrays in the original method. Thanks again.
athan has joined #ruby
OrbitalKitten has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<jhass> String does define the #[] method though
<jhass> you really should read the error message fully
nobitanobi has joined #ruby
tunaCanBruh has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
last_staff has joined #ruby
<DogHackit> omework3.rb:48:in `block in best_possible_grade': undefined method `[]' for syllabus quiz : 10 --:Grade (NoMethodError)
<jhass> so you have an instance of Grade I guess
zyxelthrone has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<DogHackit> Yes
centrx has joined #ruby
<jhass> not Array
sargas has quit [Client Quit]
checkit has quit [Read error: Connection reset by peer]
terlar has joined #ruby
<DogHackit> Hmm... OK.
nobitanobi has quit [Ping timeout: 250 seconds]
<jhass> that is you have an array of Grade not an array of arrays as you claimed
<DogHackit> It is an array of Grades
robbyoconnor has joined #ruby
<DogHackit> I have about 20 of those lines in an array
deconfigured has joined #ruby
athan has quit [Read error: Connection reset by peer]
<DogHackit> OH, I see what you mean. I need the second index of Grade in the array
max96at is now known as max96at|off
<jhass> ?
<jhass> I guess you assume I had any idea what Grade is
maximski has joined #ruby
<DogHackit> Sorry, grade is an array with 3 entries, as far as I understand
<jhass> no
<jhass> it's a class
<havenwood> DogHackit: Grade is a Grade, not an Array.
<DogHackit> OK, I guess my question should have been, how do I get a piece of a class from an array?
<jhass> that doesn't make any sense, sorry
plashchynski has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<DogHackit> If grade has this, "final project : 15 --", how would I sum the 15 row for an array of Grades?
<jhass> that depends on the implementation of Grade
artmann has quit [Quit: No Ping reply in 180 seconds.]
artmann has joined #ruby
<havenwood> DogHackit: I don't know what a `Grade` is either. Where'd it come from? Did you write it? Where's the code?
<havenwood> DogHackit: `Grade` is not a thing in stdlib or core.
dfinninger has quit [Remote host closed the connection]
<DogHackit> that is how I made the Grade class.
<havenwood> DogHackit: So what methods would an instance of Grade respond to?
amacou has joined #ruby
<DogHackit> can I use @max_points in Grade instances somehow?
<havenwood> DogHackit: Do you know what `attr_accessor` does?
<DogHackit> It should allow me to read and write to attributes
<DogHackit> which probably means, yes I can grab the @max_points from Grade instances
Jackneill has joined #ruby
Channel6 has joined #ruby
Senjai has quit [Ping timeout: 245 seconds]
aapole has joined #ruby
amacou has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 265 seconds]
Troy^ has joined #ruby
jonr22 has joined #ruby
mitchellhenke has joined #ruby
jlast has joined #ruby
ponga has joined #ruby
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
Troy^ has quit [Client Quit]
jonr22 has quit [Ping timeout: 245 seconds]
deconfigured has quit [Quit: No Ping reply in 180 seconds.]
checkit has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 255 seconds]
chinmay_dd has joined #ruby
jlast has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
davidhq has joined #ruby
ych4k3r has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has joined #ruby
davidhq has quit [Max SendQ exceeded]
WhereIsMySpoon has quit [Remote host closed the connection]
athan has joined #ruby
<DogHackit> I got it. "@tally.inject(0) { |sum, arr| sum + arr.max_points.to_i }"
jlast has quit [Ping timeout: 245 seconds]
Senjai has joined #ruby
<DogHackit> Thanks for the help!
fumk has quit [Quit: changing servers]
dreinull75 has joined #ruby
davidhq has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
WhereIsMySpoon has joined #ruby
Channel6 has quit [Quit: Leaving]
Azure has joined #ruby
starless has joined #ruby
davidhq has quit [Max SendQ exceeded]
werelivinginthef has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
randiman has joined #ruby
snowpeas has quit [Ping timeout: 244 seconds]
Dai-chan is now known as Daiyousei
Dopagod has quit [Quit: WeeChat 0.4.2]
Daiyousei is now known as Dai-chan
<starless> how come STDIN.getch returns "\e" for the up key in IRB but ends up being two characters ("[" and "A") in my program?
scottstamp has quit [Quit: ZNC - http://znc.in]
<centrx> starless, According to this, \e is actually "escape (0x1b)" - http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals
sankaber has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
<jhass> starless: the up key produces the sequence \e[A
plashchynski has quit [Quit: plashchynski]
<starless> jhass: yeahhh, I just realize
<starless> centrx, jhass: thanks!
robert_ has joined #ruby
<starless> realized*
fabrice31 has joined #ruby
<robert_> so I'm running a padrino app that's doing a bunch of periodic medium-sized memory allocations and am occasionally running out of memory.. is there a way I can persuade the GC to occasionally release these allocations?
Senjai has quit [Ping timeout: 246 seconds]
DadoCe has quit [Remote host closed the connection]
paulfm has joined #ruby
P1RATEZ has quit []
bonhoeffer has quit [Quit: bonhoeffer]
<jhass> what's your ruby version?
Kricir has joined #ruby
cats has quit [Quit: ZNC - http://znc.in]
<robert_> ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-freebsd10.0]
fabrice31 has quit [Ping timeout: 246 seconds]
<jhass> try porting to 2.2, I have the feeling it's more willing to release allocated memory, though I didn't verify
athan has quit [Ping timeout: 246 seconds]
<jhass> still sounds like you don't drop all references somewhere, so the GC has no chance to actually free those objects
ellisTAA has joined #ruby
<ellisTAA> i’m trying to understanding the string count method. can someone explain how “baa”.count “ab” returns 3?
<jhass> might also be that you convert user input into symbols or something like that
<jhass> ellisTAA: did you read its docs?
<ellisTAA> jhass: yes
<ellisTAA> jhass: didn’t say
<jhass> the argument defines a set of characters to count
<jhass> not a sequence
<robert_> well, I have two classes; one is the padrino web controller, and the other is a class dedicated to doing the grunt work of generating the data that gets returned to the client.
v0n has joined #ruby
Yzguy has quit [Quit: I'm sleeping, go away.]
<jhass> ellisTAA: so "ab" to count is like the regex character group [ab]
adriancb has joined #ruby
<robert_> jhass: each allocation can range from a few hundred kb to a couple mb. I'm returning PDF's to the client.
<ellisTAA> jhass: oh!!! so if i said “cccccbbbbb”.count “cb” it would return 10 .. interestin
atomical has joined #ruby
<ellisTAA> jhass: thanks for clarifying
<jhass> ellisTAA: the docs say that though
paulfm has quit [Quit: Zzzzz...]
<ellisTAA> jhass: yes but it uses the word intersection and that’s not very clear
karmatr0n has joined #ruby
<jhass> it says that in the context of passing multiple arguments
<jhass> "ab".count "a", "b" will return 0, as the examples in the docs illustrate
tunaCanBruh has joined #ruby
infinitone has quit [Remote host closed the connection]
<ellisTAA> jhass: are we reading the same thing http://ruby-doc.org//core-2.2.0/String.html#method-i-count
<jhass> yes
swgillespie has joined #ruby
<jhass> I recently ported it to Crystal, so I know it very well atm ;)
<ellisTAA> jhass: yeah it illustrates it but i wanted an explanation. i can’t do something without knowing how it works
<jhass> Each other_str parameter defines a set of characters to count. The intersection of these sets defines the characters to count in str
<jhass> first two sentences
_2_charlotte240 has joined #ruby
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> _each_ other_str
tvw has joined #ruby
<_2_charlotte240> hi x
<_2_charlotte240> hi x
<jhass> _2_charlotte240: worked the first time
athan has joined #ruby
MasterPiece has joined #ruby
<_2_charlotte240> heyy xx were do uu guys live
checkit has quit [Quit: (null)]
Kilo`byte has quit [Read error: Connection reset by peer]
<jhass> what's up with the xx?
* jhass summons apeiros as a premeasure
<_2_charlotte240> dunno were do u guys live ?
<jhass> everywhere in the earth
<centrx> AOL
<jhass> the girls in this channel probably do too
Senjai has joined #ruby
tunaCanBruh has quit [Ping timeout: 255 seconds]
werelivinginthef has quit [Remote host closed the connection]
swgillespie has quit [Client Quit]
<jhass> centrx: you should move, it's not a pretty place :/
davedev2_ has joined #ruby
codecop has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
davedev24_ has quit [Ping timeout: 264 seconds]
<centrx> I am the only person still using AOL Instant Messenger
malcolmva has quit [Quit: Leaving]
malcolmva has joined #ruby
davidhq has joined #ruby
Kricir has quit [Remote host closed the connection]
scottstamp has joined #ruby
_2_charlotte240 has quit [Remote host closed the connection]
<jhass> no endurance :/
swgillespie has joined #ruby
<centrx> Trolls need to step up their game
mitchellhenke has quit [Quit: Computer has gone to sleep.]
yellowgh0st has quit [Quit: yellowgh0st]
vire has joined #ruby
swgillespie has quit [Client Quit]
checkit has joined #ruby
checkit has quit [Excess Flood]
checkit has joined #ruby
lid_ has joined #ruby
mitchellhenke has joined #ruby
davidhq has quit [Max SendQ exceeded]
cazrin has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Morkel has quit [Quit: Morkel]
mikeric has joined #ruby
goodenough has joined #ruby
blizzy has quit [Quit: Leaving]
Lewix has quit [Remote host closed the connection]
dfinninger has joined #ruby
adriancb has quit [Remote host closed the connection]
blizzy has joined #ruby
adriancb has joined #ruby
Senjai has quit [Ping timeout: 240 seconds]
TinkerTyper has quit [Quit: ZNC restarting...]
yfeldblu_ has joined #ruby
TinkerTyper has joined #ruby
it0a has quit [Quit: WeeChat 1.1.1]
swgillespie has joined #ruby
rbennacer has quit [Remote host closed the connection]
zachrab has joined #ruby
iwishiwerearobot has joined #ruby
dfinninger has quit [Ping timeout: 265 seconds]
Dopagod has joined #ruby
pika_pika has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
prasselpikachu has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
jlast has joined #ruby
zachrab has quit [Ping timeout: 250 seconds]
iwishiwerearobot has quit [Ping timeout: 255 seconds]
plashchynski has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
ponga has joined #ruby
mikeric has quit []
pengin has joined #ruby
chipotle_ has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Quit: ZNC - http://znc.in]
maximski has quit []
jenrzzz has quit [Ping timeout: 252 seconds]
skj3gg has joined #ruby
mikeric has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
lid_ is now known as lidaaa
mikeric has quit [Max SendQ exceeded]
jlast has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Remote host closed the connection]
MasterPiece has quit [Remote host closed the connection]
Senjai has joined #ruby
havenwood has quit []
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 245 seconds]
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
TinkerTyper has quit [Ping timeout: 265 seconds]
skj3gg has joined #ruby
n008f4g_ has joined #ruby
TinkerTyper has joined #ruby
tier has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
m8 has quit [Quit: Sto andando via]
TgMts_ has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
Channel6 has joined #ruby
TgMts has quit [Ping timeout: 252 seconds]
Senjai has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
S0da has joined #ruby
athan has quit [Ping timeout: 264 seconds]
DadoCe has joined #ruby
davejacobs has joined #ruby
scottstamp has quit [Quit: ZNC - http://znc.in]
willharrison has joined #ruby
Takle has quit [Remote host closed the connection]
davejacobs has quit [Ping timeout: 252 seconds]
DadoCe has quit [Ping timeout: 244 seconds]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lioninawhat has joined #ruby
joshbamboo1 has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
li0ninawhat has joined #ruby
scottstamp has joined #ruby
DadoCe has joined #ruby
aapole has quit [Ping timeout: 240 seconds]
WildBamboo-Josh has quit [Ping timeout: 245 seconds]
lioninawhat has quit [Ping timeout: 265 seconds]
checkit has quit [Quit: (null)]
Senjai has joined #ruby
Megtastique has quit []
Lildirt has quit [Quit: Leb wohl, meine Freunde. Ich wünsche Ihnen das beste von Tagen.]
Lildirt has joined #ruby
TgMts_ has quit [Quit: No Ping reply in 180 seconds.]
Megtastique has joined #ruby
zacstewart has quit [Remote host closed the connection]
razieliyo has quit [Ping timeout: 246 seconds]
TgMts has joined #ruby
scottstamp has quit [Quit: ZNC - http://znc.in]
skj3gg has quit [Quit: ZZZzzz…]
jonr22 has joined #ruby
scottstamp has joined #ruby
Yzguy has joined #ruby
werelivinginthef has joined #ruby
aphprentice_ has joined #ruby
TgMts has quit [Client Quit]
robbyoconnor has joined #ruby
TgMts has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
monod has joined #ruby
Senjai has quit [Ping timeout: 246 seconds]
nonnatus has joined #ruby
dfinninger has joined #ruby
tomengla_ has quit [Ping timeout: 245 seconds]
zacstewart has joined #ruby
ghormoon has joined #ruby
cazrin has quit []
werelivinginthef has quit [Ping timeout: 264 seconds]
plashchynski has quit [Quit: plashchynski]
Channel6 has quit [Quit: Leaving]
DadoCe has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 240 seconds]
DadoCe has joined #ruby
plashchynski has joined #ruby
chipotle has joined #ruby
siso has joined #ruby
jlast has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
DadoCe has quit [Ping timeout: 252 seconds]
tomengland has joined #ruby
DEA7TH has quit [Ping timeout: 244 seconds]
Lemur has quit [Remote host closed the connection]
ponga has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
ellisTAA has joined #ruby
larsam has quit [Read error: Connection reset by peer]
jlast has joined #ruby
li0ninawhat has quit [Quit: Leaving...]
Senjai has joined #ruby
lioninawhat has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
S0da has quit [Remote host closed the connection]
dfinninger has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
fumk has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
<mozzarella> how do I unescape/decode things like "&#39;"?
art-solopov has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
<zacts> what is the proper way to add a user gem bin directory to PATH?
codecop has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 255 seconds]
r0bby_ has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Senjai has quit [Ping timeout: 246 seconds]
tunaCanBruh has joined #ruby
scottstamp has quit [Quit: ZNC - http://znc.in]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
skj3gg has joined #ruby
CpuID2 has joined #ruby
zachrab has joined #ruby
timonv has quit [Ping timeout: 255 seconds]
tunaCanBruh has quit [Ping timeout: 250 seconds]
DadoCe has joined #ruby
siso has quit [Quit: siso]
last_staff has quit [Quit: last_staff]
lessless has joined #ruby
jonr22 has joined #ruby
zachrab has quit [Ping timeout: 256 seconds]
<zacts> nvmnd, I think I've got it
SumoBoy has quit [Quit: Leaving]
doritostains has quit [Quit: WeeChat 1.0.1]
rbennacer has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
Senjai has joined #ruby
Guest123 has joined #ruby
plashchynski has quit [Quit: plashchynski]
li0ninawhat has joined #ruby
r0bby_ has quit [Ping timeout: 246 seconds]
TgMts has quit [Quit: No Ping reply in 180 seconds.]
skj3gg has joined #ruby
lioninawhat has quit [Ping timeout: 245 seconds]
TgMts has joined #ruby
zyxelthrone has joined #ruby
<jhass> mozzarella: those are called html entities, google should help
iwishiwerearobot has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
Troy^ has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
terlar has quit [Ping timeout: 265 seconds]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
athan has joined #ruby
decoponio has joined #ruby
scottstamp has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 35.0/2015010900]]
r0bby_ has joined #ruby
<mozzarella> jhass: it's too late bro
<mozzarella> now:
TgMts has quit [Client Quit]
iwishiwerearobot has quit [Ping timeout: 246 seconds]
Senjai has quit [Ping timeout: 252 seconds]
<mozzarella> I'm using "%2.2f" in my printf format, but the first '2' doesn't seem to work
<mozzarella> I want to print at most 2 characters before the '.', and spaces if there's no digit
TgMts has joined #ruby
fredsir_ is now known as fredsir
timonv has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cvtsx has joined #ruby
Troy^ has joined #ruby
tvw has quit [Ping timeout: 250 seconds]
<jhass> it's an at least iirc
<jhass> not an at most
<jhass> or an exactly as many
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iMe has quit [Ping timeout: 246 seconds]
<waxjar> the exact formatting is documented Kernal#sprintf i believe
cocotton has joined #ruby
<ellisTAA> can someone explain the hash method compare_by_identity
TgMts has quit [Ping timeout: 255 seconds]
Troy^ has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
<jhass> yup
<jhass> " The width specifies the minimum number of characters that will be written to the result for this field"
<waxjar> ellisTAA: normally a hash looks at the output of #hash and #eql? to determine if an object is a valid key
iMe has joined #ruby
<waxjar> if you enable compare by identity, it actually checks if it's the same object (#equal?, same #object_id).
TgMts has joined #ruby
<ellisTAA> can u give an example, the documentation sucks
jlast has joined #ruby
<ellisTAA> how does one become ruby leet?
<wasamasa> write ruby code for ~10 years
<waxjar> >> "a".eql? "a"
<eval-in__> waxjar => true (https://eval.in/285938)
<waxjar> >> "a".equal? "a"
<eval-in__> waxjar => false (https://eval.in/285940)
<wasamasa> waxjar: ._.
TgMts has quit [Read error: Connection reset by peer]
terlar has joined #ruby
<wasamasa> waxjar: so, that's another thing ruby stole from emacs
<wasamasa> waxjar: does it have #eq, too?
Senjai has joined #ruby
<waxjar> newp
<ellisTAA> i want to be ruby leet in 1 year … possible?
<wasamasa> nope
Limix has joined #ruby
<ellisTAA> waxjar: ty ty
Dr3amc0d3r has quit [Ping timeout: 272 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ponga has joined #ruby
kyb3r_ has joined #ruby
CpuID2 has quit [Quit: This computer has gone to sleep]
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
spacemud has quit [Ping timeout: 245 seconds]
skj3gg has quit [Quit: ZZZzzz…]
TgMts has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
zrl has quit [Ping timeout: 252 seconds]
culturelabs has quit [Ping timeout: 245 seconds]
KnownSyntax has quit [Read error: Connection reset by peer]
jrunning_ has quit [Read error: Connection reset by peer]
ballPointPenguin has quit [Read error: Connection reset by peer]
ckrailo__ has quit [Ping timeout: 252 seconds]
tier has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
neektza has quit [Ping timeout: 250 seconds]
banister has joined #ruby
gmcintire has quit [Ping timeout: 265 seconds]
ramblinpeck_ has quit [Ping timeout: 245 seconds]
banister has quit [Max SendQ exceeded]
amitchellbullard has quit [Ping timeout: 245 seconds]
mroth has quit [Ping timeout: 250 seconds]
AdamMeghji_ has quit [Ping timeout: 245 seconds]
<ellisTAA> wth does it mean to flatten a hash?
spastorino has quit [Read error: Connection reset by peer]
dixie__ has joined #ruby
<jhass> >> {}.flatten
<eval-in__> jhass => [] (https://eval.in/285943)
rbennacer has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 252 seconds]
spacemud has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
<jhass> do you know what it means for an array?
aapole has joined #ruby
Senjai has quit [Ping timeout: 252 seconds]
randiman has quit [Quit: (null)]
PhilK has quit [Ping timeout: 250 seconds]
goodenough has quit [Remote host closed the connection]
Alina-malina has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
ballPointPenguin has joined #ruby
KnownSyntax has joined #ruby
jrunning_ has joined #ruby
Lewix has joined #ruby
goodenough has joined #ruby
iMe has joined #ruby
gmcintire has joined #ruby
DadoCe has quit [Remote host closed the connection]
zrl has joined #ruby
chinmay_dd has quit [Quit: Connection closed for inactivity]
Yzguy has quit [Quit: I'm sleeping, go away.]
neektza has joined #ruby
DadoCe has joined #ruby
Lewix_ has joined #ruby
amitchellbullard has joined #ruby
mroth has joined #ruby
Lewix has quit [Read error: Connection reset by peer]
ramblinpeck_ has joined #ruby
Guest123 has joined #ruby
spastorino has joined #ruby
skj3gg has joined #ruby
P1RATEZ has joined #ruby
larsam has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
lucyinthesky has joined #ruby
Apocalypse has joined #ruby
lucyinthesky has quit [Quit: Leaving]
AdamMeghji_ has joined #ruby
ringring800 has joined #ruby
cocotton has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Soda has joined #ruby
Senjai has joined #ruby
aapole has quit [Ping timeout: 255 seconds]
paradoja has quit [Remote host closed the connection]
starfox_sf has joined #ruby
spider-mario has quit [Remote host closed the connection]
rvchangue has quit [Ping timeout: 240 seconds]
ckrailo__ has joined #ruby
culturelabs has joined #ruby
<starfox_sf> Hi guys I have an array of numbers and I want to process that array into 3 arrays: Divisible by 2, Divisible by 3 and Divisible by 5. Is there any method in Array that would allow me to do this easily?
jimms has quit [Remote host closed the connection]
PhilK has joined #ruby
dukedave has joined #ruby
<mikecmpbll> starfox_sf: array.group_by{|i| [2,3,5].select{|d| i%d == 0}.max }
<Mon_Ouie> ...that doesn't sound like the most efficient way to solve FizzBuzz, but see Enumerable#group_by
<Mon_Ouie> Oh, I misread
jonr22 has joined #ruby
<mikecmpbll> >> [1,2,3,4,5,6,7,8,9].group_by{|i| [2,3,5].select{|d| i%d == 0}.max }
<eval-in__> mikecmpbll => {nil=>[1, 7], 2=>[2, 4, 8], 3=>[3, 6, 9], 5=>[5]} (https://eval.in/285970)
<starfox_sf> mikecmpll: thanks
<starfox_sf> Mon_Ouie: the problem I am trying to solve is slightly more complicated than what I stated. But group_by is what I was looking for
plashchynski has joined #ruby
* mikecmpbll shrugs
terlar has quit [Ping timeout: 244 seconds]
lid_ has joined #ruby
plashchynski has quit [Client Quit]
<waxjar> which group should numbers be in that are divisible by two or three of the divisors?
Jetchisel has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
<jhass> the select could be a find if you reverse the array you select on
<starfox_sf> waxjar: in the problem that I am trying to solve that will not happen
jonr22 has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
TheNet has joined #ruby
dixie__ has quit [Quit: getting kicked out of the library. be back shortly.]
<mikecmpbll> jhass: +1
iMe has quit [Ping timeout: 250 seconds]
lidaaa has quit [Ping timeout: 252 seconds]
ringring800 has quit [Quit: Leaving]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
plashchynski has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
iMe has joined #ruby
Rollabunna has quit [Remote host closed the connection]
spacemud has quit [Ping timeout: 246 seconds]
DonOtreply has quit [Quit: DonOtreply]
Rollabunna has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rvchangue has joined #ruby
spacemud has joined #ruby
<shevy> guys
<shevy> a strange random question
<shevy> hmm
<shevy> I think when you buy something in a supermarket, you have those laser or infrared thingies, which recognize some black bars on objects to find ouw which good it is
athan has quit [Read error: Connection reset by peer]
<shevy> is there something like that too, where you can write a letter, and the content of that letter also becomes some kind of mini-code on the lower right side of the paper or so? so like that it could be quickly registered, and turned into a .pdf on a computer, without having to just scan-up the whole thing?
CpuID2 has quit [Quit: This computer has gone to sleep]
athan has joined #ruby
vire has quit [Ping timeout: 245 seconds]
<waxjar> qr codes you mean?
jack_rabbit has quit [Ping timeout: 250 seconds]
agrinb has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
agrinb has joined #ruby
Lemur has joined #ruby
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
shum1 has quit [Quit: WeeChat 1.1.1]
jlast has joined #ruby
shum1 has joined #ruby
Zai00 has quit [Quit: Zai00]
fabrice31 has joined #ruby
larsam has quit [Quit: larsam]
plashchynski has quit [Quit: plashchynski]
jlast has quit [Ping timeout: 245 seconds]
ponga has joined #ruby
skj3gg has quit [Quit: ZZZzzz…]
jlast has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
dixie__ has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
jlast has quit [Ping timeout: 245 seconds]
tunaCanBruh has joined #ruby
bunbury has quit [Ping timeout: 245 seconds]
TgMts has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
zachrab has joined #ruby
oleo is now known as Guest78328
oleo__ has joined #ruby
beef-wellington has quit [Ping timeout: 246 seconds]
tunaCanBruh has quit [Ping timeout: 252 seconds]
<shevy> waxjar aha
<shevy> so that is the name
The_Phoenix has quit [Read error: Connection reset by peer]
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
nobitanobi has joined #ruby
Guest78328 has quit [Ping timeout: 245 seconds]
beef-wellington has joined #ruby
mitchellhenke has joined #ruby
robbyoconnor has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
r0bby_ has quit [Ping timeout: 265 seconds]
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
ellisTAA has quit [Quit: ellisTAA]
sent1nel has quit [Remote host closed the connection]
Guest123 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DadoCe has joined #ruby
towski_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
Senjai has quit [Ping timeout: 250 seconds]
slawrence00 has quit [Ping timeout: 264 seconds]
DadoCe has quit [Ping timeout: 256 seconds]
Azure has quit [Quit: My MBP went to sleep.]
Deithrian has quit [Ping timeout: 252 seconds]
swgillespie has quit [Client Quit]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
iwishiwerearobot has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
iwishiwerearobot has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Ping timeout: 255 seconds]
zacts has quit [Ping timeout: 250 seconds]
Dr3amc0d3r|away has joined #ruby
swgillespie has joined #ruby
Senjai has joined #ruby
Azure has joined #ruby
dfinninger has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
LetErikTry has joined #ruby
LetErikTry has joined #ruby
swgillespie has quit [Client Quit]
robbyoconnor has joined #ruby
timonv has quit [Ping timeout: 250 seconds]