<zenspider>
hrm... if I had a `prepend` command, I could shorten it further.
<yorickpeterse>
zenspider: well, in this case I also have to do a bunch of manual code updates
<yorickpeterse>
which aren't always identical for all these Gems
<zenspider>
yes. me. google. microsoft. amazon. but really just me.
<chris2>
zenspider: google not anymore i learned recently
<zenspider>
not true
<zenspider>
they still use it ... as of last week at least
<chris2>
well, a googler told me...
<chris2>
they use something that looks like it
<zenspider>
actually came across 3 different perforce employees at the last 2 confs I went to
<zenspider>
well... aja is going to google in a week, and she was told they use perforce. *shrug*
dsilva has quit [Ping timeout: 264 seconds]
<zenspider>
and actually ... just had it confirmed by a perforce employee over lunch
<chris2>
well, interesting
<yorickpeterse>
but if you're not using Git then you're not kewl
<zenspider>
apparently google is perforce's largest client. tho I'd suspect amazon is still the most abusive... even tho they migrated to a new repro at least twice now. they do horrible things to branches
<whitequark>
I'd prefer even svn to p4
<chris2>
i thought amazon was so decentralized internally
dsilva has joined #ruby-lang
<whitequark>
(actually, svn with git-svn is quite not horrible)
x0f_ has quit [Ping timeout: 265 seconds]
spastorino has joined #ruby-lang
midhir has joined #ruby-lang
dsilva_ has quit [Ping timeout: 264 seconds]
<yorickpeterse>
bossman went to get bread almost 45 minutes ago
<yorickpeterse>
still hasn't returned
<yorickpeterse>
I fear for the worst
<yorickpeterse>
especially since the bakery is 10 minutes away
<yorickpeterse>
Perhaps a lawyer from upstairs ate him
<chris2>
a 15min queue?
<chris2>
*25
<whitequark>
killjoy
shubhamgoyal has quit [Remote host closed the connection]
dsilva_ has joined #ruby-lang
<yorickpeterse>
oh hey he's back
<yorickpeterse>
Ah, he went to do a full groceries run
midhir has quit [Ping timeout: 250 seconds]
<yorickpeterse>
and he still has both legs, so no lawyers attacked him
shinnya has quit [Ping timeout: 250 seconds]
dsilva has quit [Ping timeout: 258 seconds]
skade has quit [Quit: Computer has gone to sleep.]
rahul_j has quit [Ping timeout: 264 seconds]
GBrawl has quit [Quit: (null)]
amsha___________ has joined #ruby-lang
midhir has joined #ruby-lang
shinnya has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
shubhamg_ has joined #ruby-lang
amsha___________ has quit [Ping timeout: 265 seconds]
shubhamgoyal has quit [Ping timeout: 240 seconds]
NoNMaDDe_ has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
skade has joined #ruby-lang
chussenot has quit [Quit: chussenot]
oliver___ has quit []
rahul_j has quit [Quit: rahul_j]
pablocantero has joined #ruby-lang
chussenot has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
jmrepetti has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
jxie has joined #ruby-lang
yfeldblum has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
drbrain has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: zzz]
yfeldblum has quit [Ping timeout: 240 seconds]
shubhamg_ has quit [Remote host closed the connection]
clauswitt has quit [Ping timeout: 250 seconds]
drbrain has joined #ruby-lang
clauswitt has joined #ruby-lang
tsou has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
hhatch has quit [Read error: Connection reset by peer]
hhatch has joined #ruby-lang
tsou has joined #ruby-lang
yalue has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
<hannes_>
reminds me of the time I paid 18 euro for 2 loaves of bread
<hannes_>
loafs? loaves? whatever
<hannes_>
tired, sleep-drunk and possibly actual-drunk and hungover
<hannes_>
stood there, baffled, the bread already sliced and bagged in front of me
<hannes_>
I didn't know what else to do but pay :(
<hannes_>
still get shit for it when it comes up
jxie has joined #ruby-lang
<chris2>
golden bread?
<hannes_>
it wasn't even that nice really
<apeiros_>
10kg loaves?
<chris2>
i dont think i saw a loaf for more than.. 5€ perhaps?
<hannes_>
nope.. bit bigger than usual but not massive by any means
<chris2>
which is fucking expensive already
<hannes_>
yea
hhatch has quit [Ping timeout: 258 seconds]
<hannes_>
it doesn't make sense
dangerousdave has joined #ruby-lang
<hannes_>
apparently it's a brand of infamously expensive bakeries
<hannes_>
I'd never heard of it
<hannes_>
who the fuck buys 8 euro bread
<apeiros_>
hm, special breads easily cost ~8€/kg here
<chris2>
in .ch?
<apeiros_>
yeah
<apeiros_>
silly expensive
<chris2>
yeah :P
<chris2>
but cheese is cheaper i think
<chris2>
and meat much more expensive
<apeiros_>
no idea. I think I pay ~14€/kg on average for cheese
<hannes_>
it was in Belgium's most "expensive" coastal town, where all the "classy" folks go to show off their porsches and fur coats
<hannes_>
:D
jeaye has quit [Quit: WeeChat 1.0]
schlubbi has joined #ruby-lang
* chris2
cant remember when he last bought cheese by kg :P
<hannes_>
14? jesus
hannes_ is now known as maloik
<maloik>
if I had to guess I'd say I usually pay 8-10ish as well
<apeiros_>
oh, I don't buy it by the kg. I assumed you wouldn't want to normalize yourself :-p
<chris2>
or even bought cheese at all :P
<chris2>
i just eat it :P
<maloik>
"it just shows up"
<maloik>
significant other does the shopping? :D
<apeiros_>
heh, I buy at least twice a week. and eat almost daily.
<apeiros_>
lol maloik
<chris2>
maloik: yeah :P
caseydri_ has joined #ruby-lang
<apeiros_>
maloik: or flat share. "what should I say? magical fridge. it's always full!"
caseydriscoll has quit [Read error: Connection reset by peer]
tbuehlmann has quit [Remote host closed the connection]
<maloik>
:D
chussenot has quit [Quit: chussenot]
<apeiros_>
good thing I never had a flat-share mate of that kind.
<maloik>
I did 3 years of that, was fun at first with other roommates involved as well
<maloik>
last year and a half with the new roommates was terrible
<maloik>
one just plain lazy, the other never home and not interested in shopping or cooking at all
<maloik>
cant wait to find a house to buy
chussenot has joined #ruby-lang
jeaye has joined #ruby-lang
hhatch has joined #ruby-lang
bryancp has quit [Read error: Connection reset by peer]
nomadicoder has quit [Write error: Connection reset by peer]
jimbach has joined #ruby-lang
joelmheim__ has quit [Write error: Connection reset by peer]
bryancp has joined #ruby-lang
nomadicoder has joined #ruby-lang
lacrosse__ has quit [Read error: Connection reset by peer]
eristic has quit [Read error: Connection reset by peer]
jlpeters has quit [Write error: Connection reset by peer]
avdi has quit [Write error: Connection reset by peer]
shennyg_ has joined #ruby-lang
manveru has quit [Ping timeout: 265 seconds]
jo__ has quit [Ping timeout: 265 seconds]
shennyg has quit [Ping timeout: 265 seconds]
esmet____ has quit [Ping timeout: 265 seconds]
skarn has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Ping timeout: 265 seconds]
lacrosse__ has joined #ruby-lang
drbrain has quit [Ping timeout: 265 seconds]
chancancode_ has quit [Ping timeout: 265 seconds]
womble has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby-lang
jlpeters has joined #ruby-lang
jo__ has joined #ruby-lang
eristic_ has joined #ruby-lang
joelmheim__ has joined #ruby-lang
skarn has joined #ruby-lang
drbrain has joined #ruby-lang
esmet____ has joined #ruby-lang
shennyg_ is now known as shennyg
chancancode_ has joined #ruby-lang
michael_imac has joined #ruby-lang
manveru has joined #ruby-lang
avdi has joined #ruby-lang
womble has joined #ruby-lang
akahn has quit [Ping timeout: 265 seconds]
centrx has joined #ruby-lang
hhatch has quit [Ping timeout: 255 seconds]
akahn has joined #ruby-lang
[spoiler] has joined #ruby-lang
sen_jalapeno has quit [Ping timeout: 264 seconds]
shubhamgoyal has joined #ruby-lang
chussenot_ has joined #ruby-lang
dsilva has joined #ruby-lang
kaiwren has quit [Ping timeout: 264 seconds]
BubonicPestilenc has joined #ruby-lang
chouhoulis has joined #ruby-lang
hhatch has joined #ruby-lang
chussenot has quit [Ping timeout: 265 seconds]
chussenot_ is now known as chussenot
dsilva_ has quit [Ping timeout: 255 seconds]
caseydri_ has quit [Remote host closed the connection]
chussenot has quit [Client Quit]
shubhamgoyal has quit [Read error: Connection reset by peer]
shubhamgoyal has joined #ruby-lang
chouhoulis has quit [Ping timeout: 240 seconds]
jgpawletko has joined #ruby-lang
chussenot has joined #ruby-lang
dsilva_ has joined #ruby-lang
Rampages has joined #ruby-lang
dsilva has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
jmrepetti has joined #ruby-lang
GBrawl has joined #ruby-lang
AKASkip has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amsha___________ has joined #ruby-lang
ta_ has joined #ruby-lang
lewix has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaiwren has joined #ruby-lang
hinbody has joined #ruby-lang
chussenot has joined #ruby-lang
caseydriscoll has joined #ruby-lang
amsha___________ has quit [Quit: Be back later ...]
ihme-TTilus is now known as TTilus
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 250 seconds]
chussenot has quit [Quit: chussenot]
shambrarian has joined #ruby-lang
dsilva has joined #ruby-lang
dangerousdave has joined #ruby-lang
chussenot has joined #ruby-lang
dsilva_ has quit [Ping timeout: 240 seconds]
dxta has joined #ruby-lang
benlovell has joined #ruby-lang
relix has joined #ruby-lang
<yorickpeterse>
I shared dorms with a bunch of frat idiots back in 2009
<yorickpeterse>
now I share an apartment with a cat
<yorickpeterse>
not sure what's worse
chussenot has quit [Quit: chussenot]
<centrx>
is the cat wasted
<yorickpeterse>
No, but he does make a mess out of things
<yorickpeterse>
and from time to time he barfs over the couch
havenwood has joined #ruby-lang
<yorickpeterse>
he also doesn't clean his poop box
<yorickpeterse>
and he throws food out of his bowl
<yorickpeterse>
also doesn't pay rent
<yorickpeterse>
at least he doesn't hit on female friends
<centrx>
he sounds drunk
shinnya has quit [Ping timeout: 245 seconds]
<yorickpeterse>
it's a cat
<yorickpeterse>
that's what cats do
<yorickpeterse>
"sup bro how was work? Oh I took a barf on the couch again"
<yorickpeterse>
that or he's sleeping under my blankets and just jumps out like "OH WHAT? NO I WASN'T SLEEPING IN YOUR BED"
<yorickpeterse>
there's an IRC bot hooked up to it, along with some other cat picture feeds
amsha___________ has joined #ruby-lang
malconis has joined #ruby-lang
chussenot has quit [Quit: chussenot]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 256 seconds]
nofxx_ has joined #ruby-lang
nofxx has quit [Ping timeout: 255 seconds]
amsha___________ has quit [Quit: Be back later ...]
dorei has joined #ruby-lang
mbj has joined #ruby-lang
mbj has quit [Client Quit]
chills42 has joined #ruby-lang
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 272 seconds]
rahul_j_ is now known as rahul_j
chussenot has joined #ruby-lang
enebo has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
chinmay_dd has joined #ruby-lang
chussenot has quit [Client Quit]
GBrawl has quit [Quit: (null)]
nofxx_ has quit [Ping timeout: 264 seconds]
nofxx_ has joined #ruby-lang
nofxx_ has quit [Changing host]
nofxx_ has joined #ruby-lang
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby-lang
rahul_j has quit [Ping timeout: 256 seconds]
rahul_j has joined #ruby-lang
skade has joined #ruby-lang
klmlfl has joined #ruby-lang
j2p2 has joined #ruby-lang
lewix has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
j2p2 has quit [Ping timeout: 245 seconds]
rahul_j has quit [Ping timeout: 255 seconds]
j2p2 has joined #ruby-lang
rahul_j has joined #ruby-lang
mannyt has joined #ruby-lang
nelsonsar has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
nofxx_ has quit [Read error: Connection reset by peer]
nofxx_ has joined #ruby-lang
midhir_ has joined #ruby-lang
midhir has quit [Read error: Connection reset by peer]
chills42 has joined #ruby-lang
havenwood has joined #ruby-lang
rahul_j has quit [Ping timeout: 258 seconds]
midhir has joined #ruby-lang
midhir_ has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
nofxx_ has quit [Ping timeout: 264 seconds]
nofxx__ has joined #ruby-lang
dangerousdave has joined #ruby-lang
tenderlove has joined #ruby-lang
midhir_ has joined #ruby-lang
dwknoxy has joined #ruby-lang
dangerousdave has quit [Max SendQ exceeded]
midhir has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
lewix has joined #ruby-lang
lewix has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
rahul_j has quit [Read error: Connection reset by peer]
NoNMaDDeN has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
momomomomo has joined #ruby-lang
svajone has joined #ruby-lang
<svajone>
Anyone can help me with matching an array of coordinates?
benlovell has joined #ruby-lang
rahul_j has joined #ruby-lang
symm- has joined #ruby-lang
<maloik>
svajone: I think you'll need to be more specific than that, that question made no sense to me :-)
dsilva has quit [Ping timeout: 265 seconds]
<svajone>
Sorry. I am trying to match a set of coordinates using Regex. Thing is, the coordinates is generated and returned as an array. [lat, long]. Just trying to make a test to see if the output is a coordinate.
<maloik>
also, look at the geokit gem, chances are it'll do what you need ;)
sen_jalapeno has joined #ruby-lang
<maloik>
oh
q_leonetti has quit [Quit: q_leonetti]
amsha___________ has joined #ruby-lang
<svajone>
More like something like this coordinates = [40.61, 100.23]
<maloik>
I suggest you write a bunch of testcases, you'll probably want this test anyway... it'll be easier for us to make those tests pass then
dangerousdave has joined #ruby-lang
dangerousdave has quit [Max SendQ exceeded]
benlovell has quit [Ping timeout: 264 seconds]
dsilva has joined #ruby-lang
rippa has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
GarethAdams has quit [Quit: So long, and thanks for all the fish!]
dangerousdave has joined #ruby-lang
mkaesz has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
chussenot has joined #ruby-lang
[H]unt3r has joined #ruby-lang
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 245 seconds]
rahul_j_ is now known as rahul_j
leandrosnunes has joined #ruby-lang
apeiros_ has quit [Ping timeout: 245 seconds]
slawrence00 has joined #ruby-lang
kwd has quit [Ping timeout: 240 seconds]
mamantoha has quit [Ping timeout: 250 seconds]
nelsonsar has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
dsilva_ has joined #ruby-lang
klmlfl has joined #ruby-lang
chills42 has joined #ruby-lang
benlovell has joined #ruby-lang
lewix has joined #ruby-lang
lewix has joined #ruby-lang
dsilva has quit [Ping timeout: 264 seconds]
midhir_ has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
dangerousdave has joined #ruby-lang
mistym has joined #ruby-lang
rahul_j has quit [Ping timeout: 265 seconds]
midhir has joined #ruby-lang
nofxx__ has quit [Ping timeout: 245 seconds]
nofxx__ has joined #ruby-lang
<yorickpeterse>
yay I got 3 gems done
<yorickpeterse>
11 more to go
<yorickpeterse>
Then I have to move all 20-or-so over from Drone.io to Travis
lewix has quit [Remote host closed the connection]
enkristoffer has quit [Remote host closed the connection]
nofxx__ has quit [Ping timeout: 244 seconds]
midhir has quit [Ping timeout: 272 seconds]
dsilva has joined #ruby-lang
tzero has quit [Ping timeout: 265 seconds]
chills42 has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 255 seconds]
chussenot has quit [Quit: chussenot]
dsilva_ has quit [Ping timeout: 256 seconds]
banister is now known as banisterfiend
ledestin has joined #ruby-lang
pricees has joined #ruby-lang
eristic_ is now known as eristic
arBmind1 has joined #ruby-lang
apeiros_ has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
arBmind has quit [Ping timeout: 264 seconds]
ledestin has quit [Ping timeout: 244 seconds]
realDAB has joined #ruby-lang
realDAB has quit [Client Quit]
lewix has joined #ruby-lang
lewix has joined #ruby-lang
ledestin has joined #ruby-lang
jmrepetti has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
jmrepetti has joined #ruby-lang
pricees has quit [Ping timeout: 256 seconds]
dabradley has quit [Ping timeout: 264 seconds]
ta_ has quit [Remote host closed the connection]
jmrepetti has quit [Ping timeout: 272 seconds]
fusillicode has quit [Ping timeout: 256 seconds]
tzero has joined #ruby-lang
lewix has joined #ruby-lang
lewix has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
AKASkip has joined #ruby-lang
dabradley has joined #ruby-lang
Olipro has quit [Ping timeout: 256 seconds]
nelsonsar has joined #ruby-lang
ledestin has quit [Ping timeout: 264 seconds]
mamantoha has joined #ruby-lang
klmlfl_ has joined #ruby-lang
chouhoulis has quit [Ping timeout: 272 seconds]
lewix has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
schlubbi has quit [Remote host closed the connection]
schlubbi has joined #ruby-lang
klmlfl has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby-lang
relix has joined #ruby-lang
|jemc| has quit [Quit: WeeChat 1.0.1]
Demannu_ has joined #ruby-lang
chussenot has joined #ruby-lang
|jemc| has joined #ruby-lang
mamantoha has quit [Quit: No Ping reply in 180 seconds.]
dsilva_ has joined #ruby-lang
mamantoha_ has joined #ruby-lang
dsilva has quit [Ping timeout: 258 seconds]
amsi has joined #ruby-lang
mamantoha_ has quit [Ping timeout: 250 seconds]
__butch__ has joined #ruby-lang
klmlfl_ has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 255 seconds]
svajone has quit [Quit: Leaving]
caseydriscoll has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
mistym has joined #ruby-lang
mistym_ has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
__butch__ has quit [Client Quit]
unsymbol has quit [Ping timeout: 264 seconds]
__butch__ has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
chinmay_dd has quit [Quit: Leaving]
__butch__ has quit [Client Quit]
mcclurmc_ has joined #ruby-lang
symm- has joined #ruby-lang
mistym has quit [Disconnected by services]
mistym_ is now known as mistym
caseydriscoll has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mcclurmc has quit [Ping timeout: 255 seconds]
__butch__ has joined #ruby-lang
ahmetkapikiran has joined #ruby-lang
benlovell has joined #ruby-lang
__butch__ has quit [Client Quit]
__butch__ has joined #ruby-lang
mcclurmc has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
lewix has joined #ruby-lang
francisfish has joined #ruby-lang
mcclurmc_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby-lang
melter_ has quit [Ping timeout: 265 seconds]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby-lang
enkristoffer has joined #ruby-lang
melter has quit [Ping timeout: 272 seconds]
nelsonsar has quit [Remote host closed the connection]
lewix has quit [Ping timeout: 264 seconds]
faces has quit [Remote host closed the connection]
face has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
skade has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 264 seconds]
cleopatra has quit [Quit: Saliendo]
unsymbol has joined #ruby-lang
AmBienCeD has joined #ruby-lang
schlubbi has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
nelsonsar has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
hahuang61 has quit [Ping timeout: 265 seconds]
lewix has joined #ruby-lang
melter has joined #ruby-lang
midhir has joined #ruby-lang
melter_ has joined #ruby-lang
face has quit [Remote host closed the connection]
face has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
lewix has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
face has quit [Remote host closed the connection]
face has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby-lang
[H]unt3r has quit [Remote host closed the connection]
lewix has joined #ruby-lang
dangerousdave has joined #ruby-lang
dangerousdave has quit [Max SendQ exceeded]
lewix has quit [Read error: Connection reset by peer]
Lewix_ has joined #ruby-lang
caseydriscoll has joined #ruby-lang
Demannu has joined #ruby-lang
Demannu_ has quit [Ping timeout: 240 seconds]
GBrawl has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
skade has joined #ruby-lang
caseydriscoll has quit [Ping timeout: 264 seconds]
klmlfl has joined #ruby-lang
hahuang61 has joined #ruby-lang
NoNMaDDeN has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
[H]unt3r has joined #ruby-lang
djbkd has joined #ruby-lang
mamantoha_ has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
jimbach has joined #ruby-lang
jimbach has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
jimbach has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Authenticator has quit [Quit: leaving]
symm- has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
cleopatra has joined #ruby-lang
djbkd has joined #ruby-lang
nelsonsar has joined #ruby-lang
symm- has joined #ruby-lang
caseydriscoll has joined #ruby-lang
stamina has joined #ruby-lang
t7y9r has quit [Ping timeout: 245 seconds]
t7y9r has joined #ruby-lang
solars has quit [Ping timeout: 265 seconds]
fusillicode has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
NoNMaDDeN has joined #ruby-lang
dsilva has joined #ruby-lang
stamina has quit [Ping timeout: 258 seconds]
dsilva_ has quit [Ping timeout: 256 seconds]
dsilva_ has joined #ruby-lang
dxta has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
dsilva has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby-lang
solars has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
dxta has joined #ruby-lang
ahmetkapikiran has quit [Quit: ahmetkapikiran]
loincloth has joined #ruby-lang
dxta has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
enkristoffer has quit [Quit: ❤]
dsilva has joined #ruby-lang
wallerdev has joined #ruby-lang
dsilva_ has quit [Ping timeout: 255 seconds]
Demannu_ has joined #ruby-lang
Demannu has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
leandrosnunes has quit [Quit: WeeChat 0.4.3]
dsilva has quit [Quit: http://quassel-irc.org - Bate-papo confortável em qualquer lugar.]
chussenot has joined #ruby-lang
nelsonsar has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 265 seconds]
marr has joined #ruby-lang
cornerma1 has joined #ruby-lang
[H]unt3r has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ecnalyr has quit [Ping timeout: 244 seconds]
nelsonsar has joined #ruby-lang
cornerman has quit [Ping timeout: 272 seconds]
cornerma1 is now known as cornerman
loincloth has quit [Remote host closed the connection]
amjibaly has joined #ruby-lang
Digby has joined #ruby-lang
loincloth has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
dagda1__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingos has joined #ruby-lang
Lingos has left #ruby-lang [#ruby-lang]
ta_ has joined #ruby-lang
ur5us has joined #ruby-lang
dagda1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
enkristoffer has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ldnunes_ has quit [Quit: Leaving]
Rampages has quit [Ping timeout: 240 seconds]
chills42 has joined #ruby-lang
Rampages has joined #ruby-lang
jmrepetti has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
klmlfl has quit [Remote host closed the connection]
mistym has joined #ruby-lang
klmlfl has joined #ruby-lang
Rampages has quit [Ping timeout: 244 seconds]
Rampages has joined #ruby-lang
Lewix_ has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
Digby has quit [Ping timeout: 250 seconds]
bmichelsen has joined #ruby-lang
jmrepetti has quit [Remote host closed the connection]
jmrepetti has joined #ruby-lang
fusillicode1 has joined #ruby-lang
fusillicode has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<nofxx>
Had 4 hrs of python today. How can anyone compare that to Ruby (ranting strictily about human/least-surprise/readbility) ... it;s a joke
<nofxx>
not to mention OO... gsub a string: os.sub('regex', '', variable) .... array size? len(array)
ta_ has quit [Remote host closed the connection]
<nofxx>
OO taken directly from C99!
jmrepetti has quit [Remote host closed the connection]
lewix has joined #ruby-lang
mamantoha_ has quit [Ping timeout: 258 seconds]
mamantoha_ has joined #ruby-lang
g0bl1n has joined #ruby-lang
_fritchie has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
pyttepatsy has joined #ruby-lang
schlubbi has joined #ruby-lang
elia has joined #ruby-lang
havenwood has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
nelsonsar has quit [Remote host closed the connection]
sen_jalapeno has quit [Quit: Leaving]
schlubbi has quit [Ping timeout: 240 seconds]
yfeldblu_ has joined #ruby-lang
amsi has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
mistym has quit [Remote host closed the connection]
nelsonsar has joined #ruby-lang
<g0bl1n>
can one include a Module inside a method (from a class) ? This is, we have several Modules and based on the a class initialization we need to include different Modules. These modules methods have equal names, that's why we want to include the methods per instance
<jhass>
g0bl1n: yes, it's called "extend". But don't do it, you void method caches each time
apt-get_ has joined #ruby-lang
<g0bl1n>
jhass, no, we don't want to extend, we want to include. We want the new module methods to act as instance methods for the class
<jhass>
that's extend
<womble>
Having to go through those sorts of contortions makes me think your domain model could stand to be improved.
<jhass>
>> module Foo; def bar; "foo"; end; end; class Bar; end; o = Bar.new; o.extend Foo; o.bar
<g0bl1n>
jhass, I want to have those Modules as plugins, for each instance
<jhass>
I can only repeat myself. It's possible with extend but you shouldn't do it
elia has joined #ruby-lang
<jhass>
extend is an include into the objects singleton class
ta__ has joined #ruby-lang
<g0bl1n>
jhass, so any hint on how could I have Modules like "plugins" for an instance ?
workmad3 has joined #ruby-lang
pablocantero has joined #ruby-lang
<jhass>
it's hard without seeing the problem at hand
pyttepatsy has quit [Ping timeout: 255 seconds]
__butch__ has quit [Quit: Leaving.]
<jhass>
but probably something from delegate stdlib
caseydriscoll has quit [Remote host closed the connection]
<apeiros_>
I really love "I want to use X to solve Y" - "yes, you need to use Z, not X" - "No, I want to use X!" - why again are you here? :D
<g0bl1n>
apeiros_, no, that's not my intention
[H]unt3r has quit []
ta_ has quit [Ping timeout: 265 seconds]
yalue has quit [Quit: Leaving]
<g0bl1n>
jhass, from the previous example, on the Supplier.like method, I'd like to use the mode() method from other plugins (Modules) based on a condition. This, to make it easy to create new plugins, to other devs.
<g0bl1n>
* model()
<jhass>
that's your full real world code/model?
pablocantero has quit [Ping timeout: 272 seconds]
<g0bl1n>
jhass, no, its code under NDA :(
bb010g has joined #ruby-lang
<jhass>
as said, you can likely solve it with delegation
bmichelsen has quit [Quit: ZZZzzz…]
<|jemc|>
g0bl1n: sounds like you should use composition and call delegate the method to the swappable internal object
<jhass>
delegate stdlib removes the boilerplate in that
<g0bl1n>
ok, thanks
djbkd has quit [Remote host closed the connection]
<|jemc|>
g0bl1n: in the interest of answering the question: "is it possible to ...?", I should add that you can do: MyPluginModule.instance_method(:foo).bind(object).call(arguments)
<|jemc|>
but again, it's probably not what you _really_ want
<|jemc|>
you'll run into problems very quickly if the :foo method depends on @ivars or private methods that you didn't bring with you when you did the bind
mistym has joined #ruby-lang
<g0bl1n>
|jemc|, yes, agree
nelsonsar has quit [Remote host closed the connection]
<jhass>
what's the best fit from there to your model, I can't say since I don't know your real model
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby-lang
j2p2 has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
jmrepetti has joined #ruby-lang
melter_ has quit [Quit: Client exiting]
<g0bl1n>
having an object that has data and methods, I need to attach to that object new methods based on a users choice. Those new methods are inside Modules. Imagine an object you want to export to XML or JSON. We want to have several independent modules (one for JSON export, other for XML, other for new created formats) so that we attach those modules to the object based on the format we want to export to. Having on those modules a same method name expor
<g0bl1n>
t_data.
kaiwren has quit [Quit: kaiwren]
<bnagy>
it's amazing the lengths to which people will go to avoid a sane api
djbkd has quit [Remote host closed the connection]
<g0bl1n>
bnagy, great comment
lcdhoffman has joined #ruby-lang
<jhass>
I think you're doing this the wrong way around
<jhass>
JSONExporter.new(model).export_data
<jhass>
XMLExporter.new(model).export_data
<|jemc|>
g0bl1n: despite whatever idioms you may or may not be violating, the big practical problem with your pasted example is that when you call self.class.send(:include, Foo), the Foo module is included in the class, meaning it's suddenly in every instance of the class, universally; not in a specific instance as you seem to want.
hinbody has quit [Quit: leaving]
<g0bl1n>
|jemc|, perfect, thanks, that's bad :)
<apeiros_>
(I think it's also what jhass told you dozens of lines ago)
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<|jemc|>
extend is the right tool for 'including' a Module into only a single instance, as mentioned by others above
saramic has joined #ruby-lang
<|jemc|>
that is, in your example:
dagda1 has joined #ruby-lang
nelsonsar has joined #ruby-lang
<|jemc|>
`extend Car.const_get(here_we_go)` instead of `self.class.send(:include, Car.const_get(here_we_go))`
JohnBat26 has quit [Ping timeout: 272 seconds]
<jhass>
g0bl1n: google ruby DCI for plenty of blogposts about the pros and cons of your approach
<g0bl1n>
ok, thanks
AKASkip has quit [Ping timeout: 255 seconds]
GBrawl has joined #ruby-lang
allomov has joined #ruby-lang
pablocantero has quit [Remote host closed the connection]
jmrepetti has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 272 seconds]
amsi has joined #ruby-lang
jmrepetti has joined #ruby-lang
GBrawl has quit [Quit: (null)]
pyttepatsy has joined #ruby-lang
lewix has quit [Remote host closed the connection]
jmrepetti has quit [Remote host closed the connection]
lewix has joined #ruby-lang
apt-get_ has quit [Quit: Quitte]
g0bl1n has quit [Ping timeout: 240 seconds]
pyttepatsy has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby-lang
lewix has joined #ruby-lang
djbkd has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
lewix has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
pablocantero has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
pablocantero has quit [Remote host closed the connection]
pablocantero has joined #ruby-lang
nelsonsa_ has joined #ruby-lang
nelsonsar has quit [Ping timeout: 258 seconds]
pablocantero has quit [Ping timeout: 250 seconds]
danijoo has quit [Read error: Connection reset by peer]
nelsonsa_ has quit [Ping timeout: 258 seconds]
danijoo has joined #ruby-lang
j2p2 has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
loincloth has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
Narzew has joined #ruby-lang
g0bl1n has joined #ruby-lang
g0bl1n has joined #ruby-lang
djbkd has joined #ruby-lang
relix has joined #ruby-lang
relix has quit [Client Quit]
mamantoha_ has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
chussenot has quit [Quit: chussenot]
havenwood has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
djbkd has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
solars has quit [Ping timeout: 265 seconds]
caseydriscoll has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
oak has joined #ruby-lang
oak has quit [Read error: Connection reset by peer]