<baweaver>
L96 may do bad things too, but probably not the point
<mikecmpbll>
yeah it is indeed odd. they're funny folks those maths rubyists.
<cthulchu>
I'm now switching to a few different projects none of which is Ruby. One is JS and one is Py. I never realized how much I would miss the black magic of ===
<cthulchu>
hell it was insanely comfy
<cthulchu>
inline regex is very comfy too
<baweaver>
Hrm. I'd probably just drop a binding.pry in there and see why it's screwy.
<cthulchu>
it would be awesome if Ruby had Python's white space syntax.
hutch has joined #ruby
<mikecmpbll>
oh crap, i'm monkey patching the class. that'll probably mess with the line numbering or no?
<baweaver>
Possibly.
<mikecmpbll>
going to be extremely difficult to reproduce the error too, unfortunately. happens deep in a long running task with randomised input data :D
<mikecmpbll>
o well.
<baweaver>
you could also put a rescue in there to try and catch it and reraise
<mikecmpbll>
👍🏼
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
grvgr_ has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
<phaul>
that code has a lot of things that don't make sense ruby wise. Im not talking algorithm wise, but just pure language wise
con3 has joined #ruby
<mikecmpbll>
:)
<con3>
hey everyone, I'm trying to run basic programs in ruby. using puts with hello world works great, but trying to get a method with return value going always bombs out
chouhoulis has quit [Ping timeout: 245 seconds]
<con3>
I'm following appacademy - open rn and this example does not work at all
ziyadb has quit [Quit: Connection closed for inactivity]
<phaul>
well, 9 year old code according to the license, stay strong mikecmpbll :)
<mikecmpbll>
nothing _technically_ wrong with a method defined in a method :p
<mikecmpbll>
there's lots of Array.new and Array.new(nil) causes the implicit conversion error so i'm assuming it's something like that. not sure what's with the trace.
<baweaver>
Ah
<baweaver>
Don't use -e
<baweaver>
that evaluates it as a literal ruby program instead of as a file
<con3>
ah dammit!
<con3>
thanks baweaver
<baweaver>
test is an actual Ruby function
<baweaver>
hence the error
<con3>
baweaver: any way I can get it to show the return values? Running ruby test.rb outputs nothing
<con3>
have tried verbose mode, etc
<baweaver>
puts
<baweaver>
Also return isn't needed there
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
<con3>
baweaver: thank you so much
<baweaver>
You have nothing that outputs to your console, STDOUT
<con3>
that solves my problem!
<con3>
just printed out 3
<baweaver>
Remember though that puts returns nil
<baweaver>
So don't use it in a method
<con3>
would that cause the method to exit with a return value of nil?
<con3>
or...?
<baweaver>
If you use it at the end of your program it's fine
<baweaver>
but if you put puts at the end of a method it'll return nil implicitly
* con3
has a long way to go
<baweaver>
Well we're around if you need help
<con3>
ah just added it in the method, it invalidates everything, function returns nil instead of 3. Good to know! thank you!
chouhoulis has quit [Ping timeout: 268 seconds]
sameerynho has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
<con3>
"The shell prints the expression whether we return or "puts" it"
<con3>
this doesn't seem to be true ^
sarink has joined #ruby
<baweaver>
The shell will show it, but that's STDOUT, not necessarily the return value
<baweaver>
so it does technically print
<phaul>
mikecmpbll: out of curiousity, how did you inherit this code, or what project is this?
<con3>
baweaver: I'm confused then... they seem to say that return values are printed to the shell/terminal. As dar as I know this isn't the case?
<mikecmpbll>
phaul: i don't maintain it, i'm just using it. it's maintained by sciruby
<baweaver>
They're not
<mikecmpbll>
the minimization project is for mathematical optimisation
<mikecmpbll>
nelder-mead is one such algorithm
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
hutch has quit [Ping timeout: 244 seconds]
<con3>
thank you baweaver :)
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
donofrio has quit [Remote host closed the connection]
ircuser has joined #ruby
sarink has quit [Remote host closed the connection]
<phaul>
well, things I spotted first look : method 78 is an interesting reinvention of spaceship. They random use return. They have classes for methods. method on 239 is waay too long and its repeating itself probably copy paste, but probably most methods are too long anyways. they use `and' when they meant &&.
davidw has quit [Ping timeout: 250 seconds]
<phaul>
but the task want to criticise the code but to figure out why the error message, so probably im no help :)
<phaul>
*wasn't
con3 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 244 seconds]
al2o3-cr has quit [Quit: WeeChat 2.3]
chouhoulis has joined #ruby
<mikecmpbll>
yeah. criticise away. to give the author his dues though, they are all style complaints. the code functions.
ircuser is now known as np4433
al2o3-cr has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
<mikecmpbll>
and his use of return is consist in that he uses it in every case that there is a method where the return value is important ;)
chouhoulis has joined #ruby
<mikecmpbll>
consistent*
uplime has quit [Quit: WeeChat 2.2]
uplime has joined #ruby
tdy has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<phaul>
look, I feel sorry for you to have to work with such old code, and I am speculating the author is long gone and the code is unmaintained for almost a decade, based on sciruby activity plus the licence in the file. The author made code that's used 9 years later, most of us can't say the same so he must have done some thing right... It's just that reading the code now wouldn't fill me with much confidence,
<phaul>
especially that probably you can't raise tickets, or contact the author. Maybe time to fork and take over?
chouhoulis has quit [Ping timeout: 268 seconds]
GodFather has quit [Ping timeout: 245 seconds]
davidw has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
\void has quit [Quit: So long, and thanks for all the fish.]
GodFather has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
davidw has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
sarink has quit [Ping timeout: 250 seconds]
arekushi has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
Renich_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Renich has quit [Ping timeout: 272 seconds]
Renich_ is now known as Renich
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
Renich_ has joined #ruby
chouhoulis has joined #ruby
Renich has quit [Ping timeout: 246 seconds]
Renich_ is now known as Renich
tdy has joined #ruby
rkazak has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
tiff has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
grvgr_ has quit [Quit: grvgr_]
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
orbyt_ has joined #ruby
tdy has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
rkazak has quit [Ping timeout: 246 seconds]
<baweaver>
phaul: I always get hung up on code style arguments
<baweaver>
On one hand it could probably be done better, but on the other it works
chouhoulis has joined #ruby
<baweaver>
Really I think I just fall in the camp of making it mutually understandable to whoever is working with you.
<baweaver>
Then codifying said standard to prevent shenanigans later.
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
KeyJoo has joined #ruby
rkazak has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
KeyJoo has quit [Quit: KeyJoo]
chouhoulis has joined #ruby
KeyJoo has joined #ruby
tdy has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
KeyJoo has quit [Client Quit]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
Dreamer3_ has joined #ruby
chouhoulis has joined #ruby
krawchyk has quit [Quit: krawchyk]
chouhoulis has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
KeyJoo has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
code_zombie has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
duderonomy has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
moei has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
unreal has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
nowhere_man has joined #ruby
creat has quit [Ping timeout: 250 seconds]
creat has joined #ruby
chouhoulis has joined #ruby
hutch has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
arekushi is now known as Guest33581
Guest33581 is now known as arekushi
Guest33581 is now known as arekushi
chouhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
rkazak has quit [Quit: Sleep.....ing....]
chouhoulis has joined #ruby
tdy has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
sanscoeur has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
r29v has quit [Quit: r29v]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
arekushi is now known as Guest33581
Guest33581 is now known as arekushi
arekushi is now known as Guest33581
GodFather has quit [Ping timeout: 250 seconds]
Guest33581 is now known as arekushi
braincrash has quit [Quit: bye bye]
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
xlued has quit [Remote host closed the connection]
sanscoeur has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
xlued has joined #ruby
braincrash has joined #ruby
sanscoeur has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
nowhere_man has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
cschneid has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 250 seconds]
davidw has joined #ruby
chouhoulis has joined #ruby
tdy has quit [Ping timeout: 246 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
grvgr has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
rkazak has joined #ruby
flips_ has joined #ruby
flips has quit [Read error: Connection reset by peer]
flips_ is now known as flips
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
sarink has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
sarink has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarink has quit [Ping timeout: 272 seconds]
sanscoeur has quit [Remote host closed the connection]
chouhoulis has joined #ruby
tdy has joined #ruby
code_zombie has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 268 seconds]
duderonomy has joined #ruby
chouhoulis has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 245 seconds]
dellavg_ has joined #ruby
chouhoulis has joined #ruby
hutch has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
hutch has joined #ruby
tdy has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
dinfuehr has quit [Ping timeout: 268 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
dinfuehr has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
dinfuehr has quit [Ping timeout: 250 seconds]
hutch has quit [Ping timeout: 272 seconds]
dinfuehr has joined #ruby
nowhere_man has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
DTZUZO has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
marmotini_ has joined #ruby
rrichardsr3 has joined #ruby
hutch has joined #ruby
zenogais has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
rrichardsr3 has quit [Client Quit]
chouhoulis has joined #ruby
DTZUZO has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 272 seconds]
dellavg_ has quit [Ping timeout: 245 seconds]
tdy has joined #ruby
chouhoulis has joined #ruby
reber has joined #ruby
reber has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
Fusl has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
Fusl has joined #ruby
chouhoulis has quit [Ping timeout: 268 seconds]
grvgr has joined #ruby
esrse has joined #ruby
chouhoulis has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
davidw has quit [Ping timeout: 246 seconds]
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
conta has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
grvgr has quit [Quit: grvgr]
Cthulu201 has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 250 seconds]
Cthulu201 has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
hutch has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
mozzarella has quit [Remote host closed the connection]
sanscoeur has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
maufart__ has joined #ruby
mozzarella has joined #ruby
sanscoeur has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
chouhoulis has joined #ruby
Inline has quit [Quit: Leaving]
chouhoulis has quit [Ping timeout: 258 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
Nicmavr has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
Leopere has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
aupadhye has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
duderonomy has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
Xiti` has joined #ruby
Xiti` has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Xiti has quit [Ping timeout: 250 seconds]
jinie has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
AlHafoudh has joined #ruby
chouhoulis has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
djdduty has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 252 seconds]
profetes has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
Renich has quit [Quit: Renich]
ansraliant has joined #ruby
chouhoulis has joined #ruby
djdduty has joined #ruby
tiff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
aupadhye has quit [Ping timeout: 252 seconds]
aupadhye has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
ansraliant has quit [Quit: My planet needs me]
nowhere_man has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
chouhoulis has joined #ruby
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
thebigj has left #ruby [#ruby]
chouhoulis has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
aupadhye has quit [Ping timeout: 250 seconds]
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
marz_d`ghostman has joined #ruby
<marz_d`ghostman>
Why am I getting an error: mirror_manager.rb:74:in `block in <class:Manager>': undefined method `send_error_notification' for Rise::MirrorManager::Manager:Class (NoMethodError) for my code: https://termbin.com/denk
<phaul>
because Rise::MirrorManager::Manager does not have send_error_notification method. I bet it has an instance method with that name, that comes from the included Rise::MirrorManager::Notification.
<phaul>
but the existance of the instance method is just speculation. What the error says is that there is no class method
chouhoulis has quit [Ping timeout: 250 seconds]
aupadhye has joined #ruby
chouhoulis has joined #ruby
<marz_d`ghostman>
phaul: It does, does it matter if it's private or not? I think I'm calling it inside the object context. Perhaps I'm wrong with this at_exit method
lxsameer has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
<phaul>
it doesn't matter if it's private.
chouhoulis has joined #ruby
<phaul>
you are calling it in class context
<phaul>
ah the instance method is defined just a few lines up on line 47, not included from the module.
<marz_d`ghostman>
I tried invoking the method directly via Rise::MirrorManager::Notification.send_slack_message, but it gives me the same error
<phaul>
class X; def x; end; end # is x class or instance method in this example?
<leftylink>
&>> at_exit { p :Etesting }
chouhoulis has quit [Ping timeout: 246 seconds]
<rubydoc>
# => #<Proc:0x000056538b10cb80@-e:2> ...check link for more (https://carc.in/#/r/5yru)
<leftylink>
oops ,accidental E
<leftylink>
unfortunately, either way guess this is not helpful
<leftylink>
oh, but it does get shown in the link
<marz_d`ghostman>
Ah, I made the module method as a class method via module_function so I can call it in class context
chouhoulis has joined #ruby
fiachetti has joined #ruby
<phaul>
send_error_notification is defined in the class as an instance method on line 47, and is not a module_function. unless you also define it in modules that you don't show us
chouhoulis has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
<phaul>
&>> class X; at_exit { p self }; end
<rubydoc>
# => #<Proc:0x00005651496ab738@-e:2> ...check link for more (https://carc.in/#/r/5yrv)
ur5us has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
<phaul>
to reproduce this with a minimal example:
<phaul>
&>> class Manager; def send_error_notification; end; at_exit { send_error_notification }; end
<bijan_>
Hi is anyone using Textmate2 for Rails with ctags? Wondering how to get gems also included...
<catphish>
you can puts within the case statement, or it can return a value as in my link example
nowhere_man has quit [Ping timeout: 252 seconds]
<catphish>
am0123_: good luck :)
<am0123_>
Thank ...
chouhoulis has quit [Ping timeout: 258 seconds]
chouhoulis has joined #ruby
<am0123_>
Now, I don't understand why does `when ("A".."M").include? char` not work while `when (("A".."M").include? char)==true` ? both of the return true of false !!
<catphish>
`when ("A".."M").include? char` should work... it evaluates to true when the char is in that range
<catphish>
then the case statement compares true with true
<catphish>
it's just a horrible way to use "case", you might as well just use if and elsif
chouhoulis has quit [Ping timeout: 258 seconds]
apparition has joined #ruby
uplime has quit [Ping timeout: 250 seconds]
<am0123_>
I believe that it's a horrible code XD ... but the interpreter seems reject this code
<am0123_>
syntax error, unexpected tIDENTIFIER, expecting keyword_then or ',' or ';' or '\n'
<am0123_>
when ("A".."M").include? char
<catphish>
try using parenthesis
<catphish>
("A".."M").include?(char)
<catphish>
ruby allows method calls without them, but sometimes it's ambiguous and hence not valid
<catphish>
i prefer to always use them
<am0123_>
It's accepted now
<am0123_>
thank you :)
<catphish>
don't do "case true" though
<catphish>
if you find yourself doing that, just use "if"
<phaul>
as a side not there is a boolean case syntax in ruby with ommitting the expression after the case, and just listing whens.
chouhoulis has joined #ruby
<catphish>
phaul: interesting
<phaul>
&>> case; when 3.odd? then 'odd'; when 3.even?; then 'even'; end
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dviola>
just got a rejection because apparently my code isn't too sandimetz-y
<dviola>
one day, one day...
sameerynho has quit [Quit: WeeChat 2.2]
SeepingN has joined #ruby
tdy has joined #ruby
orbyt_ has joined #ruby
<phaul>
dviola: take that with a pinch of salt
chouhoulis has quit [Ping timeout: 268 seconds]
<phaul>
SM also said first we should just "throw code at the wall and see what sticks".
hiroaki has joined #ruby
grvgr has quit [Quit: Connection closed for inactivity]
<phaul>
they meant isn't sandimetz-y _enough_ - right?
<dviola>
"A single class/object (`People`) that handles all operations and holds all state is not enough OOP for what we're looking for."
chouhoulis has joined #ruby
<mspo>
OOP more, obviously
<mspo>
they wanted more inheritance?
<dviola>
I didn't ask
<dviola>
maybe
<dviola>
I replied saying I looked at their repos and couldn't find a single one that the reflects the style they are looking for
<mspo>
was this an interview?
<dviola>
yes
<mspo>
that is weirdly specific
<mspo>
imho
<mspo>
without a *lot* of very specific guidance being given
profetes has joined #ruby
<dviola>
he also said this:
<dviola>
"The extension task/requirement, in our tech interview, would've been very difficult with your solution. You would've had to have done quite a bit of live refactoring. Just saving both of us the trouble. Yes, "not enough OOP" is an entirely subjective opinion, and it's just about compatibility/fit, rather than right/wrong. You have zero reason to change your coding style from this interview."
<mspo>
so there were followup things in the in-person
<mspo>
and he didn't think your initial take-home was flexible enough to solve those
clemens3 has quit [Ping timeout: 246 seconds]
<dviola>
it was for a remote position
<mspo>
brutal
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mspo>
dviola: clearly you can only ever write in a single style and would never absorb institutional practices
<dviola>
ha :P
uplime has quit [Quit: WeeChat 2.2]
* dviola
reads the POODR
twobitsprite has joined #ruby
maryo_ has joined #ruby
<phaul>
this also reminds me the break up phrase "it's not you - it's me". Thanks very much. we all know what that means. If they beleive in what they are saying they should at least stand by it, rather than this "fit/compatibility" nonsese. Also introducing classes for the sake of it is just stupid and nothing more but cargo cult programming.
maryo has quit [Ping timeout: 272 seconds]
crankharder has quit [Remote host closed the connection]
tomaw has quit [Read error: Connection reset by peer]
tomaw has joined #ruby
<dviola>
agreed
crankharder has joined #ruby
d^sh has joined #ruby
<dviola>
silver bullet thinking
conta has quit [Quit: conta]
Wafficus has joined #ruby
<Wafficus>
hi there is Learn Ruby The Hard Way a good beginner resource? if not, what is a better one?
<Wafficus>
zenspider: www.musimatic.net is my site so let me know if im too much a be beginner
arup_r has quit []
<dviola>
that's just sad
gix has joined #ruby
tdy has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 246 seconds]
Azure has quit [Remote host closed the connection]
<Iambchop>
Wafficus: I have LRTHW and it looks like a fine option. If its style works for you, go with it; the channel topic has a link to more book suggestions: https://goo.gl/wpGhoQ
<Wafficus>
cool thanks
Dreamer3_ has quit [Quit: Leaving...]
drale2k_ has joined #ruby
drale2k_ has quit [Client Quit]
polishdub has quit [Quit: leaving]
arquebus has joined #ruby
lytol_ has quit [Remote host closed the connection]