DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
xall has joined #ruby
beatdown has joined #ruby
_sfiguser has joined #ruby
astrobunny has joined #ruby
arescorpio has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has quit [Ping timeout: 244 seconds]
braincra- has quit [Quit: bye bye]
howdoi has joined #ruby
cdg has quit [Ping timeout: 260 seconds]
<xall>
i refactored 'replace conditional with polymorphism'. i moved the existing tests to relevant subclass specs. i'm wondering what i should test in the parent class now that everything has been moved out. https://gist.github.com/anonymous/127886bdbd8029657466452a9c3d417c
nankyokusei has joined #ruby
braincrash has joined #ruby
<gizmore>
xall: usually you test the classes public methods
<xall>
gizmore: i guess i mean since the method now just delegates to the subclasses
<elomatreb>
xall: If you change the file extension of that gist to .diff you'll get working syntax highlighting btw
chopin has quit [Remote host closed the connection]
boombox_ has joined #ruby
chopin has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
gix has quit [Ping timeout: 252 seconds]
dviola has quit [Quit: WeeChat 1.6]
solocshaw has quit [Ping timeout: 244 seconds]
chopin has quit [Ping timeout: 265 seconds]
gix has joined #ruby
<xall>
nm. i understand why that was a silly question
KnownSyntax has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
porfa has quit [Quit: porfa]
KnownSyntax has quit [Read error: Connection reset by peer]
solocshaw has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
sp4rrow has joined #ruby
doublemalt_ has joined #ruby
Felipe__ has joined #ruby
Joufflu__ has joined #ruby
ResidentBiscuit has quit []
Joufflu has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
gusrub_ has quit [Remote host closed the connection]
Joufflu_ has quit [Ping timeout: 245 seconds]
Joufflu__ has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
Felipe__ has quit [Quit: Leaving]
flashpoint9 has quit [Ping timeout: 245 seconds]
joneshf-laptop has quit [Quit: Leaving]
solocshaw has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
solocshaw has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
scres has joined #ruby
LoneHerm_ has joined #ruby
jackjackdripper has joined #ruby
flashpoint9 has joined #ruby
<scres>
hello. can anyone recommend some good resources for learning ruby? i'm already an experienced programmer in python and php, looking to fast-track some ruby experience
Contigi has quit [Ping timeout: 252 seconds]
renderful has joined #ruby
Ebok has joined #ruby
jackjackdripper has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
nowhere_man has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
Azure|dc has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 256 seconds]
<baweaver>
Eloquent Ruby or learnxinyminutes for the super fast.
hanmac has joined #ruby
ledestin_ has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
sarlalian has joined #ruby
jaequery has joined #ruby
ramfjord has joined #ruby
sp4rrow has quit [Quit: Textual]
bovis has quit [Quit: leaving]
bturker has joined #ruby
gnufied has quit [Ping timeout: 245 seconds]
moei has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
Joufflu has quit [Read error: Connection reset by peer]
ruby_ has quit [Remote host closed the connection]
al2o3-cr has quit [Ping timeout: 250 seconds]
brent__ has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
xall has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
mvxlr has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaequery has joined #ruby
ChiefAlexander has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ur5us_ has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 245 seconds]
mvxlr has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
ruby_ has joined #ruby
roamingdog has quit [Remote host closed the connection]
TinkerTyper has quit [Read error: Connection reset by peer]
Silthias has joined #ruby
pawnbox has joined #ruby
kith has quit [Quit: kith]
dn5 has quit [Ping timeout: 250 seconds]
tcrypt has quit [Quit: _ノ乙(、ン、)_]
futilegames has joined #ruby
futilegames has quit [Client Quit]
ziarkaen has joined #ruby
xall has joined #ruby
eizua has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eizua has joined #ruby
TinkerTyper has joined #ruby
elaptics has joined #ruby
Macaveli has joined #ruby
dn5 has joined #ruby
gizless has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
kith has joined #ruby
bturker has joined #ruby
j416 has quit [Ping timeout: 256 seconds]
elenatanasoiu has joined #ruby
tomphp has joined #ruby
mikecmpbll has joined #ruby
rajdesai_ has joined #ruby
Guest64144 has quit [Changing host]
Guest64144 has joined #ruby
j416 has joined #ruby
zotherstupidguy has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
terlar has joined #ruby
rajdesai has quit [Ping timeout: 250 seconds]
mark_66 has joined #ruby
rajdesai has joined #ruby
rajdesai has quit [Read error: No route to host]
Guest64144 is now known as PocketKiller
zacstewart has quit [Ping timeout: 245 seconds]
rajdesai has joined #ruby
<zotherstupidguy>
whats a common straightforward way for ensuring that if class B inherits from class A, then objects instantiated from class B must have their own implmentations of :method_a, :method_b, etc.?
rajdesai_ has quit [Ping timeout: 256 seconds]
rajdesai_ has joined #ruby
mozozo has quit [Ping timeout: 265 seconds]
mim1k has joined #ruby
<hanmac>
zotherstupidguy: hm ruby does not have such thing as virtual methods (per se) ... i think the most easy ways are doing respond_to? checks or have it crash into a NoMethodError
kith has quit [Quit: kith]
<zotherstupidguy>
hanmac the thing is i remmber doing this before, but i can't recall how i did it! but there is a way i am sure. how would you do the respond_to? ?
rajdesai has quit [Ping timeout: 250 seconds]
kith has joined #ruby
brent__ has quit [Quit: Connection closed for inactivity]
astrobunny has joined #ruby
mim1k|work has quit [Ping timeout: 244 seconds]
mim1k has quit [Ping timeout: 250 seconds]
<hanmac>
zotherstupidguy: you can do in initialize of the Parent A to check if the instance does "respond_to? :method_a" ... but thats not perfect because it prevent to define the method in the object
flashpoint9 has quit [Ping timeout: 245 seconds]
antgel has quit [Ping timeout: 260 seconds]
ledestin has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
dmtd has quit [Quit: Connection closed for inactivity]
flashpoint9 has joined #ruby
Beams has joined #ruby
rajdesai_ has quit [Remote host closed the connection]
<zotherstupidguy>
meh, not workin for me yet
pawnbox has joined #ruby
MuffinPimp[m] has quit [Remote host closed the connection]
Silke[m] has quit [Remote host closed the connection]
bascht has quit [Remote host closed the connection]
velu_aon[m] has quit [Write error: Connection reset by peer]
fladson[m] has quit [Write error: Connection reset by peer]
M-manveru has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
davix has quit [Write error: Connection reset by peer]
M-shine has quit [Write error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
M-mistake has quit [Write error: Connection reset by peer]
eliotk[m] has quit [Remote host closed the connection]
Luca[m] has quit [Write error: Connection reset by peer]
jsrn_ has joined #ruby
jottr has joined #ruby
astrobunny has quit [Remote host closed the connection]
flashpoint9 has quit [Ping timeout: 256 seconds]
flashpoint9 has joined #ruby
ghostlight has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
pandaant has joined #ruby
ghostlight has joined #ruby
bturker has joined #ruby
flashpoi_ has joined #ruby
charliesome has joined #ruby
zacstewart has joined #ruby
flashpoint9 has quit [Ping timeout: 256 seconds]
aupadhye has quit [Ping timeout: 250 seconds]
flashpoint9 has joined #ruby
lenwood has joined #ruby
zenguy_pc has quit [Ping timeout: 245 seconds]
flashpoi_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 260 seconds]
mim1k|work has joined #ruby
mim1k has joined #ruby
zenguy_pc has joined #ruby
blackmesa has joined #ruby
djbkd has joined #ruby
davix has joined #ruby
Silke[m] has joined #ruby
M-shine has joined #ruby
bascht has joined #ruby
M-manveru has joined #ruby
MuffinPimp[m] has joined #ruby
Luca[m] has joined #ruby
laithshadeed[m] has joined #ruby
cpfeilschifter[m has joined #ruby
eliotk[m] has joined #ruby
fladson[m] has joined #ruby
velu_aon[m] has joined #ruby
M-mistake has joined #ruby
Shmulik has joined #ruby
jottr has joined #ruby
<manveru>
zotherstupidguy: well, there's a way
<zotherstupidguy>
?
LBKEAJ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
pragmaticus has quit [Ping timeout: 256 seconds]
<manveru>
or maybe not...
harai has quit [Ping timeout: 256 seconds]
<manveru>
you can define a method before inherting
dn5 has quit [Ping timeout: 245 seconds]
<manveru>
*can't
salut has joined #ruby
<manveru>
so the only way would be to define the method on A but instead raise in the method
<dminuoso_>
zotherstupidguy: What is your goal? Are you trying to do something like "pure virtual methods" ?
<zotherstupidguy>
what are "pure virtual methods"? nah, i just want to make whoever inherits from my base class gets a warning if they don't implmenet specific mehtods
<manveru>
>> class A; def hi; raise NotImplementedError, "implement hi if you want to inherit from A"; end; end; [Class.new(A), Class.new(A){ def hi; :hi; end }].map{|c| begin; c.new.hi; rescue NotImplementedError => e; e; end }
<ruby[bot]>
manveru: # => [#<NotImplementedError: implement hi if you want to inherit from A>, :hi] (https://eval.in/663006)
<dminuoso_>
zotherstupidguy: It's a concept in C++ where you have an abstract base class that defines an interface - but you cannot use that interface. Instead you must derive from it, and implement these methods.
<dminuoso_>
manveru's code is a simplistic Ruby solution to the problem
<zotherstupidguy>
i think its similar to NotImplementedError
<manveru>
otherwise you can only solve it with a module that you include into the class after you defined it
nankyokusei has joined #ruby
<manveru>
because at the point where you write 'class B < A', there's no method in B yet
tvm has joined #ruby
<dminuoso_>
manveru: I'm thinking there could be a way.
<manveru>
and you can at best delay the check for a few seconds or something... which is weird
antgel has joined #ruby
<dminuoso_>
asm>> class A<B;e end
<ruby[bot]>
dminuoso_: I have disassembled your code, the result is at https://eval.in/663007
jackjackdripper has joined #ruby
<dminuoso_>
zotherstupidguy: What you could do, is forbid direct inheritance (by using the inherited callback) - and provide a factory method in the base class.
pragmaticus has joined #ruby
<tvm>
if i have object like #<Gitlab::ObjectifiedHash:14564360 {hash: {"id"=>35, ... how i'm supposed to access id ? puts obj["id"] returns: wrong number of arguments (2 for 1)
<manveru>
>> Thread.abort_on_exception = true; class A; def self.inherited(into); Thread.new{ sleep 1; raise NotImplementedError, "implement hi if you want to inherit from A" unless into.instance_methods(false).include?(:hi) }; end; end; Class.new(A); sleep 2
<zotherstupidguy>
dminuoso_ sounds too clever to be nice
<dminuoso_>
And have that factory method basically do a new_class = do_stuff(with(yield)); test_interface(new_class)
<manveru>
damn eval.in doesn't do sleeps either :P
<manveru>
but hey, that'd work... more or less
<manveru>
if you program runs longer than a second
<dminuoso_>
tvm: Look at the documentation of Gitlab::ObjectifiedHash
<zotherstupidguy>
lol
<dminuoso_>
zotherstupidguy: The factory method is not completely unsound considering Ruby does not offer anything else.
zenguy_pc has quit [Ping timeout: 256 seconds]
<dminuoso_>
zotherstupidguy: In fact some gems such as FactoryGirl do it too.
pragmaticus has quit [Remote host closed the connection]
<tvm>
dminuoso_: oh, i thought that objectifiedhash was some native ruby thing, that explains a lot. thanks.
<dminuoso_>
tvm: :)
quazimodo has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
zenguy_pc has joined #ruby
mozozo has joined #ruby
jottr has joined #ruby
<zotherstupidguy>
feels to me like another special case when popularity doesn't conform beauty! anyway THANKS! NotImplementedError would be the way to go for me.
ur5us has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
<dminuoso_>
zotherstupidguy: Many Rubyist would consider this bad, as they are duck fetishists - they think having abstract interfaces and enforced policies is a bad thing. :P
<zotherstupidguy>
dminuoso_ NotImplementedError works for now, how your gist is diff again?
<dminuoso_>
zotherstupidguy: I test the existence of the method right when the class is used.
<dminuoso_>
zotherstupidguy: not when the method is used.
<zotherstupidguy>
dminuoso_ in a way they are correct, if you strict too much to grammer you can't rap ;)
<dminuoso_>
zotherstupidguy: We have had centuries of cultivated music that relied on very deep music theory.
<canton7>
or if you want interfaces, use a language with interfaces? :)
<dminuoso_>
But hey, if you consider a modern gansgta who proves a complete lack of vocal or grammar abilities to be more elegant than Rachmaninoffs second piano concerto - who am I to argue.
jaguarmagenta has quit [Ping timeout: 260 seconds]
mozozo has quit []
teclator has quit [Ping timeout: 252 seconds]
ajaiswal has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
pawnbox has quit [Ping timeout: 256 seconds]
xall has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
pragmaticus has joined #ruby
koooge has quit [Quit: Leaving...]
jottr has joined #ruby
tvw has joined #ruby
nadir has joined #ruby
xall has quit [Ping timeout: 252 seconds]
jottr has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zotherstupidguy>
dminuoso_ if i would to readjust the anology, i would go by stating that music is timeless(same as code) thus it wouldn't wieght in much how long it had been done in what way, as opposed to why it was being used. music (code) is meant to be a tool of expressions.
ur5us_ has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
antgel has joined #ruby
roamingdog has joined #ruby
mim1k|work has quit [Ping timeout: 252 seconds]
mim1k has quit [Ping timeout: 265 seconds]
ur5us_ has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 252 seconds]
mim1k|work has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
ldnunes has joined #ruby
Nahra has joined #ruby
mim1k has joined #ruby
antgel_ has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
Macaveli has joined #ruby
dionysus69 has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
pawnbox has joined #ruby
<ahri>
hi, i'm using Guard and wondered if there's a way to output after a task has finished? i'm using guard-rake actually - i just want to emit a "Done!" message so i know rake has finished doing its thing
<ahri>
i tried callback(:stop) { puts "Done!" }, but that doesn't appear to work the way i expected
JeanCarloMachado has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
<dminuoso_>
how does it work?
blackmesa has quit [Ping timeout: 252 seconds]
mikekellyio_ has quit [Quit: Connection closed for inactivity]
<dminuoso_>
I've been working too much in C++. I now want to transfer ownership of an IO handle to another object..
<dminuoso_>
And Ruby just doesnt work like I want it to. :(
aryaching has joined #ruby
jottr has joined #ruby
antgel_ has quit [Ping timeout: 245 seconds]
Azure has joined #ruby
Azure|dc has quit [Ping timeout: 265 seconds]
antgel has joined #ruby
GodFather has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
err_ok has joined #ruby
al2o3-cr has joined #ruby
shrinx has quit [Quit: Page closed]
tomphp has quit [Read error: Connection reset by peer]
minimalism has quit [Quit: minimalism]
nowhere_man has joined #ruby
rodfersou is now known as rodfersou|afk
tomphp has joined #ruby
zacstewart has joined #ruby
AltLock has quit [Quit: Leaving.]
mim1k has quit [Ping timeout: 244 seconds]
mim1k has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
antgel has joined #ruby
<hanmac>
dminuoso_: you can do IO.reopen but that might not 100% what you want
<dminuoso_>
hanmac: Yeah it wont. Essentially I want similar semantics to unique_ptr with tranferrable ownership.
<dminuoso_>
Though mmm.
<dminuoso_>
I guess that could actually work.
<dminuoso_>
hanmac: I can make it work, thanks. :)
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
gnufied has joined #ruby
govg has quit [Ping timeout: 244 seconds]
<ccolorado>
matthewd: thanks
roamingdog has quit [Remote host closed the connection]
jhack has quit []
dn5 has quit [Ping timeout: 265 seconds]
fmcgeough has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
antgel has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
johnmilton has joined #ruby
millerti has joined #ruby
thrustix has joined #ruby
MrBusiness2 has joined #ruby
hinbody has joined #ruby
last_staff1 has joined #ruby
modlin has joined #ruby
dminuoso1 has joined #ruby
millerti has quit [Client Quit]
jottr has quit [Ping timeout: 256 seconds]
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
j416 has quit [Ping timeout: 244 seconds]
IsoLinCHiP has quit [Ping timeout: 258 seconds]
johnny56 has quit [Read error: Connection reset by peer]
MrBusiness3 has quit [Ping timeout: 250 seconds]
dminuoso_ has quit [Ping timeout: 244 seconds]
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 is now known as last_staff
Meeh has quit [Read error: Connection reset by peer]
Meeh_ has joined #ruby
johnny56 has joined #ruby
IsoLinCHiP has joined #ruby
j416 has joined #ruby
Humdai has joined #ruby
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
_sfiguser has quit [Ping timeout: 252 seconds]
Snowy has quit [Remote host closed the connection]
kent\n has quit [Ping timeout: 245 seconds]
bturker has joined #ruby
zacstewart has joined #ruby
disconnekted has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<ccolorado>
What is the most compact way I can count the elements of an array that pass certain condition e.g. elements greater than 0 ? Is it something else than an .each do ?
griffindy has joined #ruby
cgfbee has quit [Remote host closed the connection]
<ruby[bot]>
dminuoso1: # => /tmp/execpad-8d68b7a4415d/source-8d68b7a4415d:2: warning: circular argument reference - q ...check link for more (https://eval.in/663160)
<dminuoso1>
Finding new diagnostics every day.
<dminuoso1>
(:
fmcgeough has quit [Quit: fmcgeough]
_sfiguser has joined #ruby
<ccolorado>
canton7: is tehre something more generic ? like if i just wanted filter+sum elements ? something like map but that returned a single scalar value and i could do acumulators and such.
<ccolorado>
The more I think of it the more it feels like i am describing an each :)
jphase has quit [Ping timeout: 256 seconds]
<dminuoso1>
ccolorado: Yes, you can use Symbol#to_proc if applicable.
<dminuoso1>
ccolorado: And a more generic thing is Enumerable#reduce btw
braincrash has quit [Ping timeout: 260 seconds]
<dminuoso1>
ccolorado: Or the more flexible variant Enumerable#each_with_object
<tvm>
what does function returns if theres no return statement?
<ccolorado>
tvm: the last statement
y2mq37 has quit [Ping timeout: 250 seconds]
kent\n has joined #ruby
mim1k_ has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
<dminuoso1>
tvm: The value of the last expression.
<helpa>
Hi tvm. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<tvm>
well, return still jumps out of the function, so i'll just add return nil i guess.
<dminuoso1>
tvm: That wont work.
* tvm
scratches his head
<dminuoso1>
tvm: Inside proc and blocks a return will always return from the current active method.
cdg has joined #ruby
<dminuoso1>
Use "break" to "break out of a proc/block"
<tvm>
ah.
<dminuoso1>
(or next)
<canton7>
ccolorado, or a #map followed by a #count :P
<canton7>
ccolorado, and maybe a #select in there to filter
mim1k|wo1k has quit [Ping timeout: 260 seconds]
merlin2049er1 has joined #ruby
<dminuoso1>
tvm: When I mentioned ensure the following rules apply: The last statement before the ensure will be returned, but the ensure will be executed in between the evaluation of the return value and the actual return.
merlin2049er1 has left #ruby [#ruby]
mim1k|work has joined #ruby
<tvm>
alright.
modlin has quit [Read error: Connection reset by peer]
Maionesys has quit [Remote host closed the connection]
malconis has joined #ruby
Maionesys has joined #ruby
Rodya_ has joined #ruby
ruby-lang654 has joined #ruby
jaguarmagenta has quit [Ping timeout: 256 seconds]
skweek has joined #ruby
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
GodFather_ has joined #ruby
jphase has joined #ruby
<ruby-lang654>
hello guys
ruby_ has joined #ruby
braincrash has joined #ruby
Maionesys has quit [Remote host closed the connection]
cgfbee has joined #ruby
andikr has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
pmunt has quit []
fmcgeough has joined #ruby
ruby_ has quit [Ping timeout: 256 seconds]
malconis has joined #ruby
DLSteve has joined #ruby
saslam has joined #ruby
saslam_ has joined #ruby
Toledo has joined #ruby
Toledo is now known as croberts
omphe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
omphe has joined #ruby
omphe has quit [Client Quit]
blackmesa has quit [Ping timeout: 260 seconds]
saslam has quit [Ping timeout: 260 seconds]
griffindy has joined #ruby
saslam_ has quit [Ping timeout: 260 seconds]
fmcgeough has quit [Quit: fmcgeough]
ericx2x has joined #ruby
<ericx2x>
Can someone clean up this line? strip_tags(truncate post.content, length: 75)
matp has quit [Quit: ZZzzzZz...]
fmcgeough has joined #ruby
zacstewart has joined #ruby
go|dfish has quit [Ping timeout: 244 seconds]
mim1k|work has quit [Ping timeout: 256 seconds]
Snowy has joined #ruby
_sfiguser has quit [Remote host closed the connection]
mim1k|work has joined #ruby
Guest66 has joined #ruby
LoneHerm_ has joined #ruby
jaguarmagenta has joined #ruby
coolboy has joined #ruby
synthroid has joined #ruby
modlin has joined #ruby
Guest66 has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thrustix has joined #ruby
mim1k|work has quit [Ping timeout: 244 seconds]
mim1k|work has joined #ruby
ruby_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather_ has quit [Ping timeout: 265 seconds]
vuoto has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
Guest66 has joined #ruby
last_staff has quit [Quit: last_staff]
go|dfish has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 260 seconds]
renderful has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
merlin2049er has joined #ruby
merlin2049er has left #ruby [#ruby]
mtkd has quit [Ping timeout: 265 seconds]
modlin_ has joined #ruby
modlin_ has quit [Remote host closed the connection]
mtkd has joined #ruby
colegatron has joined #ruby
aupadhye has quit [Ping timeout: 265 seconds]
ChiefAlexander has joined #ruby
govg has joined #ruby
sepp2k has joined #ruby
teclator has quit [Ping timeout: 260 seconds]
GodFather_ has joined #ruby
j0bk has quit [Changing host]
j0bk has joined #ruby
futilegames has joined #ruby
hammond is now known as jewstein_webber
dionysus69 has quit [Ping timeout: 256 seconds]
<chrisseaton>
ericx2x: what do you mean by clean it up?
pragmaticus has joined #ruby
<frankiee_>
looks pretty clean to me whatever it is
<frankiee_>
shouldn't truncations be done clientside anyway? to avoid extra requests if the user wants to "read more"?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
futilegames has left #ruby [#ruby]
govg has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
boombox_ has joined #ruby
matp has joined #ruby
rodfersou is now known as rodfersou|lunch
ruby-lang257 has joined #ruby
vuoto has quit [Remote host closed the connection]
Gasher has joined #ruby
dminuoso1 has quit [Ping timeout: 252 seconds]
wldcordeiro has quit [Ping timeout: 250 seconds]
bturker has quit [Ping timeout: 256 seconds]
dn5 has joined #ruby
ziarkaen has joined #ruby
jbeeze has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
saneax-_-|AFK is now known as saneax
Rodya_ has quit [Remote host closed the connection]
bovis has joined #ruby
arashb has joined #ruby
jottr has joined #ruby
mim1k|work has quit [Disconnected by services]
dn5 has quit [Ping timeout: 260 seconds]
ruby-lang654 has quit [Ping timeout: 260 seconds]
GinoManWorks has joined #ruby
roamingdog has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
teclator has joined #ruby
NTrash has joined #ruby
ruby-lang257 has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
Blueby has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
igniting has quit [Ping timeout: 256 seconds]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
supsup has joined #ruby
patarr has joined #ruby
pawnbox has joined #ruby
shinnya has joined #ruby
<supsup>
question: how do you overlay configurations in a middleman server? so that as you go down a file structure a defaults.yaml file wins previous defaults.yaml files?
wldcordeiro has joined #ruby
polishdub has joined #ruby
pragmaticus has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
tcrypt has joined #ruby
p0p0pr37 has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby
patarr has joined #ruby
Guest66 has joined #ruby
ycyclist has joined #ruby
dminuoso_ has quit [Remote host closed the connection]
mark_66 has quit [Quit: Leaving.]
beawesomeinstead has quit [Ping timeout: 260 seconds]
skweek has quit [Ping timeout: 256 seconds]
f0rpaxe has quit [Read error: Connection reset by peer]
poikon has quit [Read error: Connection reset by peer]
ichkv1 has joined #ruby
fmcgeough has joined #ruby
beawesomeinstead has joined #ruby
poikon has joined #ruby
f0rpaxe has joined #ruby
ichkv has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
SuperLag has quit [Quit: Lost terminal]
arashb has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
Pent has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
SuperLag has joined #ruby
tvm has quit [Quit: leaving]
<k200>
how can i find nexn item in array only based on what is current item?
<k200>
without usintg any loop or enumerable.
p0p0pr37 has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<k200>
last item should give first item
nowhereman has quit [Remote host closed the connection]
supsup has quit [Quit: Page closed]
nankyokusei has joined #ruby
nowhereman has joined #ruby
conta has quit [Ping timeout: 256 seconds]
<havenwood>
k200: if it weren't for that last requirement you could just:
<havenwood>
>> a = [:beets, :bears, :battlestar_gallactica]; a[a.index(:bears).next]
<ruby[bot]>
k200: # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/663242)
ocbtec has quit [Quit: leaving]
Devalo has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
pawnbox has quit [Quit: gotta go guys.]
pawnbox has joined #ruby
asahi has joined #ruby
fullofcaffeine has joined #ruby
Siegfried has joined #ruby
patarr has quit [Quit: patarr]
<asahi>
I don't suppose there's a way to split a string in between the two characters, "}{". Seems like I'd have to use String#index, break the string into 2, and repeat for every instance of "}{"
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
AltLock has quit [Quit: Leaving.]
rodfersou|lunch is now known as rodfersou
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
hnanon has joined #ruby
gizless is now known as gizmore
yardenbar has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
Snowy has quit [Ping timeout: 252 seconds]
k200 has quit [Quit: leaving]
govg has joined #ruby
<jokke>
hello
varsha has quit [Quit: Connection closed for inactivity]
AltLock has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
Siegfried has joined #ruby
AltLock has quit [Client Quit]
<jokke>
i'd like there to be some kind of includes_exactly matcher for rspec?
dminuoso_ has joined #ruby
<jokke>
scenario: i want to match a hash with includes and also ensure that there are no additional keys
<gizmore>
^aha$
<gizmore>
equals
fullofcaffeine has quit [Ping timeout: 256 seconds]
<jokke>
i can't use eq, since i need to use compound matchers
patarr has quit [Quit: patarr]
Siegfried has quit [Client Quit]
xall has joined #ruby
coolboy has quit [Remote host closed the connection]
SpX has quit [Quit: Leaving]
Devalo has quit [Remote host closed the connection]
amclain has joined #ruby
synthroid has quit [Remote host closed the connection]
frankiee_ has quit [Read error: Connection reset by peer]
xall has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
jsrn_ has quit [Quit: Leaving]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
saslam has joined #ruby
Devalo has joined #ruby
tdy1 has quit [Ping timeout: 252 seconds]
GodFather_ has quit [Quit: Ex-Chat]
GodFather_ has joined #ruby
GodFather_ is now known as GodFather
[Butch] has joined #ruby
SCHAAP137 has joined #ruby
Siegfried has joined #ruby
tcrypt has quit [Quit: _ノ乙(、ン、)_]
boombox_ has quit [Remote host closed the connection]
chopin has joined #ruby
tubuliferous has joined #ruby
Siegfried has quit [Client Quit]
ruby_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
nettoweb has joined #ruby
postmodern has joined #ruby
<eam>
mornin' folks
<havenwood>
g'mornin'
roamingdog has joined #ruby
<ahri>
hi, i'm using Guard and wondered if there's a way to output after a task has finished? i'm using guard-rake actually - i just want to emit a "Done!" message so i know rake has finished doing its thing
<ahri>
i tried callback(:stop) { puts "Done!" }, but that doesn't appear to work the way i expected
<eam>
I'm teaching someone ruby, their level of experience is light bash scriping. ruby koans is a little too advanced; is there any more suitable material?
<postmodern>
having trouble getting foreman exported systemd services running correctly
maloik has quit [Remote host closed the connection]
<eam>
making up stuff I remember from high school programming seems to be doing well enough, but I might do more of this so I'm curious
elenatanasoiu has quit [Ping timeout: 265 seconds]
ferr has quit [Quit: WeeChat 1.5]
tvw has quit [Read error: Connection reset by peer]
psmmr has quit [Remote host closed the connection]
gusrub_ has quit [Ping timeout: 265 seconds]
ichkv1 has joined #ruby
flashpoint9 has joined #ruby
ichkv has quit [Ping timeout: 260 seconds]
mim1k|work has quit [Ping timeout: 250 seconds]
<asahi>
havenwood: thanks for those examples earlier. I'll try them out
flashpoi_ has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
chopin has quit [Remote host closed the connection]
flashpoi_ has joined #ruby
chopin has joined #ruby
jaequery has joined #ruby
SteenJobs has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
TomyWork has quit [Ping timeout: 256 seconds]
Devalo has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
chopin has quit [Ping timeout: 252 seconds]
whathappens has joined #ruby
rodfersou has quit [Quit: leaving]
nankyokusei has joined #ruby
ichkv1 has quit [Remote host closed the connection]
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
SteenJobs has quit [Quit: SteenJobs]
flashpoint9 has joined #ruby
SteenJobs has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
flashpoi_ has joined #ruby
flashpoint9 has quit [Ping timeout: 245 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
patarr has quit [Quit: patarr]
roamingdog has quit [Remote host closed the connection]
gusrub_ has joined #ruby
roamingdog has joined #ruby
gusrub_ is now known as gusrub
disconnekted has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
ocbtec has joined #ruby
elastix has joined #ruby
hays has quit [Ping timeout: 268 seconds]
Alina-malina has quit [Ping timeout: 248 seconds]
flashpoint9 has joined #ruby
Ishido has quit [Ping timeout: 265 seconds]
hays has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
TPug has joined #ruby
nowhereman has quit [Ping timeout: 244 seconds]
ruby_ has quit []
rcvalle has joined #ruby
cajone has quit [Remote host closed the connection]
marr has joined #ruby
xall has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
Alina-malina has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
splud has joined #ruby
AndrewIsHere has joined #ruby
firstdayonthejob has joined #ruby
allomov has quit [Remote host closed the connection]
chopin has joined #ruby
brendan- has joined #ruby
MOEBG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has joined #ruby
Guest66 has joined #ruby
flashpoi_ has joined #ruby
sagax has joined #ruby
<sagax>
hi all!
<sagax>
how to iterating very big array?
flashpoint9 has quit [Ping timeout: 245 seconds]
<apeiros>
sagax: Array#each
<sagax>
apeiros: it's true, but if array very very big?
<apeiros>
why do you think Array#each would not be sensible for big arrays?
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest66 has quit [Client Quit]
<sagax>
i think, that memory will be overload
binaryplease has joined #ruby
<apeiros>
and why would that be?
<sagax>
I want to control this process
gusrub has joined #ruby
lxsameer has joined #ruby
<apeiros>
ok. you still fail to tell me what's wrong with Array#each.
<havenwood>
sagax: What do you want to control? What about it? How does #each not suffice? Have an example test case demonstrating your problem?
Siegfried has joined #ruby
SeepingN has joined #ruby
<sagax>
hm, well, ok
<sagax>
I will use meanwhile each method,
asahi has quit [Quit: leaving]
<apeiros>
sagax: is there a reason you don't answer our questions?
bluOxigen has quit [Ping timeout: 244 seconds]
flashpoint9 has joined #ruby
<sagax>
one moment, answering
xall has joined #ruby
Siegfried has quit [Client Quit]
habitullence_ has joined #ruby
dopamean_ has joined #ruby
flashpoi_ has quit [Ping timeout: 245 seconds]
habitullence has quit [Ping timeout: 258 seconds]
habitullence_ is now known as habitullence
<bovis>
I'm unsure of how to handle dedicated user sessions. The biggest issue I'm facing is persistent state across changing users who can essentially log in and out multiple times, making changes to the files they own. I can share the whole program if necessary, but hopefully these specifics can get things started: https://gist.github.com/anonymous/46da980e46f81061c18a7fa05e2e3b5c
harai has joined #ruby
<bovis>
Apologies in advance for the length. Any help is appreciated.
arashb has joined #ruby
<sagax>
"What do you want to control?" - I wanted to work with the big array as with a set of small array
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
<sagax>
"How does #each not suffice?" - i thinked, that each method with big array got overload memory
<sagax>
well, i back to next time, i will with examples
<sagax>
but batches will help me
<djellemah>
sagax: Sequel has streaming result sets for postgres. Not sure about mysql.
TheCubeLord has joined #ruby
TheCubeLord has quit [Changing host]
TheCubeLord has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
harushimo has joined #ruby
lenwood has quit [Ping timeout: 250 seconds]
<harushimo>
I'm trying to install ruby with home-brew or rvm. I can get an error on automake
mtkd has joined #ruby
<harushimo>
its says installing automaker and then it errors out
allomov has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<xall>
harushimo: the specific error is probably relevant for getting help. you might try rbenv rather than rvm
<harushimo>
i'll post it on a gist. I'm trying one more time
NTrash has joined #ruby
ModusPwnens has joined #ruby
<ModusPwnens>
Does anyone know why ruby would resolve different namespaces for classes on different computers?
gusrub has quit [Remote host closed the connection]
<ModusPwnens>
I wrote a class that extended another ruby class without the full explicit namespace and it worked fine for me, but it fails for one other engineer on our team and I have no idea why. Am I missing something about how ruby namespaces work?
bocaneri has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
ziarkaen has joined #ruby
roamingdog has joined #ruby
gusrub has joined #ruby
benlieb has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<havenwood>
ModusPwnens: Same Ruby version and engine?
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
Macaveli has joined #ruby
roamingdog has quit [Remote host closed the connection]
yardenbar has joined #ruby
roamingdog has joined #ruby
benlieb has quit [Client Quit]
benlieb has joined #ruby
roamingdog has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
roamingdog has joined #ruby
<havenwood>
harushimo: brew update && brew upgrade && rvm get head && rvm autolibs enable && rvm install ruby
patarr has quit [Quit: patarr]
<harushimo>
I've been doing that
<harushimo>
I'll try again
roamingdog has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
<harushimo>
havenswood: do I need to specify the ruby version or does the latest get install by default?
<ModusPwnens>
Oh yes. We are both just using ruby.
jottr has joined #ruby
<havenwood>
ModusPwnens: Hmm, maybe different versions of gems installed? Or does it not have deps or you're using a Gemfile.lock?
djellemah_ has joined #ruby
jaruga has quit [Quit: jaruga]
<harushimo>
havenswood: thank you so much
starmix has joined #ruby
<ModusPwnens>
havenwood: No dependencies. There's no gemfile.
ben______ has quit [Ping timeout: 252 seconds]
<havenwood>
harushimo: you're welcome
nuclearsandwich has quit [Read error: Connection reset by peer]
Torkable has joined #ruby
<ModusPwnens>
havenwood: Frankly, after seeing his error, I'm surprised it worked on anyone's computers at all because the implicit namespace appears to be wrong anyways.
<havenwood>
harushimo: the latest gets installed by default, if you mean the RVM command!
nuclearsandwich has joined #ruby
<havenwood>
ModusPwnens: hmm
dviola has joined #ruby
rodfersou is now known as rodfersou|afk
<xall>
ModusPwnens: do you have tests? is it in git? try cloning fresh and running tests
<havenwood>
harushimo: for ruby-install it's the same and you can even check for newer Rubies from the ruby-versions repo with: ruby-install --latest ruby
<harushimo>
havenswood: I was reading there is two ways right.
<harushimo>
is rvm install --latest ruby. Same result essentially
<harushimo>
one way is rvm install ruby-2.3.0 or the second way
<havenwood>
harushimo: If you `rvm get head` it should be Ruby 2.3.1, the latest.
redpants has joined #ruby
<havenwood>
harushimo: Do use 2.3.1 instead of 2.3.0.
<harushimo>
okay thank you
<starmix>
÷
<havenwood>
harushimo: rvm --default use 2.3.1
<harushimo>
that command I know
cdg has quit [Remote host closed the connection]
lenwood has joined #ruby
frankiee_ has joined #ruby
dojo2 has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
tcrypt has joined #ruby
zerowaitstate has quit [Quit: leaving]
redlegion has quit [Read error: Connection reset by peer]
redlegion has joined #ruby
patarr has joined #ruby
Rodya_ has joined #ruby
allomov has joined #ruby
allomov has quit [Read error: Connection reset by peer]
ChiefAlexander has quit [Remote host closed the connection]
blackmesa has joined #ruby
roamingdog has quit [Remote host closed the connection]
<xall>
as someone who's fairly new to ruby and the entire ecosystem, is there a good way to tell which framework a method is from? for example i'm in a spec, looking at `team = create(:team, name: "A fine team")`
roamingdog has joined #ruby
<xall>
my guess is that it's either rails or rspec
<xall>
`create` that is
rodfersou is now known as rodfersou|dinner
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
harushimo has joined #ruby
JeanCarloMachado has quit [Ping timeout: 265 seconds]
roamingdog has quit [Remote host closed the connection]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
Guest66 has joined #ruby
patarr has quit [Quit: patarr]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby
spiette has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
<ruby[bot]>
xall: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
<ruby[bot]>
dminuoso_: # => /tmp/execpad-269b9b77ac37/source-269b9b77ac37:2: syntax error, unexpected '>' ...check link for more (https://eval.in/663394)
<ruby[bot]>
dminuoso_: # => wrong number of arguments (1 for 0) (ArgumentError) ...check link for more (https://eval.in/663395)
<dminuoso_>
epitron: As long as we have had lambdas.
<epitron>
manveru: ohhh
<dminuoso_>
epitron: Or just use a proc you know..
<epitron>
heh, that makes more sense
<DaniG2k>
I was hoping someone could help out. I have been using Ruby and Rails as a hobbyist for a while but haven't been able to get a Rails dev job for the life of me. Would anyone be able to suggest what I can do or improve?
<DaniG2k>
but I've worked as a sys-admin and consultalt for 3.5 years
<DaniG2k>
so I can't figure out why I can't go into ruby/rails development
<DaniG2k>
consultant*
<mikecmpbll>
im surprised you're finding it difficult tbh. not many graduate/junior devs we recruit have ever written ruby
<DaniG2k>
its like impossible I've been rejected a trillion times
<DaniG2k>
i might be underselling myself during the interview
<DaniG2k>
i answer all their questions correctly :/
<dminuoso_>
DaniG2k: You get into interviews?
<dminuoso_>
DaniG2k: If so, then it cant be your resume.
<DaniG2k>
yep
<dminuoso_>
Then your resume is not the issue.
<dminuoso_>
Clearly.
<dminuoso_>
The CV + stuff is just to buy yourself a ticket into the interview.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DaniG2k>
I got to the 5th routh for one company a few days ago, and to the 3rd roudn for another company in japan yesterday
<DaniG2k>
but they drop me at the end :/
<mikecmpbll>
fair point.
fullofcaffeine has quit [Remote host closed the connection]
<DaniG2k>
its like...dropping after 5 interviews is a bit of a di** move :/
fullofcaffeine has joined #ruby
<mikecmpbll>
lol 5
<manveru>
hehe, happened to me too :)
mountpoint has joined #ruby
<DaniG2k>
and 3 for another company
<DaniG2k>
just got the response today
<DaniG2k>
they're like "sorry we had the impression you were more senior" @_@ but I told them exactly what the deal was
saslam has quit [Ping timeout: 244 seconds]
<mikecmpbll>
sounds like you're going for too senior roles
<manveru>
what's more junior than junior dev?
<DaniG2k>
he even asked me what evaluates to false in Javascript and I told him the 6 falsey values
<mikecmpbll>
as someone who's not worked as a dev before, you're unlikely to get anything beyond what the graduate level
zeroDi has joined #ruby
<DaniG2k>
its kind of stupid
<DaniG2k>
oh well
<DaniG2k>
maybe I need to contrib to open source more
<manveru>
well, one advice i can give you... don't treat the interview like a quiz where you get in with the right answers
<manveru>
try to interview them more than they you
<mikecmpbll>
from an employers perspective, your self-learning will probably just about put you on a par with someone who's done a degree.
harushimo has quit [Quit: This computer has gone to sleep]
<DaniG2k>
mikecmpbll: exactly
nowhereman has joined #ruby
<DaniG2k>
mikecmpbll: most of the people with comp sci degrees at my current company dont know how to use Ansible/Vagrant/Sensu/Openresty and the other stuff I deal with
<DaniG2k>
part of the issue is I want to move away from DevOps cause its boring
<mikecmpbll>
indeed, that's your job :p
chouhoulis has quit [Ping timeout: 252 seconds]
<manveru>
:)
JeanCarloMachado has quit [Ping timeout: 256 seconds]
<DaniG2k>
bah
ModusPwnens has quit [Quit: Page closed]
<DaniG2k>
I will just go into gardening
<manveru>
if you find devops boring, have you met nix?
<DaniG2k>
jeez people are still using Bootstrap 3?
yardenbar has quit [Ping timeout: 260 seconds]
<manveru>
sure
<manveru>
it's slightly better than using plain text
<DaniG2k>
hahah
harushimo has joined #ruby
<DaniG2k>
what's a gem that could use some love?
<DaniG2k>
that isn't massively complicated
bturker has joined #ruby
ziarkaen has joined #ruby
<manveru>
that depends on what you think is complicated...
runa has joined #ruby
<DaniG2k>
touche
nettoweb has quit [Ping timeout: 260 seconds]
lenwood has joined #ruby
<manveru>
all my gems need some love for example
flashpoi_ has joined #ruby
<manveru>
but there's almost nobody using them anyway
<DaniG2k>
link plz?
<DaniG2k>
:O
flashpoi_ has quit [Remote host closed the connection]
<runa>
heyas. I would like to generate a zipfile incrementally (ie, not generate it on disk and later compress it). I've checked Zip#get_output_stream but it seems it generates a temp file and compresses it afterwards. any hints? (I cannot use gzip, only zip here ;(
<moeSizlak>
if i perform the outer loop 10x more times it takes like 40x longer to run
<bovis>
Anyone have suggestions for small (~250-500 lines) ruby programs I can read that would be good for showing me program and file structure as a beginner?
ramfjord has quit [Ping timeout: 260 seconds]
<havenwood>
moeSizlak: a is getting bigger, yeah? and you're iterating through the collection four times, once with each #include?
<elomatreb>
bovis: Maybe not exactly relevant for program/file structure, but I found it extremely useful to read things like singular ActiveSupport (Rails) helpers
gusrub has quit [Read error: Connection reset by peer]
rodfersou|dinner is now known as rodfersou
solocshaw has joined #ruby
gusrub has joined #ruby
DLSteve has joined #ruby
<al2o3-cr>
smart eval'in
djbkd has joined #ruby
<al2o3-cr>
unsmart smarties
ResidentBiscuit has joined #ruby
ramfjord_ has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
quazimodo has joined #ruby
jcao219 has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
Siegfried has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has joined #ruby
gusrub has quit [Remote host closed the connection]
gnufied has joined #ruby
gusrub has joined #ruby
SJr has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
Azure|dc has joined #ruby
ocbtec has quit [Quit: leaving]
kiwiiusa has joined #ruby
<kiwiiusa>
i would like to use vagrant to set everything up a ruby on rails working environment what is a good way to go to get everything up and running in no time?
wldcordeiro has joined #ruby
_sfiguser has joined #ruby
* kiwiiusa
laughs at him for breaking his back for pulling his back
koooge has joined #ruby
ramfjord has joined #ruby
harushimo has quit [Quit: This computer has gone to sleep]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]>
al2o3-cr: # => /tmp/execpad-fca39798881f/source-fca39798881f:2: [BUG] Segmentation fault at 0x00000c ...check link for more (https://eval.in/663407)
<al2o3-cr>
why?
cdg has quit [Remote host closed the connection]
Rodya__ has joined #ruby
<havenwood>
al2o3-cr: it's the Segmentation's fault
roamingdog has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
jaykilleen has joined #ruby
hahuang65 has joined #ruby
chopin has quit [Remote host closed the connection]
harushimo has joined #ruby
Rodya_ has quit [Ping timeout: 245 seconds]
chopin has joined #ruby
Guest66 has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
arescorpio has joined #ruby
dminuoso_ has joined #ruby
Rodya__ has quit [Ping timeout: 256 seconds]
<al2o3-cr>
havenwood: where has the reference gone?
roamingdog has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #ruby
ur5us has joined #ruby
chopin has quit [Ping timeout: 256 seconds]
<al2o3-cr>
maybe i'm looking at this at a different angle, take a proper look tomorrow