<naftilos76>
isn't the 'name' supposed to the attribute of the Customer struct?
<naftilos76>
i did the same thing in my code
<_phaul>
sorry I have to dash
<naftilos76>
ok no worries
mikecmpbll has joined #ruby
sandstrom has joined #ruby
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
imtravis has quit [Ping timeout: 268 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fernando-Basso has joined #ruby
Intelo has joined #ruby
Jonopoly has joined #ruby
drincruz has quit [Read error: Connection reset by peer]
laif has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 265 seconds]
queip has joined #ruby
lxsameer has joined #ruby
phaul_ has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
laif has quit [Ping timeout: 246 seconds]
shoto_ has quit [Quit: Leaving]
akemhp has quit [Ping timeout: 246 seconds]
queip has quit [Ping timeout: 250 seconds]
laif has joined #ruby
Intelo has quit [Ping timeout: 246 seconds]
<phaul_>
/
jenrzzz has joined #ruby
queip has joined #ruby
BH23 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
laif_ has joined #ruby
laif has quit [Ping timeout: 245 seconds]
laif_ has quit [Client Quit]
queip has quit [Ping timeout: 250 seconds]
Fernando-Basso has quit [Ping timeout: 250 seconds]
queip has joined #ruby
arup_r has joined #ruby
ta has quit [Quit: WeeChat 2.5]
ta has joined #ruby
ta has quit [Client Quit]
ta has joined #ruby
Fernando-Basso has joined #ruby
yann-kaelig has joined #ruby
jenrzzz has joined #ruby
queip has quit [Ping timeout: 245 seconds]
Intelo has joined #ruby
queip has joined #ruby
dionysus69 has joined #ruby
iNs has quit [Remote host closed the connection]
imtravis has joined #ruby
queip has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
dellavg has left #ruby ["Ex-Chat"]
queip has joined #ruby
iNs has joined #ruby
imtravis has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
alfiemax has quit [Remote host closed the connection]
drincruz has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Navred has quit [Remote host closed the connection]
Nicmavr has joined #ruby
jenrzzz has joined #ruby
queip has quit [Ping timeout: 276 seconds]
imtravis has joined #ruby
imtravis has quit [Ping timeout: 240 seconds]
queip has joined #ruby
waterbrother has quit [Quit: Quit]
<tankf33der>
o/
<tankf33der>
Target is ruby 2.7.0dev (2019-11-15T07:50:40Z master fa7618e4c1) [sparc-solaris2.11]
<tankf33der>
PASS all 1409 tests
<tankf33der>
oki.
<barg>
from what I understand, the requre keyword is used with modules, is that correct? so when a gem is installed e.g. sinatra, are all the modules of that gem imported as if they are part of your project, so that require 'sinatra' then imports or uses the sinatra module?
cthulchu_ has joined #ruby
akemhp has joined #ruby
<phaul_>
barg: not quite. require loads ruby files from your load paths
rrichardsr3 has joined #ruby
<phaul_>
&>> $LOAD_PATH
<rubydoc>
# => ["/usr/lib/ruby/site_ruby/2.6.0", "/usr/lib/ruby/site_ruby/2.6.0/x86_64-linux",... check link for more (https://carc.in/#/r/80wl)
cthu| has quit [Ping timeout: 250 seconds]
<phaul_>
if the gem provides a ruby file with the appropriate path then in effect gem install sinatra makes require 'sinatra' work
<phaul_>
but that's not a hard guarantee
jenrzzz has quit [Ping timeout: 245 seconds]
<phaul_>
gem install adds the gem lib ruby file locations to the $LOAD_PATH
<phaul_>
ruby Modules is sort of orthogonal to all this. that is units introduced by the module keyword
Omnilord has quit [Quit: Leaving]
ravenousmoose has joined #ruby
<Bish>
does somebody have cool idea how to convert hashes with different counts of keys into csv?
<Bish>
barg: ruby has pseudo modules, no real ones
ravenousmoose has quit [Ping timeout: 250 seconds]
<Bish>
module Yep; require 'file'; end won't automagicially result in Yep::FileModule
ravenousmoose has joined #ruby
howdoi has joined #ruby
ravenousmoose has quit [Ping timeout: 252 seconds]
rrichardsr3 has quit [Quit: He who dares .... wins.]
queip has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
queip has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
rwb has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
<barg>
is gems in any way dependent or involving modules?
<barg>
and if i want to learn about gems, modules and require... then in what order should i learn them?
AJA4350 has joined #ruby
bkuhlmann has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
imtravis has joined #ruby
drincruz has quit [Ping timeout: 250 seconds]
tpanarch1st_ has joined #ruby
<barg>
(and when I say modules, I mean like the module keyword).. thanks.
<naftilos76>
ok got it to work but it seems that i have to use Curses instead of @window
KeyJoo has joined #ruby
code_zombie has joined #ruby
dinfuehr_ has quit [Ping timeout: 246 seconds]
mdesantis has quit [Quit: Leaving]
dinfuehr has joined #ruby
akem__ has joined #ruby
jenrzzz has joined #ruby
zapata has quit [Ping timeout: 250 seconds]
akemhp_ has quit [Read error: Connection reset by peer]
akemhp_ has joined #ruby
zapata has joined #ruby
AJA4351 has joined #ruby
akem__ has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Ping timeout: 276 seconds]
AJA4351 is now known as AJA4350
poontangmessiah has quit [Remote host closed the connection]
sandstrom has quit [Quit: My computer has gone to sleep.]
<leftylink>
so is it time to make some really bad joke like "Curses, foiled again" ?
dviola has joined #ruby
<leftylink>
eh... I guess the window of opportunity to make such a joke has passed long ago
<leftylink>
oh well, good try
spacesuitdiver has joined #ruby
KeyJoo has quit [Quit: KeyJoo]
Intelo has joined #ruby
ravenousmoose has joined #ruby
akemhp has joined #ruby
ravenousmoose has quit [Ping timeout: 250 seconds]
Jonopoly has quit [Quit: WeeChat 2.5]
akemhp_ has quit [Ping timeout: 240 seconds]
swyper has joined #ruby
<swyper>
hey guys
<swyper>
hi havenwood
<barg>
phaul_: thanks
<havenwood>
swyper: Did you get a salt,salt,fish solution you like?
<swyper>
no :P
<swyper>
this was the intern interview for pagerduty btw if anyone cares. lol
ellcs has quit [Remote host closed the connection]
<adam12>
swyper: Toronto office I'm presuming?
<swyper>
yeah
<swyper>
but I messed up the last question pretty bad so I have no chance of getting it which sucks cause it was my dream company lol
<havenwood>
swyper: a lot of interviews are intended to test your limits, so finding your limit doesn't necessarily mean a fail!
<swyper>
fair :D
gix has joined #ruby
<havenwood>
swyper: even the best coders I know fail interviews, since interviews are so very subjective and arbitrary
davidw has joined #ruby
<swyper>
blah its out of my hands now whatever happens happens I guess >_>
<swyper>
all I can do is learn from it and find out the answer to the question I missed so if something similar ever comes up again I am prepared :D
Intelo has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
akemhp has quit [Ping timeout: 240 seconds]
<leftylink>
some interviews I don't even know what I did wrong
<havenwood>
swyper: I'd suggest trying out tests! See if they'll substantially speed up your feedback loop without a penalty. (Also way better for getting help to have failing test cases.)
<havenwood>
swyper: Just create an ingredient.rb file with those of ^ contents and run the test with: ruby ingredients.rb
<havenwood>
swyper: The test fails!
<swyper>
okay sweet
<swyper>
thanks havenwood
<swyper>
ive saved the link ill do it once im done grinding out calc 2 got a midterm coming up soon :P
<havenwood>
swyper: Make it pass and we can show how to add another assertion. Once you have a few assertions to describe the expected behavior, you can make them pass. Then you can refactor without preventing regressions or having to retry every example.
<havenwood>
swyper: Cool
<havenwood>
swyper: Good luck with your midterm!
<swyper>
thank youu
<swyper>
i also followed you on github :P
<havenwood>
those who do gain great fortune (i've heard)
<havenwood>
refactor while preventing**
queip has quit [Ping timeout: 252 seconds]
cschneid has joined #ruby
hutch1 has joined #ruby
barg has quit []
AJA4351 has joined #ruby
<cschneid>
Is there a way to get an error out of Marshal.dump that tells me *what* object has a Default Proc that it can't serialize?
<cschneid>
(you can't Marhsal.dump(myHash) if myHash has a default_proc
<cschneid>
but one is sneaking in anyway, and I don't know which of a nested object structure it is
<havenwood>
cschneid: There aren't many Hashes with default procs to start with, at least.
<cschneid>
well, we use it in a few places, but those objects shouldn't ever make it in.
<cschneid>
Can I limit objectspace to an object as the parent? "This, and all objects referenced from here"
queip has joined #ruby
<cschneid>
(objects shouldn't ever make it into this marshal section)
<cschneid>
Hmm, if I have MyObj, which has MyOtherObj and similar in instance vars, which in turn may have Hash, I should be able to recurse through it to figure it out right?
<cschneid>
Get a big list of instance vars, loop over and see if they are a hash w/ a proc, or recurse in and ask if they are a hash w/ a proc.
<havenwood>
cschneid: Yeah, sounds like you could recurse to find it. I don't know any trick to get marshal to cough that up.
<cschneid>
alternatively, I could recurse in, and repeatedly try to dump, and cut off tree branches that do succeed.
davidw has quit [Remote host closed the connection]
davidw has joined #ruby
davidw has quit [Changing host]
davidw has joined #ruby
BH23 has quit [Ping timeout: 240 seconds]
akemhp has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
dviola has quit [Quit: WeeChat 2.6]
jaequery has joined #ruby
jenrzzz has joined #ruby
<naftilos76>
Has anybody got any experience with curses gem? I am trying to use colors in my terminal but when i do, the previous colored text changes to the one i have just set
<havenwood>
naftilos76: Show a gist with code demonstrating the issue?
<naftilos76>
havenwood: fixed it - no worries
Jonopoly has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
AJA4350 has quit [Read error: Connection timed out]
AJA4350 has joined #ruby
dionysus69 has quit [Remote host closed the connection]
orbyt_ has joined #ruby
Exuma has joined #ruby
SCHAPiE has joined #ruby
poontangmessiah has joined #ruby
dionysus69 has joined #ruby
imtravis has quit [Ping timeout: 252 seconds]
ElFerna has joined #ruby
laudecay has joined #ruby
queip has quit [Ping timeout: 250 seconds]
<laudecay>
hi does anyone know how to contact the brakeman devs? a dev i work with found a bug in the newest version but i can't post the code that generates it in a github issue
ellcs has joined #ruby
AJA4351 has joined #ruby
<cschneid>
havenwood: 95% done w/ a class that recurses and checks for undumpable stuff. May open source if it I bother making it cleaner
ravenousmoose has quit [Ping timeout: 250 seconds]
KrzaQ- is now known as KrzaQ
SeepingN has joined #ruby
rwb has joined #ruby
ellcs has quit [Ping timeout: 276 seconds]
spacesuitdiver has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
yokel has joined #ruby
AJA4350 has quit [Ping timeout: 246 seconds]
poontangmessiah has joined #ruby
ellcs has joined #ruby
hutch1 has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
RiPuk has quit [Ping timeout: 252 seconds]
RiPuk_ has joined #ruby
leitz has joined #ruby
<leitz>
If m is an instance of HFDP::Mallard, with HFDP being the module and Mallard being the class, is there a way to alter a call to self.class to get just the class, and not the module?
iNs has quit [Quit: bubye]
iNs has joined #ruby
xGrind has joined #ruby
`Alison has quit [Quit: ZNC 1.7.4+deb4 - https://znc.in]
`Alison has joined #ruby
hutch1 has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 265 seconds]
AJA4350 has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
sdrew has joined #ruby
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Omnilord has quit [Quit: This computer has gone to sleep]
Omnilord has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
leitz: Why do you want to do that? Are you trying to get at the String equivalent or something else?
ellcs has quit [Ping timeout: 240 seconds]
cow[moo] has joined #ruby
<havenwood>
leitz: Assuming this isn't Rails?
Nahra has quit [Quit: leaving]
<havenwood>
&>> module Wombat; class Fox; def initialize; namespace, _separator, klass = self.class.name.rpartition '::'; p Module.const_get(namespace).const_get(klass); end end end; Wombat::Fox.new