despai has quit [Quit: This computer has gone to sleep]
shakes has quit [Quit: Leaving]
browndawg has quit [Ping timeout: 255 seconds]
dc4 has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
modlin has joined #ruby
ResidentBiscuit has quit []
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
modlin has quit [Quit: Konversation terminated!]
modlin has joined #ruby
cpruitt has quit [Quit: cpruitt]
agent_white is now known as agent_7
charliesome has joined #ruby
cschneid_ has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
unreal has joined #ruby
hutch34 has joined #ruby
JeanCarloMachado has joined #ruby
hahuang61 has joined #ruby
gix has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
gix has joined #ruby
csk157 has joined #ruby
braincrash has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
csk157 has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
stevenhong has quit [Remote host closed the connection]
QoQOoO has quit []
QoQOoO has joined #ruby
modlin has quit [Quit: Konversation terminated!]
Derperperd has joined #ruby
dc4 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
stevenhong has joined #ruby
EV3RYDAYPR0GRESS has quit [Ping timeout: 240 seconds]
snath has joined #ruby
stevenhong has quit [Ping timeout: 260 seconds]
naprimer_2 has quit [Ping timeout: 240 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
raul782 has quit [Remote host closed the connection]
raul782 has joined #ruby
agent_7 is now known as agent_white
aryaching has joined #ruby
aryaching_ has quit [Ping timeout: 240 seconds]
naprimer_2 has joined #ruby
snath has left #ruby ["Leaving"]
TheWhip has quit [Remote host closed the connection]
stevenhong has joined #ruby
stevenhong has quit [Ping timeout: 260 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stevenhong has joined #ruby
patarr has joined #ruby
dc4 has quit [Quit: WeeChat 1.4]
jdm has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Quit: Leaving...]
yfeldblum has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
yfeldblum has joined #ruby
tlahtoani has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has joined #ruby
raspado has joined #ruby
djbkd has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
braincrash has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
Cohedrin has joined #ruby
Sammichmaker has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
JeanCarloMachado has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
tau has quit [Remote host closed the connection]
braincrash has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
jdm has joined #ruby
stevenhong has quit [Remote host closed the connection]
Derperperd has quit [Ping timeout: 260 seconds]
stevenhong has joined #ruby
raspado has quit [Remote host closed the connection]
raspado has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
lx4 has quit [Quit: Connection closed for inactivity]
benlieb has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
raul782 has quit [Remote host closed the connection]
Tech has joined #ruby
stevenhong has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 260 seconds]
stevenhong has joined #ruby
hahuang61 has joined #ruby
jose_leeto has quit [Quit: Leaving.]
stevenhong has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
Channel6 has joined #ruby
Lyubo1 has joined #ruby
cschneid_ has joined #ruby
stevenhong has joined #ruby
pilne has quit [Quit: Quitting!]
hahuang61 has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
Tech has quit [Quit: Leaving]
cschneid_ has quit [Ping timeout: 240 seconds]
nowhereman has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Anonymoose2 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
reverberations has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
JeanCarloMachado has quit [Ping timeout: 240 seconds]
saneax is now known as saneax-_-|AFK
s0l__ has quit [Ping timeout: 252 seconds]
stevenhong has quit [Remote host closed the connection]
s0l__ has joined #ruby
JeanCarloMachado has joined #ruby
stevenhong has joined #ruby
marchelzo has joined #ruby
<marchelzo>
hey ruby family
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
pawnbox has joined #ruby
jgnagy has quit [Remote host closed the connection]
govg has quit [Ping timeout: 240 seconds]
govg has joined #ruby
TheWhip has joined #ruby
JeanCarloMachado has quit [Ping timeout: 260 seconds]
bocaneri has joined #ruby
JeanCarloMachado has joined #ruby
djbkd_ has joined #ruby
stevenhong has quit [Remote host closed the connection]
ruby-lang822 has joined #ruby
cgibsonmm has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
stevenhong has joined #ruby
cgibsonmm has quit [Client Quit]
jamesaxl has joined #ruby
jamesaxl has quit [Remote host closed the connection]
djellemah_ has joined #ruby
ych has joined #ruby
jamesaxl has joined #ruby
vuoto has joined #ruby
raspado has joined #ruby
JeanCarloMachado has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
mr_poopy_butthol has joined #ruby
<mr_poopy_butthol>
Hello?
<mr_poopy_butthol>
:(
<marchelzo>
hello
<mr_poopy_butthol>
:)
<mr_poopy_butthol>
:-)
<mr_poopy_butthol>
:--)
<mr_poopy_butthol>
:---)
<marchelzo>
your nickname is uhhh .... not so nice
<mr_poopy_butthol>
8----)
<mr_poopy_butthol>
8======D
raspado has quit [Remote host closed the connection]
mr_poopy_butthol has quit [Client Quit]
raspado has joined #ruby
stevenhong has quit [Remote host closed the connection]
<synstack>
Should I be using FFI module, or Fiddle?
<dminuoso>
synstack: Fiddle if its enough.
<dminuoso>
FFI has some neat extras tho.
renchan has joined #ruby
raspado has quit [Ping timeout: 240 seconds]
<synstack>
thanks
<baweaver>
!troll mr_poopy_butthol
JeanCarloMachado has quit [Ping timeout: 255 seconds]
nullfxn has joined #ruby
stevenho_ has joined #ruby
JeanCarloMachado has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
patarr has joined #ruby
stevenhong has joined #ruby
djellemah_ has quit [Quit: Leaving]
stevenho_ has quit [Ping timeout: 240 seconds]
djellemah_ has joined #ruby
chouhoulis has joined #ruby
stevenho_ has joined #ruby
stevenhong has quit [Read error: Connection reset by peer]
stevenho_ has quit [Remote host closed the connection]
stevenhong has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patarr has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
JeanCarloMachado has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
JeanCarloMachado has joined #ruby
nadir has joined #ruby
ifctj has joined #ruby
ins64 has joined #ruby
Qchmqs has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
bruce_lee has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Derperperd has joined #ruby
JeanCarloMachado has quit [Ping timeout: 268 seconds]
marchelzo has quit [Quit: marchelzo]
Fire-Dragon-DoL has quit [Max SendQ exceeded]
Fire-Dragon-DoL has joined #ruby
tusharmalik has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
tusharmalik has quit [Max SendQ exceeded]
Derperperd has quit [Ping timeout: 240 seconds]
tusharmalik has joined #ruby
Qchmqs has quit [Quit: Konversation terminated!]
Qchmqs has joined #ruby
lxsameer has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
manjaro-kde5- has joined #ruby
Qchmqs has quit [Quit: Konversation terminated!]
Qchmqs has joined #ruby
manjaro-kde5- has quit [Remote host closed the connection]
rippa has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
ych has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
charliesome has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
ecuanaso has joined #ruby
railswebdev has joined #ruby
ifctj has quit [Ping timeout: 268 seconds]
vuoto has quit [Remote host closed the connection]
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
djbkd_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
elifoster has quit [Ping timeout: 240 seconds]
aryaching has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
esObe has joined #ruby
stevenhong has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
dawidof_ has joined #ruby
TheWhip has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
dawidof_ has quit [Client Quit]
dawidof has joined #ruby
stevenhong has joined #ruby
TheWhip has quit [Ping timeout: 240 seconds]
LoneHerm_ has joined #ruby
hutch34 has joined #ruby
stevenhong has quit [Ping timeout: 240 seconds]
stevenhong has joined #ruby
Snickers has joined #ruby
stevenhong has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synthbread has joined #ruby
al2o3-cr has joined #ruby
<Synthbread>
I'm using a gem that prints some warnings when I use it
<Synthbread>
a bit of a hack, but I want to silence these
<Synthbread>
W, [2017-02-18T01:08:02.153718 #9214] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#body defined at /home/max/.gem/ruby/2.4.0/gems/bitbucket_rest_api-0.1.7/lib/bitbucket_rest_api/result.rb:54. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
<Synthbread>
is there a way I can do this?
tildes has joined #ruby
al2o3-cr_ has quit [Ping timeout: 255 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
grh has joined #ruby
<elomatreb>
Synthbread: If it uses the builtin warning system you could try passing the ruby command -W0
<elomatreb>
But that will silence all warnings
montanonic has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
enilsen16 has joined #ruby
ruby-lang822 has quit [Ping timeout: 260 seconds]
<Synthbread>
elomatreb: hm, that seems to still display the errors
enilsen16 has quit [Client Quit]
yfeldblum has quit [Remote host closed the connection]
enilsen16 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TheWhip has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
blackwind_123 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
djellemah_ has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
yeticry_ has joined #ruby
vuoto has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
Snickers has quit [Quit: Snickers]
cbasites has quit []
aryaching has joined #ruby
michael_ has joined #ruby
michael_ is now known as Tinekrlad
Tinekrlad is now known as Tinker
Tinker is now known as Tinkerlad
patarr has joined #ruby
montanonic has quit [Ping timeout: 268 seconds]
<Tinkerlad>
Hi guys, is here a good place to ask about an issue when trying to install a gem?
mikecmpbll has joined #ruby
davezd has joined #ruby
felltir has joined #ruby
felltir has quit [Remote host closed the connection]
felltir has joined #ruby
milardovich has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
Macaveli has joined #ruby
djellemah_ has joined #ruby
<Tinkerlad>
Well my problem is that when trying to install a gem, it's calling rake21 which doenst exist/can't be found on my path. Rake itself is installed but its command is rake not rake21
<Tinkerlad>
So what am I doing wrong :P
felltir has quit [Ping timeout: 255 seconds]
felltir has joined #ruby
djellemah_ has quit [Remote host closed the connection]
djellemah_ has joined #ruby
jcao219 has joined #ruby
blackmesa has joined #ruby
jgnagy has joined #ruby
Guest10681 has joined #ruby
Derperperd has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
felltir has quit [Remote host closed the connection]
Snickers has joined #ruby
grh has quit [Remote host closed the connection]
felltir has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
Fernando-Basso has joined #ruby
felltir has quit [Remote host closed the connection]
felltir has joined #ruby
dn` has quit [Quit: dn`]
dn` has joined #ruby
felltir has quit [Ping timeout: 255 seconds]
lenwood has joined #ruby
milardovich has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
ruby-lang109 has joined #ruby
milardovich has joined #ruby
jdm has quit [Remote host closed the connection]
tomphp has joined #ruby
ruby-lang109 has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 268 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
teclator has quit [Remote host closed the connection]
enilsen16 has quit [Read error: Connection reset by peer]
patarr has quit [Ping timeout: 260 seconds]
enilsen16 has joined #ruby
vuoto has quit [Remote host closed the connection]
maattdd has joined #ruby
stevenho_ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
st0mar has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
Guest10681 has quit [Remote host closed the connection]
szulak has joined #ruby
maattdd_ has quit [Ping timeout: 240 seconds]
nhhc has joined #ruby
dionysus69 has joined #ruby
byte512 has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
nanoguin has quit [Quit: WeeChat 1.0.1]
stevenho_ has quit [Remote host closed the connection]
st0mar has quit [Read error: Connection reset by peer]
stevenhong has joined #ruby
st0mar has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
milardovich has quit []
hutch34 has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
maattdd_ has joined #ruby
maattdd__ has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
maattdd_1 has joined #ruby
maattdd has quit [Ping timeout: 255 seconds]
redhedded1 has joined #ruby
maattdd_ has quit [Ping timeout: 260 seconds]
maattdd_1 has quit [Read error: Connection reset by peer]
maattdd__ has quit [Ping timeout: 240 seconds]
ar1a has joined #ruby
stevenhong has quit [Ping timeout: 260 seconds]
maattdd_1 has joined #ruby
<apeiros>
arup_r: you could turn the .foreach into an Enumerator and test with peek at the beginning and then iterate it
millerti has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
<arup_r>
apeiros: hm. I;ll try it.
stevenhong has joined #ruby
blackmesa has quit [Quit: WeeChat 1.6]
leitz has joined #ruby
harfangk has joined #ruby
_sfiguser has joined #ruby
<leitz>
Are you not supposedt to set constants in methods?
maattdd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
szulak has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
you are supposed to not set constants in methods. ruby even tells you so if you try.
ar1a has left #ruby ["WeeChat 1.6"]
<leitz>
Hrmm....okay. I put the constants there as only that method used them. time to lowercase.
<leitz>
Actually, I'm copying from Hal Fulton's "The Ruby Way" and trying to figure out Tk.
maattdd_1 has quit [Ping timeout: 268 seconds]
<soahccc>
Synthbread: It's hashie (propably included by omniauth).. either downgrade hashie or update omniauth
lenwood has quit [Quit: Konversation terminated!]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
<leitz>
Also, to clarify, the book isn't wrong, I was taking a sample program and putting much of it into a method.
yokel has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
maattdd_ has joined #ruby
<Synthbread>
soahccc: yeah! I actually did that a couple hours ago and it worked great
<Synthbread>
I'm on 3.4.6 now without problems
stevenhong has quit [Ping timeout: 260 seconds]
<soahccc>
Synthbread: hashie implemented a new warning and a version later or so they added a way for a gem to disable the warnings for itself... omniauth already fixed it and others may have too
jamesaxl_ has joined #ruby
jamesaxl has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
maattdd has quit [Ping timeout: 240 seconds]
maattdd has joined #ruby
maattdd_ has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
tomphp has joined #ruby
arup_r has quit []
nofxxx has quit [Ping timeout: 255 seconds]
jamesaxl_ has quit [Read error: Connection reset by peer]
jamesaxl_ has joined #ruby
vuoto has joined #ruby
lenwood has joined #ruby
Snickers has quit [Quit: Snickers]
cschneid_ has joined #ruby
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
szulak has joined #ruby
Snickers has quit [Client Quit]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Derperperd has joined #ruby
Snickers has quit [Client Quit]
cschneid_ has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
Snickers has quit [Client Quit]
lenwood has quit [Ping timeout: 240 seconds]
Snickers has joined #ruby
Snickers has quit [Client Quit]
lenwood has joined #ruby
Snickers has joined #ruby
Snickers has quit [Client Quit]
lenwood has quit [Client Quit]
Snickers has joined #ruby
lenwood has joined #ruby
Snickers has quit [Client Quit]
Snickers has joined #ruby
millerti has joined #ruby
Snickers has quit [Client Quit]
nadir has quit [Quit: Connection closed for inactivity]
Derperperd has quit [Ping timeout: 260 seconds]
Synthbread has quit [Remote host closed the connection]
bkxd has joined #ruby
stevenhong has joined #ruby
agit0 has joined #ruby
stevenhong has quit [Remote host closed the connection]
stevenhong has joined #ruby
* leitz
feels happy, just pulled sqlite data into a Tk window.
tmaekawa_ has joined #ruby
stevenhong has quit [Ping timeout: 268 seconds]
renchan has quit [Ping timeout: 260 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
hahuang61 has joined #ruby
vuoto has quit [Quit: Lost terminal]
hahuang61 has quit [Ping timeout: 260 seconds]
tmaekawa_ has quit [Remote host closed the connection]
jcao219 has joined #ruby
despai has joined #ruby
ar1a has joined #ruby
<ar1a>
in this rails tutorial, they are assigning a variable like "@article = foobarblah"
<ar1a>
what's the @ mean?
enilsen16 has quit [Quit: enilsen16]
bkxd has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
esObe has quit [Remote host closed the connection]
mikecmpbll has quit [Read error: Connection reset by peer]
esObe has joined #ruby
hutch34 has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
lenwood has quit [Ping timeout: 255 seconds]
anisha has quit [Quit: This computer has gone to sleep]
eb0t has quit [Quit: WeeChat 1.4]
tusharmalik has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggherdov__ has quit [Changing host]
ggherdov__ has joined #ruby
ggherdov__ has joined #ruby
ggherdov__ is now known as ggherdov
browndawg has quit [Quit: Leaving]
browndawg has joined #ruby
TheWhip has quit [Remote host closed the connection]
browndawg has quit [Client Quit]
browndawg has joined #ruby
agent_white has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
<adaedra>
ar1a: @variables are instance variables
<adaedra>
?variables
<ruby[bot]>
Ruby knows $globals, @@class_variables, @instance_variables, local_variables and Constants
<andywww>
they seem to be direct equivelents and I’ve seen the second one done before for returning API client objects that need building with api keys set up etc
<andywww>
are these methods a preference thing? or is there a way it “should” be done?
<andywww>
it seems the second has no benefit over the initialize method
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
maattdd_ has joined #ruby
nanoz has left #ruby [#ruby]
<Papierkorb>
I think the second one is harmful, in that the instance variables are now (as far the initial state is concerned) are nilable. andywww, you can also do something like `def initialize(first_name = DEFAULT_FIRST, last_name = DEFAULT_LAST) .. end`. It's hard to say for an example class like that, but maybe I'd use keyword arguments instead.
<andywww>
what do you mean by nilable?
maattdd has quit [Ping timeout: 240 seconds]
<Papierkorb>
A variable which can also be `nil`. In the second example, if you do `Person.new`, `person.first_name` and `person.last_name` would get you `nil`. If that makes sense in your case that's ok (nil is saying "Nothing's here"), but if it doesn't, it's a great way to introduce subtle bugs
<andywww>
gotcha
<andywww>
thanks for that
<Papierkorb>
andywww: Imagine you, or someone else, in 3 months. You need a Person. So you type `Person.new`, because that's how it is for all other objects. You set the first name and forget about the last name. If you're lucky, it'll throw an error right away. Less lucky and it makes its way into a database, causing issues months or years later
jameser has joined #ruby
jameser has quit [Client Quit]
Tinkerlad has quit [Ping timeout: 260 seconds]
<Papierkorb>
andywww: I just saw you also asked the same in #RubyOnRails too. This is okay, but please tell everyone in your question that you cross-posted this question from there (or in #RoR from here)
djbkd_ has quit [Remote host closed the connection]
<andywww>
okidoke
charliesome has joined #ruby
<andywww>
I have one more question but this will take a bit of time to prepare
<andywww>
one sec
biberu has joined #ruby
maattdd_ has quit [Read error: Connection reset by peer]
Kahraman has quit [Read error: Connection reset by peer]
Kahraman has joined #ruby
despai has quit [Read error: Connection reset by peer]
<andywww>
I want to wrap a providers API and they have many endpoints, ive seen it done like this before
<andywww>
and i can’t see why this would be beneficial over the option at the bottom
<andywww>
is the first a common pattern?
lxsameer has quit [Ping timeout: 240 seconds]
kiltzman has quit [Ping timeout: 264 seconds]
<Papierkorb>
I've seen it sometimes. Though for api clients, there may be a global instance of the Client, and the class methods are just forwarded to the global instance. This is convenience, but no great benefit. The benefit is that if you're in the client, you can pass on e.g. credentials to the endpoint class. It's also nice to decouple things: Your FooAPI classes are important to your implementation, but I as Client user don't care about how you do it. I
<Papierkorb>
only know about the client, so doing `client.foo` sounds sane. This is also much better in terms of testing
eminencehc has joined #ruby
<Papierkorb>
For tests, in the simplest case, you could mock the `client.foo` method, where mocking a classes `new` isn't fun at all (it's rather ugly and a last resort)
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eminencehc has quit [Client Quit]
<leitz>
The entry field populates with pulled data. I'm trying to be able to edit that data and then save it back to the database.
despai has quit [Ping timeout: 260 seconds]
<leitz>
The db SELECT and UPDATE work, but I chaven't figured out how to update the options hash that gets moved around.
hahuang61 has quit [Ping timeout: 260 seconds]
TheWhip has joined #ruby
<andywww>
Papierkorb: many thanks, gonna keep reading.
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
<Papierkorb>
andywww: There are many things to consider. But if you want to read something instead of tinkering, the SOLID principle is a decent starting point: https://robots.thoughtbot.com/back-to-basics-solid It's old, and doesn't apply 100% to ruby, but many other common patterns borrow from it or expand upon it
<mmint>
I see many style guides disfavor `and` and `or` in favor of `&&` and `||`, but I'm having trouble finding a rationale other than its "not being worth it". Can anyone explain why?
LoneHerm_ has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 260 seconds]
lenwood has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #ruby
felltir has quit [Remote host closed the connection]
felltir has joined #ruby
lenwood has joined #ruby
learning has joined #ruby
<lupine>
the operator precedence rules for `and` and `or` are weird
<Papierkorb>
mmint: Besides consistency (use the same thing for the same task), `and` and `or` have surprising operator precedence
<lupine>
every time I see it in code, I shudder and replace it
<Papierkorb>
mmint: surprising in that they're vastly different to && and ||
<Papierkorb>
mmint: So that can easily trip you up
felltir has quit [Ping timeout: 255 seconds]
gdonald has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
<Papierkorb>
mmint: The first is parsed as `puts ("a" && "b")`, the second is `(puts "a") and "b"`
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<mmint>
Interesting. Thanks.
<Papierkorb>
This becomes clearer when you use `p` instead of `puts`. Try it in a local irb/pry session and see yourself (Don't wanna further spam #ruby)
User458764 has joined #ruby
futilegames has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
szulak has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<markholmes>
I call Book.print, which iterates over a book array. The book array holds card objects. the Card class has a print method. in Book.print, I want to iterate over the book array and call the card.print method. any ideas?
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
learning has quit []
<adaedra>
What is the problem?
mlehrer_ has quit [Ping timeout: 268 seconds]
millerti has joined #ruby
tristanp_ has quit [Remote host closed the connection]
<markholmes>
well, right now it's just printing the card's object id, for example: #<Card:0x0055b1edf038a0>
psychicist__ has quit [Ping timeout: 240 seconds]
fredolinhares has quit [Quit: WeeChat 1.6]
agent_white has quit [Ping timeout: 240 seconds]
esObe has joined #ruby
krish300_ has joined #ruby
<krish300_>
hi
<krish300_>
I have query regarding ruby-sql, could someone help me with that ?
hahuang61 has joined #ruby
<krish300_>
I have query regarding ruby-sql, could someone help me with that ?
tau has joined #ruby
<krish300_>
I have query regarding ruby-sql, could someone help me with that ?
<markholmes>
krish300_: please don't spam the channel
<markholmes>
:)
<krish300_>
sorry! I was looking for help, should I check elsewhwere?
<markholmes>
no, this is a good place. it just might take some time for someone to be able to help you
ifctj has quit [Ping timeout: 260 seconds]
<markholmes>
sending a message every minute won't increase the odds of someone answering, though
User458764 has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
<krish300_>
oh, I am naive with the chat rooms. Thought there is no one in the room and when someone joined I sent a msg apologies!
<krish300_>
:)
<markholmes>
all good
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
ecuanaso has joined #ruby
futilegames has quit [Ping timeout: 240 seconds]
lenwood has quit [Ping timeout: 260 seconds]
<havenwood>
krish300_: It's best to just go ahead and ask the question, and if someone can answer they will!
futilegames has joined #ruby
<krish300_>
I have a table "Words" and I want to insert a new word, iff that isn't already there
Cohedrin has joined #ruby
<krish300_>
2 options, 1.excute a select from my program and see if there are any results and if there are no results then insert 2. write a procedure to insert if not already there so my doubt is, what is the right pacle for this check db or the program ? Sqlite
LoneHermit has quit [Ping timeout: 260 seconds]
<lupine>
krish300_: will you ever change from sqlite to another database?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<lupine>
sqlite is truly the best database of all
<lupine>
just make sure you've got an appropriate constraint
<krish300_>
no, I wish to know what is right design choice, doing "INSERT OR IGNORE ..." in database or writing the ogin in ruby
rakm has joined #ruby
<krish300_>
*logic
DTZUZU has quit [Read error: Connection reset by peer]
__Yiota has quit [Client Quit]
ifctj has joined #ruby
<krish300_>
:lupine any clue clue on, "what is done in a real world case".. will the is_already_there? check happen in ruby or in the sql statement itself
cagmz has joined #ruby
<lupine>
in sql
<lupine>
which is why the SQL statement changes
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lupine>
"insert or ignore" is better if you can rely on it
<lupine>
that said, I think even postgresql has an equivalent these days, so you should be good
<krish300_>
okay
futilegames has quit [Quit: futilegames]
markholmes has quit [Quit: Leaving]
<krish300_>
thanks for the help
<krish300_>
:)
krish300_ has left #ruby [#ruby]
DTZUZU has joined #ruby
montanonic has joined #ruby
lax222222 has joined #ruby
nhhc has quit [Quit: Leaving]
Lyubo1 has joined #ruby
luckyruby has joined #ruby
pskosinski_ has quit [Quit: No Ping reply in 180 seconds.]