milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
netherwolfe_ has joined #ruby
Bounga has quit [Ping timeout: 256 seconds]
schneide_ has quit [Ping timeout: 256 seconds]
govg has joined #ruby
netherwolfe has quit [Ping timeout: 276 seconds]
dviola has quit [Quit: WeeChat 2.0.1]
bigblind has joined #ruby
schneide_ has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
bigblind has quit [Ping timeout: 256 seconds]
jnyw has joined #ruby
schneide_ has quit [Ping timeout: 264 seconds]
u0157542 has joined #ruby
cpruitt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicesignal has quit [Remote host closed the connection]
schneide_ has joined #ruby
nicesignal has joined #ruby
u0157542 has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
schneide_ has quit [Ping timeout: 256 seconds]
priodev has quit [Ping timeout: 268 seconds]
cpruitt has quit [Ping timeout: 260 seconds]
orbyt_ has joined #ruby
schneide_ has joined #ruby
cpruitt has joined #ruby
schneide_ has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
bigblind has joined #ruby
schneide_ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
live__ has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
ghoti_ has joined #ruby
hr3f has joined #ruby
netherwolfe__ has joined #ruby
c0ncealed has quit [Read error: Connection reset by peer]
mrsolo_ has joined #ruby
pfg_ has joined #ruby
kaia_ has joined #ruby
BuildTheRobots_ has joined #ruby
Diabolik_ has joined #ruby
lipoqil_ has joined #ruby
Tony-St4rk_ has joined #ruby
dukedave_ has joined #ruby
cpruitt has quit [Ping timeout: 252 seconds]
rann_ has joined #ruby
caw___ has joined #ruby
craysiii_ has joined #ruby
schneide_ has quit [Ping timeout: 268 seconds]
kapil___ has joined #ruby
c0ncealed has joined #ruby
lupine_ has joined #ruby
rikai_ has joined #ruby
webhat_ has joined #ruby
Quintasan_ has joined #ruby
kent\n has joined #ruby
contradictioned_ has joined #ruby
matti__ has joined #ruby
nyuszika7h has quit [Disconnected by services]
cschneid has quit [Remote host closed the connection]
<kapil___>
i have {:a=>10, "b"=>{:c=>40}}
netherwolfe_ has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
nyuszika7h_ has joined #ruby
cpruitt has joined #ruby
<kapil___>
If i want to get value of c, I have to check object.is_a?(Hash) each key deep.
schneide_ has joined #ruby
u0157542 has joined #ruby
mistym- has joined #ruby
ttttsul has joined #ruby
DarkArc has joined #ruby
netherwolfe__ has quit [Ping timeout: 276 seconds]
Biohazard_ has joined #ruby
oleo has quit [*.net *.split]
rikai has quit [*.net *.split]
Diabolik has quit [*.net *.split]
kentnl has quit [*.net *.split]
galeido has quit [*.net *.split]
mrsolo has quit [*.net *.split]
atmosx has quit [*.net *.split]
mistym has quit [*.net *.split]
pfg has quit [*.net *.split]
leah2 has quit [*.net *.split]
BuildTheRobots has quit [*.net *.split]
ghoti has quit [*.net *.split]
Dark_Arc has quit [*.net *.split]
Quintasan has quit [*.net *.split]
contradictioned has quit [*.net *.split]
Tony-St4rk has quit [*.net *.split]
kaia has quit [*.net *.split]
Takumo has quit [*.net *.split]
KevinMGranger has quit [*.net *.split]
velu_aon[m] has quit [*.net *.split]
lipoqil has quit [*.net *.split]
dukedave has quit [*.net *.split]
caw__ has quit [*.net *.split]
craysiii has quit [*.net *.split]
rann has quit [*.net *.split]
href has quit [*.net *.split]
matti has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
szulak has quit [*.net *.split]
lupine has quit [*.net *.split]
Biohazard has quit [*.net *.split]
darthThorik has quit [*.net *.split]
mr-robert has quit [*.net *.split]
tsul has quit [*.net *.split]
webhat has quit [*.net *.split]
hr3f is now known as href
mrsolo_ is now known as mrsolo
kaia_ is now known as kaia
pfg_ is now known as pfg
szulak has joined #ruby
lipoqil_ is now known as lipoqil
BuildTheRobots_ is now known as BuildTheRobots
craysiii_ is now known as craysiii
Tony-St4rk_ is now known as Tony-St4rk
rann_ is now known as rann
dukedave_ is now known as dukedave
u0157542 has quit [Ping timeout: 240 seconds]
willamin has quit [Ping timeout: 240 seconds]
bokayio has quit [Ping timeout: 240 seconds]
esObe has quit [Ping timeout: 240 seconds]
schneide_ has quit [Ping timeout: 276 seconds]
KevinSjoberg has quit [Ping timeout: 260 seconds]
cschneid has quit [Ping timeout: 240 seconds]
Guest70560 has quit [Ping timeout: 240 seconds]
Tristan-Speccy has joined #ruby
Tristan-Speccy is now known as Guest22057
cpruitt has quit [Ping timeout: 240 seconds]
bokayio has joined #ruby
esObe has joined #ruby
KevinSjoberg has joined #ruby
willamin has joined #ruby
cschneid has joined #ruby
velu_aon[m] has joined #ruby
atmosx has joined #ruby
KevinMGranger has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
Takumo has joined #ruby
JoL1hAHN has joined #ruby
leah2 has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
mtkd has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 260 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
priodev has joined #ruby
bigblind has joined #ruby
mtkd has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
cpruitt has quit [Read error: Connection timed out]
mjolnird has quit [Read error: Connection reset by peer]
schneide_ has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
u0157542 has joined #ruby
bigblind has joined #ruby
cpruitt has joined #ruby
schneide_ has joined #ruby
soniya29 has joined #ruby
u0157542 has quit [Ping timeout: 260 seconds]
bigblind has quit [Ping timeout: 240 seconds]
cschneid has joined #ruby
schneide_ has quit [Ping timeout: 256 seconds]
BTRE has quit [Quit: Leaving]
cpruitt has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
cpruitt has joined #ruby
haylon_ has quit [Ping timeout: 240 seconds]
schneide_ has joined #ruby
justicef_ has joined #ruby
soniya29 has quit [Quit: Leaving]
justicefries has quit [Ping timeout: 252 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has quit [Ping timeout: 256 seconds]
schneide_ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bigblind has joined #ruby
cpruitt has joined #ruby
schneide_ has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 248 seconds]
schneide_ has quit [Ping timeout: 248 seconds]
u0157542 has joined #ruby
schneide_ has joined #ruby
bigblind has joined #ruby
u0157542 has quit [Ping timeout: 256 seconds]
justicef_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
cschneid has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
cpruitt has quit [Ping timeout: 260 seconds]
schneide_ has joined #ruby
biberu has joined #ruby
ta_ has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 256 seconds]
Bounga has joined #ruby
cpruitt has joined #ruby
cschneid has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
Bounga has quit [Ping timeout: 256 seconds]
schneide_ has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
nso95 has joined #ruby
nso95 has left #ruby [#ruby]
schneide_ has quit [Ping timeout: 248 seconds]
cpruitt has joined #ruby
Guest14 has joined #ruby
bigblind has joined #ruby
ldepandis has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
schneide_ has joined #ruby
claudiuinberlin has joined #ruby
u0157542 has joined #ruby
ramfjord has joined #ruby
schneide_ has quit [Ping timeout: 248 seconds]
u0157542 has quit [Ping timeout: 248 seconds]
cpruitt has quit [Read error: Connection timed out]
ramfjord has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 240 seconds]
schneide_ has joined #ruby
jrp93 has joined #ruby
cpruitt has joined #ruby
schneide_ has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
bigblind has joined #ruby
schneide_ has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
goatish has joined #ruby
bigblind has quit [Ping timeout: 240 seconds]
schneide_ has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
darthThorik has joined #ruby
mr-robert has joined #ruby
galeido has joined #ruby
za1b1tsu has joined #ruby
djbkd has quit []
schneide_ has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
schneide_ has quit [Ping timeout: 256 seconds]
u0157542 has joined #ruby
cpruitt has joined #ruby
schneide_ has joined #ruby
Mia has joined #ruby
bigblind has joined #ruby
u0157542 has quit [Ping timeout: 256 seconds]
schneide_ has quit [Ping timeout: 264 seconds]
bigblind has quit [Ping timeout: 256 seconds]
schneide_ has joined #ruby
ifctj has joined #ruby
<wnd>
kapil___, in more recent Ruby there is Hash#dig, but you'll still have to worry about type-safety. Why don't you know your the kind of data anyway?
cschneid has quit [Ping timeout: 260 seconds]
gary_ has joined #ruby
cpruitt has quit [Ping timeout: 268 seconds]
gary_ is now known as Guest86776
schneide_ has quit [Ping timeout: 256 seconds]
u0157542 has joined #ruby
yottanami has joined #ruby
cschneid has joined #ruby
regedit has joined #ruby
bigblind has joined #ruby
cpruitt has joined #ruby
venmx has joined #ruby
DaniG2k has joined #ruby
bigblind has quit [Ping timeout: 256 seconds]
apparition has joined #ruby
bigblind has joined #ruby
minimalism has quit [Quit: minimalism]
cpruitt has quit [Ping timeout: 240 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
u0157542 has quit [Ping timeout: 260 seconds]
bigblind has quit [Ping timeout: 248 seconds]
cpruitt has joined #ruby
u0157542 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
u0157542 has quit [Ping timeout: 268 seconds]
Bounga has joined #ruby
Bounga has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
milardovich has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 248 seconds]
bigblind has joined #ruby
jamesaxl has joined #ruby
cschneid has joined #ruby
cpruitt has quit [Ping timeout: 264 seconds]
venmx has quit [Quit: leaving]
lizard2010 has joined #ruby
lizard2010 has quit [Client Quit]
bigblind has quit [Ping timeout: 248 seconds]
cpruitt has joined #ruby
ifctj has quit [Ping timeout: 248 seconds]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
DaniG2k has quit [Quit: leaving]
k0mpa has quit [Remote host closed the connection]
u0157542 has joined #ruby
justinfaler is now known as immune
u0157542 has quit [Ping timeout: 256 seconds]
x77686d has quit [Quit: x77686d]
apparition has joined #ruby
cpruitt has quit [Ping timeout: 256 seconds]
nso95 has joined #ruby
cpruitt has joined #ruby
bigblind has joined #ruby
jenrzzz has joined #ruby
u0157542 has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
bigblind has quit [Ping timeout: 252 seconds]
u0157542 has quit [Ping timeout: 260 seconds]
DTZUZO has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
zwliew has joined #ruby
live__ has quit [Quit: Leaving]
cschneid has joined #ruby
oleo has joined #ruby
InfinityFye has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
gixxer1k has joined #ruby
milardovich has joined #ruby
InfinityFye has left #ruby [#ruby]
cpruitt has quit [Read error: Connection timed out]
u0157542 has joined #ruby
mjolnird has joined #ruby
u0157542 has quit [Ping timeout: 240 seconds]
mjolnird has quit [Remote host closed the connection]
bigblind has joined #ruby
mjolnird has joined #ruby
cpruitt has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
ifctj has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
mjolnird has quit [Remote host closed the connection]
mjolnird has joined #ruby
milardovich has quit [Ping timeout: 268 seconds]
u0157542 has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
schneide_ has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
schneide_ has joined #ruby
ifctj has quit [Ping timeout: 240 seconds]
gothicsouth has joined #ruby
cpruitt has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zxc_ has quit [Read error: Connection reset by peer]
schneide_ has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
tomphp has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
jnyw has quit [Quit: WeeChat 2.0.1]
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
u0157542 has joined #ruby
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
<yottanami>
What is correct way to create this string? "#{item["PLZ"]}, #{item["Strasse"]}, #{item["ORT"]}"
zxc has joined #ruby
zxc has quit [Max SendQ exceeded]
cpruitt has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
u0157542 has quit [Ping timeout: 268 seconds]
schneide_ has joined #ruby
goatish has quit [Quit: Hibernating]
Neptu has quit [Ping timeout: 276 seconds]
zigzig has quit [Remote host closed the connection]
kapil___ has joined #ruby
bigblind has joined #ruby
cpruitt has joined #ruby
zigzig has joined #ruby
cschneid has quit [Ping timeout: 248 seconds]
Neptu has joined #ruby
schneide_ has quit [Ping timeout: 248 seconds]
vondruch has joined #ruby
cschneid has joined #ruby
bigblind has quit [Ping timeout: 260 seconds]
sameerynho has joined #ruby
immune has quit [Ping timeout: 252 seconds]
schneide_ has joined #ruby
cpruitt has quit [Read error: Connection timed out]
drewmcmillan has joined #ruby
schneide_ has quit [Ping timeout: 240 seconds]
quobo has joined #ruby
u0157542 has joined #ruby
cpruitt has joined #ruby
schneide_ has joined #ruby
<apeiros>
yottanami: what makes your way incorrect?
apparition has quit [Quit: Bye]
milardovich has quit [Remote host closed the connection]
marr has joined #ruby
bigblind has joined #ruby
u0157542 has quit [Ping timeout: 240 seconds]
vutral|kali has quit [Ping timeout: 256 seconds]
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #ruby
vutral|kali has joined #ruby
vutral|kali has joined #ruby
vutral|kali has quit [Changing host]
regedit has quit [Quit: Connection closed for inactivity]
Guest86776 has quit [Ping timeout: 256 seconds]
immune has joined #ruby
schneide_ has quit [Ping timeout: 248 seconds]
za1b1tsu has quit [Ping timeout: 248 seconds]
Dimik has quit [Ping timeout: 256 seconds]
amatas has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
schneide_ has joined #ruby
schneide_ has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
bigblind has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
schneide_ has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
zwliew has quit [Quit: Connection closed for inactivity]
u0157542 has joined #ruby
John_Ivan has joined #ruby
schneide_ has quit [Ping timeout: 268 seconds]
asphyxia has joined #ruby
<asphyxia>
hey all!
mtkd has quit [Ping timeout: 260 seconds]
u0157542 has quit [Ping timeout: 240 seconds]
<asphyxia>
I gotta question
<asphyxia>
I've never programmed in ruby, don't know shit about it, but I had to update my version to update my homebrew
<asphyxia>
and now I'm stuck in the terminal not wanting to quit in case I cause some damage
<asphyxia>
I've just got a big list of all the ruby installation options and no way (seemingly?) out as I get pattern not found when I give a command
mtkd has joined #ruby
<zleap>
asphyxia: the code cademy course on ruby is really good for beginners I am currently working through the course
<asphyxia>
I just wanna update my homebrew ^^;
immune has quit [Ping timeout: 248 seconds]
cschneid has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
cpruitt has quit [Read error: Connection timed out]
schneide_ has joined #ruby
<zleap>
ah ok
dcluna has quit [Ping timeout: 248 seconds]
dcluna has joined #ruby
* asphyxia
is restarting terminal one second please!
asphyxia has quit [Quit: leaving]
schneide_ has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
asphyxia has joined #ruby
immune has joined #ruby
cschneid has joined #ruby
zautomata has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
balo has quit [Quit: leaving]
Bounga has joined #ruby
zautomata has quit [Client Quit]
schneide_ has joined #ruby
balo has joined #ruby
zautomata has joined #ruby
zautomata has quit [Client Quit]
bigblind has joined #ruby
cpruitt has joined #ruby
schneide_ has quit [Ping timeout: 248 seconds]
schneide_ has joined #ruby
Bounga has quit [Ping timeout: 248 seconds]
asphyxia has quit [Quit: leaving]
balo has quit [Quit: leaving]
balo has joined #ruby
u0157542 has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
schneide_ has quit [Ping timeout: 276 seconds]
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
u0157542 has quit [Ping timeout: 276 seconds]
drewmcmillan has joined #ruby
zautomata has joined #ruby
zautomata has quit [Changing host]
zautomata has joined #ruby
shinnya has joined #ruby
schneide_ has joined #ruby
schneide_ has quit [Remote host closed the connection]
schneide_ has joined #ruby
cpruitt has quit [Read error: Connection timed out]
schneide_ has quit [Client Quit]
ahrs has quit [Read error: Connection reset by peer]
ahrs has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
milardovich has joined #ruby
justicefries has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
u0157542 has joined #ruby
ta_ has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
u0157542 has quit [Ping timeout: 260 seconds]
justicefries has joined #ruby
<soahccc>
Are there gotchas in regards to overwriting methods from eval'd code? It's a terminal tool which can have a config.rb and it get's evald in the application instance and works pretty good (I know there might be more elegant ways). I can define non-existant methods and they are available. But if I try to redefine an existing one (and I checked that it does exist at that point) it seems to have no effect.
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
randomstrangerb has quit [Ping timeout: 268 seconds]
cpruitt has quit [Ping timeout: 268 seconds]
<soahccc>
leitz: I use structs as stubs sometimes as you can .attribute it
randomstrangerb has joined #ruby
<leitz>
soahccc, so I could use thing.attr vs thing[:attr]?
<soahccc>
you must rather :)
<leitz>
The issue I'm running into is having a lot to learn and trying to simplify my code so I can improve it. Tried the struct thing but it got beyond me.
<soahccc>
I use structs very rarely to be honest, I mostly rather have my own actual class
ta_ has quit [Ping timeout: 240 seconds]
<leitz>
This is just 6, occasionally 7, named Ints.
<soahccc>
I guess another difference is that hash has no key constraints while struct only accepts the values you tell it to, openstruct on the other hand is pretty much like a hash
<soahccc>
kinda depends on what those ints are and how they are used
<leitz>
soahccc, you ever do Role-playing games?
<soahccc>
you mean like creating one?
u0157542 has joined #ruby
<leitz>
Playing one. The Ints are character stats. So mostly "Is it X or higher" or "Show all stats as a string".
cpruitt has joined #ruby
ta_ has joined #ruby
<soahccc>
hmm I personally would go with classes there I guess, especially if you access them in different ways, e.g. comparing to stat sets
jrp93_2 has joined #ruby
<leitz>
No, the stats are part of a class, I don't want a lot of really small new classes where a simple thing like a hash would work.
u0157542 has quit [Ping timeout: 240 seconds]
<soahccc>
it's hard to say without seeing it :) but I guess hash, struct doesn't really matter
cpruitt has quit [Ping timeout: 260 seconds]
yottanami has quit [Quit: Leaving]
jrp93_3 has joined #ruby
mikecmpbll has joined #ruby
jrp93 has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
jrp93_2 has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
immune has quit [Ping timeout: 256 seconds]
raynold has quit [Quit: Connection closed for inactivity]
<leitz>
Yeah, I'm going for the hash. I like simple.
PaulCapestany has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
<soahccc>
I thought I understood ruby metaprogramming but this makes no sense :( I can undef the method via instance_eval (I thought I'm already evaling in the instance) and then define the method, it's not there smh
skweek has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
immune has joined #ruby
cschneid has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
cpruitt has joined #ruby
<soahccc>
in the eval'd file I can override methods if I put them inside instance_eval (despite the fact that I'm already in the instance, I can modify instance options, etc.). If I define methods without instance eval they are there but also for new classes, this is messed up
cpruitt has quit [Ping timeout: 240 seconds]
p0p0pr37 has quit [Remote host closed the connection]
u0157542 has joined #ruby
cpruitt has joined #ruby
<soahccc>
I guess eval is really evil at this point, instance_eval does the job
<soahccc>
leitz: what exactly? there are a few gotchas but like 3 or 4
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
<leitz>
I think I figured part of it out. My goal is to have a module that provides methods. It needs to be able to be required by a class and just used on it's own.
<leitz>
Lemme poke it for a bit and I'll show you what I've come up with.
cadillac_ has quit [Read error: Connection reset by peer]
cpruitt has quit [Ping timeout: 248 seconds]
<leitz>
Ah, soahccc, not sure tap is needed. upp_to_s is only called when the stats (UPP) are going to be displayed. Internally the upp is stored as a hash of ints.
<leitz>
upp_to_s should not actually change anything.
<soahccc>
leitz: I didn't change functionality, I just saw the explicit return and the manual counter (instead of with_index) and wanted to change it :D
dextrey has joined #ruby
<konos5_>
Adding a method in `Module` class should make that method available in all classes but not their singleton classes. Yet even singleton classes can use the new method. Why is this the case?
<leitz>
soahccc, the upp sometimes, rarely, has a 7th int. It is represented with a 789ABC-7 notation.
cpruitt has joined #ruby
u0157542 has quit [Ping timeout: 268 seconds]
<leitz>
konos5_, your code is cleanly written but a bit past my skill. Sorry.
<leitz>
soahccc, if there is no 7th int there is no '-'. I'm a pretty simple coder.
ta_ has quit [Ping timeout: 264 seconds]
cadillac_ has joined #ruby
veduardo has joined #ruby
<soahccc>
konos5_: Do you really want to alter global Module? or is this just pseudo code? If you use an actual own module and include it in class it behaves like you expect
<konos5_>
leitz: no worries..
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
<konos5_>
I'm talking about the global `Module` class
<soahccc>
konos5_: it has to do something with class includes kernel and that bases of module or something complicated like that
<soahccc>
but why do you want to tinker with global module class? :<
cpruitt has quit [Ping timeout: 240 seconds]
<konos5_>
`Class`'s superclass is `Module`. However `BasicObject.singleton_class` has `Class` as its superclass. This means that the rest of inheritance -singleton class- tree (below `BasicObject.singleton_class`) should all "carry" `hello` so that any regular classes should be able to use it.
<konos5_>
I don't want to tinker with `Module`. I just wanna fully understand the Ruby's object model
<konos5_>
I don't want to tinker with `Module`. I just wanna fully understand Ruby's object model
<zleap>
wasn't sure what you were refering to irc or some aspect of ruby
<leitz>
zleap, ah. Give me a moment and I'll post some code, then explain why I think it's cool. :)
<zleap>
k
cpruitt has joined #ruby
AJA4350 has quit [Remote host closed the connection]
AJA4350 has joined #ruby
blackmesa1 has joined #ruby
<leitz>
Okay, to put things in perspective. I like the *idea* of coding, my like is much higher than my skill. Even after years of trying.
<zleap>
sounds like me there
<leitz>
With Ruby I've gotten further than ever before, and enjoy the language. So figuring out something simple like "set a Module method to be used by a class or by itself, with 0 or 1 arguments" is cool for me.
<leitz>
Setting it to be used as a method with an argument broke tests for the class. Not using an arg broke the method as tool.
pastorinni has quit [Remote host closed the connection]
cpruitt has quit [Ping timeout: 252 seconds]
<zleap>
ruby has some nice features
<zleap>
much easier to convert things so you can have .to_i to convert to anj integer
<leitz>
For me it's more the joy of it than the features. I've played with a lot of great languages. Ruby is the first to make me want to read the reference docs.
<zleap>
could be as everything is an object so you have more control over thigns
u0157542 has joined #ruby
<leitz>
While that's cool, I'm really a newbie at OOP. I come from the Bash and C world. And not much C. :)
milardovich has joined #ruby
<zleap>
i am coming from python
<zleap>
sometimes it is the small things like that, that make a language nicer to learn
<leitz>
Python is cool. My ruby code looks a lot like my python code. :)
<zleap>
as long as you understandit, and have good comments it is good
garyserj has joined #ruby
<zleap>
having dome some ruby oncodecademy i understand some of what your code is doing
<leitz>
Most of the stuff I do is only half a step above shell code. My goal for 2018 is to stick with Ruby and move more into OOA/D/P.
cschneid has quit [Ping timeout: 256 seconds]
<garyserj>
is it bad form to write (2,3,4).each {|i| puts i.to_s} like writing 'i' there when i is not the index?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz>
Yeah, I understand most of it. :) That's why i'm pulling the Struct, I just don't need or "get" it.
<garyserj>
sorry I mean [2,3,4]
u0157542 has quit [Ping timeout: 260 seconds]
<leitz>
garysefj, it is better form to write clear code that words. Don't worry about the rest. :)
kapil___ has joined #ruby
cpruitt has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
<leitz>
and that's garyserj . Sorry, my eyes are old.
<zleap>
np
<garyserj>
leitz: you've just done some ruby on codeacademy, I don't think you know what is good form
venmx has quit [Ping timeout: 248 seconds]
<zleap>
i am on codecademy
<zleap>
i would rather learn that way, then read more and understand what i anm reading
cschneid has joined #ruby
<leitz>
I don't recall being on codeacademy, but zleap seems to like it. I've just done some code that's used by multiple large enterprise organizations to save hundreds of thousands of dollars each year. Not in Ruby though.
<zleap>
I run the local tech jam,so we do coding there, it would be nice if there were more coding groups near mek or people with a lot of experience but still able to coneect with newbies to help
<zleap>
sometines gettingit not quite right, but it works is good,trying to get too perfect code can be counterproducive
venmx has joined #ruby
<leitz>
zleap, yeah. IRC seems the best "connection", the local Meetup died off a few years ago.
<leitz>
I like books and help from IRC. Not as big on websites, but that's just not how I learn.
<leitz>
If you find ways to improve it I'll expect feedback. ;)
sanscoeu_ has joined #ruby
<zleap>
loos interesting
<zleap>
looks
<zleap>
yeah i just promote the jam, if people comeand stay they generally keep coming back
cpruitt has quit [Ping timeout: 256 seconds]
<zleap>
i have found a 8 tutorial series on the linux shell, so have videos in order so if anyone at the jam is interested we can watch them
sanscoeur has quit [Ping timeout: 260 seconds]
<havenwood>
garyserj: I've seen objections to `i` in code review for things other than index. We may see it used more to mean Integer, now that Integer is user facing. Descriptive words are best.
<zleap>
yeah good point on not pushing people , doing something on tuesday that will hopefully get peopel interestged in coding
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
garyserj: An aside, but #puts already does #to_s and prints each Array item, so you can just: puts [2, 3, 4]
immune has quit [Ping timeout: 256 seconds]
<leitz>
zleap, I find a "barrier to entry" useful. I love to help people but it takes time. If they aren't really interested then trying to push them spends my time and is frustrating. Much better to have 2 zealots than 20 warm bodies.
justicefries has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
<zleap>
indeed
immune has joined #ruby
<zleap>
i am trying to promote the jam to schools, in that ideally teachers will pass the info on, it is not working
cschneid has quit [Ping timeout: 240 seconds]
<zleap>
slightly different if the kids are intersted but not getting the info passed on
<leitz>
Then let it go. Life is too short. Code your joy and be available.
<zleap>
yeah
<zleap>
i can promote stuff to the pepple at the tech jam, they will bring friends
<leitz>
Personally, i'm looking forward to one year making a Ruby conf and face to face thanking some of the IRC folks for all their help.
<leitz>
Thanking may or may not include adult beverages. :)
<zleap>
well depends on who can attten
<zleap>
do you want kids there or not, it can be good for them, and you but causes more issues
justicefries has left #ruby [#ruby]
<leitz>
Are there local STEM events?
<zleap>
where are you based?
<zleap>
as the tech jam in Paignton is STEM, as is the Exeter Pi jam
<zleap>
software cornwall are a sort of umbrella for all things tech so 1 website aims to bring lots of different groups together , good for promoting to lots of people
<leitz>
Ah, you're UK?
klixto has joined #ruby
<zleap>
for the most part, it is down to individuals like usto get things going, despite the moaning from industry on lack of skills
<zleap>
leitz: yeak UK
<leitz>
You on the Ruby mailing list? A few UK folks are there.
<zleap>
not atm
<zleap>
still too new
<leitz>
I haven't been on that side of the pond in a while.
<leitz>
Join, good stuff.
<zleap>
ok
<zleap>
thanks
<zleap>
codecademy do ruby, rubyonrails and RoR autnenticatoon
<zleap>
authentcation
* leitz
is not a RoR person.
<zleap>
ah, i am not yet, may have a go when this course is complete
<leitz>
Jobs out there if you want it. I do Linux as a trade. Not good enough in Ruby to move careers at matching pay.
<zleap>
eah
<zleap>
i need to watch these 8 videoson the linux shell
<leitz>
Yeah, don't run your RoR on Winderz.
<zleap>
but they are all from youtube, so as I have links it is easier to watch and or share in order
<zleap>
what is winderz, been using Linux as a desktop OS for years, don't need windows :D
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zleap>
i would love to start saying that to more people see their reaction, as as not using facebook prefering decentalised stuff like diaspora
<zleap>
idally share videos with those who want to learn and we use irc to discuss and learn more
u0157542 has joined #ruby
dinfuehr has quit [Ping timeout: 248 seconds]
<zleap>
yeah going backgto the mentoring thingm if you're going to try and help people be prepared, hence the videos
RougeR has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
<leitz>
Setting a time limit, like 90 days, seems to help them and you.
<zleap>
yeah
<zleap>
how do you convince people IRC is good, given it was created in the late 80's and is all text based,
alex`` has joined #ruby
u0157542 has quit [Ping timeout: 248 seconds]
<leitz>
You don't. You read "The Personal MBA" and conform your help to make it a "business". Don't sell IRC, or even Ruby. "Sell" being able to program. Those who want to will overcome the hurdles. Most don't know how old IRC is, anyway.
<zleap>
good point
<zleap>
one of the people i am volunteeringwith wants to teach gaming design with c# and unity, finding it really hard to find peopel who are interested
<zleap>
or will commit
<leitz>
I liked the "Learn C the Hard Way" book because it had video and book. That let you hit most major learning styles.
<leitz>
Understood.
shaman42 has quit [Ping timeout: 256 seconds]
<zleap>
i'll try and apss that on to him, we hav sort of got the idea he can program and wants to help others, it is just finding pepple, i am sure if he was at home and people asked questions via irc / skype or what ever, shared code via github, gist, pastebin then people don't need to go out and use unfamilar hardware to do the course
<leitz>
I just finished Sandi Metz' "99 bottles of OOP" and am applying some of her ideas. fun stuff.
<zleap>
cool
<leitz>
And the tests pass. :)
<zleap>
:)
rabajaj has joined #ruby
gixxer1k has quit [Quit: Leaving]
cschneid has joined #ruby
ta_ has quit [Ping timeout: 256 seconds]
<zleap>
i am not sure if the idea people can self teach scares peopke in education
<zleap>
people
milardovich has joined #ruby
<leitz>
Self education is the only real education. Some get it in college, some just pay money for a title. :(
mtkd has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
<zleap>
so it is better to tech yourself
<leitz>
You only really learn what you teach yourself.
ta_ has joined #ruby
<leitz>
Sometimes you pay for help.
<zleap>
yeah so what are schooksl for
<zleap>
schools
<zleap>
this is what i mean, everything we need to know is online, just need to learn how to look it up, ence i have sorted these videos out
<leitz>
Nowadays US colleges are for money. Not for education. Sad, but true. Some teachers help you learn by motivating, guiding, etc. But the college itself is usually more about money.
<zleap>
our schools here are more for passing tests
<zleap>
primaries are so worried about results on maths and english that other subjects get pushed to one side
<zleap>
maywant to save and watch later if interested
TomyLobo2 has joined #ruby
<leitz>
One of the things Sandi Metz' book mentioned was changing one line of code at a time. While it seems silly, it has really helped me recover when my code blows up in some strange way.
<leitz>
I've read a lot of Seth's work. Good stuff.
<leitz>
I read more, seldom watch.
<zleap>
yes i was at an event back in September helping a young girl and her mum with some pi stuff i advised changing 1 thing at a time
<zleap>
otherwise if it breaks you don't know what broke it, or if it works you are not sure what fixed it
<leitz>
As I said, self-education. I set myself the challenge to convert the Struct to a hash. Just commited the final code, all tests pass.
x77686d has joined #ruby
<zleap>
:)
<leitz>
Though I got out of primary school some time back. :P
<leitz>
Time for a walk and a break.
drewmcmillan has joined #ruby
<zleap>
ok
cpruitt has quit [Ping timeout: 264 seconds]
<zleap>
chat later
<zleap>
thanks :)
immune has quit [Ping timeout: 256 seconds]
cschneid has joined #ruby
TomyLobo has quit [Ping timeout: 256 seconds]
shaman42 has joined #ruby
u0157542 has joined #ruby
venmx has quit [Ping timeout: 256 seconds]
immune has joined #ruby
AX31_A13X has joined #ruby
u0157542 has quit [Ping timeout: 240 seconds]
AxelAlex has quit [Ping timeout: 256 seconds]
zxc_ has joined #ruby
u0157542 has joined #ruby
Bounga has joined #ruby
minimalism has joined #ruby
jottr has joined #ruby
zxc_ has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
meadmoon has joined #ruby
u0157542 has quit [Ping timeout: 256 seconds]
jrp93_3 has quit [Read error: Connection reset by peer]
Bounga has quit [Ping timeout: 256 seconds]
conta has joined #ruby
cschneid has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
bigblind has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 248 seconds]
crankharder has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
moei has joined #ruby
milardovich has joined #ruby
banisterfiend has joined #ruby
cschneid has joined #ruby
milardovich has quit [Ping timeout: 264 seconds]
immune has quit [Ping timeout: 256 seconds]
cschneid has quit [Ping timeout: 268 seconds]
u0157542 has joined #ruby
immune has joined #ruby
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldepandis has joined #ruby
bigblind has joined #ruby
cschneid has joined #ruby
hph^ has joined #ruby
u0157542 has quit [Ping timeout: 248 seconds]
klixto has quit [Quit: Konversation terminated!]
cschneid has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
cschneid has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
cschneid has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
randomstrangerb has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
randomstrangerb has joined #ruby
n0m4d1c has joined #ruby
<zleap>
leitz: is the Atlante lug channel still #ale ?
u0157542 has joined #ruby
<leitz>
zleap, I think so.
<zleap>
ok cool
<leitz>
Not highly active, but there.
<zleap>
i like the structure to what you posted earlier
<leitz>
I'd recommend making your own channel though. Friendly thing to do.
<zleap>
just wondering if my local linux user group would be up for something similar
<zleap>
we were discussing linux training a while back,
<zleap>
got 2 go (food time here0
<zleap>
trying to then relax before the big game, as it is on till early hours
meadmoon has quit [Quit: I am functioning within established parameters.]
<zleap>
my local Am football chairman was disappointed last year (Falcons fan)
bigblind has quit [Ping timeout: 248 seconds]
u0157542 has quit [Ping timeout: 240 seconds]
<zleap>
anyway chat shortly
milardovich has joined #ruby
hph^ has quit [Ping timeout: 240 seconds]
tomphp has quit [Ping timeout: 268 seconds]
cpruitt has joined #ruby
milardovich has quit [Ping timeout: 276 seconds]
immune has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
u0157542 has joined #ruby
immune has joined #ruby
marr123 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
cpruitt has quit [Ping timeout: 240 seconds]
u0157542 has quit [Ping timeout: 248 seconds]
lagooned has joined #ruby
Mia has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
chanqi4444 has joined #ruby
chanqi4444 has left #ruby [#ruby]
cpruitt has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
osvico has quit [Ping timeout: 268 seconds]
RougeR has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 260 seconds]
n0m4d1c has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
bigblind has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
cschneid has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
nowhere_man has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
Bounga has joined #ruby
venmx has joined #ruby
nowhereman_ has quit [Ping timeout: 268 seconds]
cschneid has joined #ruby
n0m4d1c has joined #ruby
fortranwarror has joined #ruby
lagooned has quit [Read error: Connection reset by peer]
troulouliou_div2 has joined #ruby
Bounga has quit [Ping timeout: 256 seconds]
osvico has joined #ruby
<leah2>
anyone can read jp fluently? i need a quick help to read a news article
SynSynack1 has joined #ruby
SynSynack has quit [Ping timeout: 256 seconds]
SynSynack1 is now known as SynSynack
u0157542 has joined #ruby
immune has quit [Ping timeout: 252 seconds]
ifctj has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
u0157542 has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
mtkd has joined #ruby
immune has joined #ruby
milardovich has joined #ruby
cpruitt has joined #ruby
blackmesa1 has quit [Quit: WeeChat 2.0.1]
<garyserj>
say I make a variable I set in irb, blah={} how do I undefine the variable blah, so that if I type blah I get undefined local variable?
milardovich has quit [Ping timeout: 264 seconds]
danielpclark has joined #ruby
<nchambers>
/ 11
mozzarella has quit [Remote host closed the connection]
<prutheus>
mattwc: it works all except the item filters, same behavior with rebay gem, so what am i doing wrong?
white_lilies has joined #ruby
<mattwc>
prutheus: both those gems haven't been updated in years, if I was to guess, I'd say over the last 5 years, ebay updated their api
milardovich has quit [Ping timeout: 256 seconds]
<prutheus>
Ok, but do you know a gem which is recent?
<prutheus>
i cant find others
cpruitt has quit [Ping timeout: 248 seconds]
<prutheus>
mattwc: you think ebayr would work?
<mattwc>
I don't know, if ebay changed their api probably not
<craysiii>
morning/day/night, has anyone pulled the numeric stuff (#days, #hours, etc) from rails and put it in its own gem?
<mattwc>
ebayr does seem less abandoned though
<mattwc>
craysiii: most of that stuff exists as active support
white_lilies has quit [Ping timeout: 248 seconds]
cpruitt has joined #ruby
<craysiii>
yeah I just dont feel like pulling in all of activesupport for this one feature, thanks though
<craysiii>
maybe i will do something similar
randomstrangerb has quit [Ping timeout: 240 seconds]
randomstrangerb has joined #ruby
A124 has quit [Quit: '']
<prutheus>
mattwc: I even cant login with ebayr, mhhh, what does it want from me?
<mattwc>
prutheus: how am I supposed to know?
white_lilies has joined #ruby
x77686d has quit [Quit: x77686d]
u0157542 has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
raynold has joined #ruby
tomphp has joined #ruby
<prutheus>
mattwc: ebayr is also not working ... what should I try now?
<craysiii>
lol
<craysiii>
maybe try to write your own api wrapper?
white_lilies has quit [Ping timeout: 248 seconds]
<mattwc>
prutheus: I'm just throwing out random examples, the first two libraries are 5 years old and haven't been touched in 5 years, the fact they even worked is a bit surprising
<prutheus>
ok
u0157542 has quit [Ping timeout: 256 seconds]
AX31_A13X has quit [Ping timeout: 240 seconds]
A124 has joined #ruby
cpruitt has quit [Read error: Connection timed out]
white_lilies has joined #ruby
ur5us has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
cschneid has quit [Ping timeout: 265 seconds]
Mia has quit [Quit: Leaving]
<prutheus>
mattwc: ebayr works, but is not supporting the finding api ...
<mattwc>
at this point I'd just write my own api wrapper
cpruitt has quit [Ping timeout: 256 seconds]
milardovich has joined #ruby
ur5us has quit [Remote host closed the connection]
<prutheus>
according to here, it should be right, yes?
<mattwc>
based on my reading of their api docs yes
Bounga has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
immune has quit [Ping timeout: 264 seconds]
white_lilies has joined #ruby
u0157542 has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
marr has joined #ruby
cdg has joined #ruby
Bounga has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
bigblind has joined #ruby
nowhereman has quit [Disconnected by services]
white_lilies has quit [Ping timeout: 256 seconds]
ozzloy has quit [Ping timeout: 240 seconds]
u0157542 has quit [Ping timeout: 248 seconds]
nowhere_man has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
u0157542 has joined #ruby
immune has joined #ruby
bigblind has quit [Ping timeout: 248 seconds]
u0157542 has quit [Ping timeout: 240 seconds]
dextrey has quit [Ping timeout: 268 seconds]
rabajaj has quit [Remote host closed the connection]
<prutheus>
mattwc: back to rebay gem, which is working fine except with itemfilter, i am not really a ruby pro yet, could you pelase check if itemfilters are supported by that gem?
<mattwc>
it looks like if its a param they'd send the filter in the request
mtkd has quit [Ping timeout: 256 seconds]
mtkd has joined #ruby
<prutheus>
what do you mean, i do not understand
<mattwc>
it looks like they support it
white_lilies has joined #ruby
ifctj has quit [Ping timeout: 256 seconds]
guille-moe has joined #ruby
cschneid has quit [Ping timeout: 264 seconds]
cschneid has joined #ruby
cpruitt has quit [Read error: Connection timed out]
klixto has joined #ruby
white_lilies has quit [Ping timeout: 256 seconds]
nicesignal has quit [Ping timeout: 256 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
white_lilies has joined #ruby
<prutheus>
But how do I specify it in the params ?