matcouto has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
<matthewd>
You can just set a local variable first
bkxd has joined #ruby
<matthewd>
foo = self; class_eval do .. foo .. end
matcouto has joined #ruby
charliesome has joined #ruby
<anotherpi>
ok… but the test is: `it 'has self as the visitor in blocks' do`
ResidentBiscuit has joined #ruby
<anotherpi>
so it's kinda untestable :o
<matthewd>
Oh!
<matthewd>
Then that sounds like a legitimate test failure
s0l__ has joined #ruby
<anotherpi>
yep, but it works, because my implementation does not use a class_eval
<anotherpi>
here i am in the test
matcouto has quit [Ping timeout: 260 seconds]
<matthewd>
It sounds like the test expects def_visit to use instance_exec
<anotherpi>
may i can solved this with a less-metaprogramming way
ResidentBiscuit has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Remote host closed the connection]
<anotherpi>
matthewd: you are right
<anotherpi>
but still not working
<anotherpi>
have to sleep
<anotherpi>
thank you for your help
<anotherpi>
see you
anotherpi has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
blackmesa has joined #ruby
ResidentBiscuit has joined #ruby
saneax is now known as saneax-_-|AFK
ResidentBiscuit has quit [Remote host closed the connection]
matcouto has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
s0l__ has quit [Read error: Connection reset by peer]
hahuang65 has quit [Quit: WeeChat 1.5]
s0l__ has joined #ruby
Rodya_ has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 240 seconds]
elifoster has joined #ruby
jhack has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.7]
Guest55967 has quit [Remote host closed the connection]
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
esObe has quit [Remote host closed the connection]
esObe has joined #ruby
tau has joined #ruby
esObe has quit [Client Quit]
hutch34 has quit [Ping timeout: 240 seconds]
siwica has quit [Ping timeout: 240 seconds]
jgnagy has joined #ruby
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 268 seconds]
mtkd has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
nowhereman has joined #ruby
username_ has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
benlieb has quit [Quit: benlieb]
ramortegui has quit [Quit: Ex-Chat]
shinnya has quit [Ping timeout: 260 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
tvw has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
shwouchk has quit [Quit: Connection closed for inactivity]
tau has quit [Remote host closed the connection]
Derperperd has joined #ruby
gloscombe_ has quit [Quit: gloscombe_]
Channel6 has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
s0l__ has quit [Read error: Connection reset by peer]
paradisaeidae has quit [Ping timeout: 240 seconds]
paradisaeidae_ has quit [Ping timeout: 260 seconds]
gsilva has quit [Ping timeout: 240 seconds]
droids___ has joined #ruby
s0l__ has joined #ruby
s0l__ has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
<droids___>
I've started using SimpleCov for coverage. But I just realized it only works with classes. Is there any way to get coverage for "non-classed" code? Either with SimpleCov or some other tool.
cpruitt has quit [Quit: cpruitt]
brent__ has quit [Ping timeout: 240 seconds]
s0l__ has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
s0l__ has quit [Read error: Connection reset by peer]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
jhack has quit [Quit: jhack]
hutch34 has joined #ruby
matcouto has quit []
jhack has joined #ruby
paradisaeidae has joined #ruby
paradisaeidae_ has joined #ruby
s0l__ has joined #ruby
droids___ has quit [Quit: bye...]
opt9 has quit [Ping timeout: 240 seconds]
benlieb has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
KC_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
whathappens has quit [Remote host closed the connection]
<KC_>
im sure you are all wondering why i have assembled you here
tau has joined #ruby
whathappens has joined #ruby
pilne has quit [Quit: Quitting!]
<Radar>
yes
<Radar>
it's about time you came along. I've been here for years.
<KC_>
well wait no further my friend.. i am here
Derperperd has quit [Quit: WeeChat 1.5]
jenrzzz has quit [Ping timeout: 260 seconds]
whathappens has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar>
KC_: You say "wait no further" but that's all I find myself doing.
<Radar>
I wait with bated breath on your every word
<KC_>
Radar: patience my friend.. i am strategizing a plan
johnny56_ has quit [Ping timeout: 264 seconds]
<KC_>
what is everyone's favorite thing about ruby? just curious
<Radar>
Its expressiveness and ease-of-use.
<KC_>
just off the top of your head
<Radar>
It's just beautiful to work for.
<Radar>
work with*
bkxd has joined #ruby
<KC_>
agreed. Do you feel that python is too rigid as i do?
johnny56_ has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<Radar>
I haven't used it much to have an opinion.
<dgs>
Radar: are you the radar guy from the australian rails camps?
<Radar>
dgs: yes, amongst other things
<dgs>
ahh
<dgs>
thought so
<dgs>
=p
<dgs>
you going to the one this weekend?
d0nn1e has quit [Ping timeout: 255 seconds]
<Radar>
dgs: Nope, I'm staying home this time
<Radar>
dgs: Things have changed since the baby came along
<Radar>
For the better, I should add
<dgs>
fair enough. long way to go to get to chch
<dgs>
ahh. didn't know you'd had one! congrats =)
<dgs>
i remember having to miss one about 3 years cause my partners due date was on the saturday of the camp
<Radar>
"Hey love, I'm just going to go Christchurch for RailsCamp for 4 days leaving you at home with the bub. Oh and btw I may be uncontactable for that whole time. GLHF"
<dgs>
typically there was baby that weked
<Radar>
dgs: thanks :)
KC_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
d0nn1e has joined #ruby
cdg has joined #ruby
jhack has quit [Quit: jhack]
jhack_ has joined #ruby
jhack_ has quit [Remote host closed the connection]
<dgs>
whoops, i meant, typically there was *no* baby arriving that weekend =p
jhack has joined #ruby
jhack has quit [Changing host]
jhack has joined #ruby
<Radar>
hah :) Same as mine. She was due Aug 24th so I took my 4 weeks paternity leave off from that week... and she came two weeks later.
<dgs>
haha
<dgs>
oh well, two weeks off with no baby at least =p
<dgs>
does australia give 4 weeks paternity leave?
<Radar>
Key sentence in that is "Employees are eligible to take parental leave if they have worked for their employer for at least 12 months"
<Radar>
Fortunately I negotiated this leave with CultureAmp
jhack has quit [Client Quit]
jhack has joined #ruby
antoniobeyah has quit [Quit: Connection closed for inactivity]
<dgs>
ah yup. unpaid though?
<dgs>
i remember when I had my first kid... (being not much more than a kid), and my boss said... "kids are important - take all the time off you need"
<dgs>
just no pay for it =(
<dgs>
had just started work a few months before earning 2/10ths of sfa, so no leave for me =/
mogaj has joined #ruby
enterprisey has joined #ruby
djbkd has joined #ruby
<Radar>
yes it was unpaid
tyang__ has joined #ruby
tyang_ has joined #ruby
jenrzzz has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
duderonomy has quit [Ping timeout: 240 seconds]
tyang__ has quit [Ping timeout: 240 seconds]
pepsimax has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ResidentBiscuit has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
cdg has quit [Remote host closed the connection]
opt9 has joined #ruby
tyang_ has quit [Read error: Connection reset by peer]
d^sh has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
d^sh has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
mogaj has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: Leaving]
jtdoncas has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
case__ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mogaj has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
CloCkWeRX has joined #ruby
rkazak has quit [Ping timeout: 260 seconds]
jameser has joined #ruby
paradisaeidae__ has joined #ruby
sspreitz has quit [Ping timeout: 240 seconds]
paradisaeidae___ has joined #ruby
sspreitz has joined #ruby
Rodya_ has quit [Remote host closed the connection]
paradisaeidae_ has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
paradisaeidae has quit [Ping timeout: 240 seconds]
paradisaeidae__ is now known as paradisaeidae
bkxd has quit [Ping timeout: 240 seconds]
benlieb has quit [Quit: benlieb]
amclain has quit [Quit: Leaving]
Rodya_ has joined #ruby
cdg has joined #ruby
xsdg has quit [Ping timeout: 240 seconds]
xsdg has joined #ruby
Kireji has joined #ruby
<Kireji>
I'm installign a Ruby gem, and it's flagging a conflict, trying to install an executable into /usr/local/bin/scss - but there's a python script there now. how can I figure out if there's a package that put it there?
<Kireji>
and if I want to keep the python package, how do I resolve the conflict that both a python package and a rugy gem both want to put a file into /usr/local/bin/scss ?
<Kireji>
apt shows nothing, so I'm guessing a python package put something there
nobitanobi has joined #ruby
jtdoncas has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
<nofxxx>
Kireji, apt have a who owns thing... if it's not apt it's python yeah
<nofxxx>
safe to rm
<nofxxx>
Kireji, you'll have to manually rename one
nobitanobi has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 268 seconds]
Rodya_ has quit [Remote host closed the connection]
jameser has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
xall has joined #ruby
hutch34 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
cdg has quit [Read error: Connection reset by peer]
jameser has joined #ruby
cdg has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
ruby-lang481 has joined #ruby
Channel6 has quit [Quit: Leaving]
charliesome has joined #ruby
bmurt has joined #ruby
mim1k has joined #ruby
JoshS has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
xall_ has joined #ruby
malconis has quit [Read error: Connection reset by peer]
ruby-lang481 has quit [Quit: Page closed]
xall has quit [Ping timeout: 260 seconds]
nalgritz has joined #ruby
govg has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
nalgritz has left #ruby [#ruby]
malconis has joined #ruby
nalgritz has joined #ruby
Rodya_ has joined #ruby
nalgritz has left #ruby [#ruby]
jackjackdripper has quit [Ping timeout: 240 seconds]
nalgritz has joined #ruby
Definity2 has joined #ruby
nalgritz has left #ruby ["Good Bye"]
xall has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
xall_ has quit [Read error: Connection reset by peer]
nalgritz has joined #ruby
charliesome has joined #ruby
bkxd has joined #ruby
case_ has joined #ruby
braincrash has quit [Quit: bye bye]
hahuang65 has joined #ruby
znz_jp has quit [Remote host closed the connection]
Silthias has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
Silthias2 has quit [Ping timeout: 255 seconds]
cibs has joined #ruby
matcouto has joined #ruby
Azure has quit [Ping timeout: 255 seconds]
znz_jp has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
brent__ has quit [Remote host closed the connection]
Joufflu has joined #ruby
<synstack>
This book claims "You're not going to be taken seriously as a Ruby developer unless you use Test::Unit or Rspec to write tests as you write code"
<synstack>
Am I a weenie for using minitest
<baweaver>
yes
<baweaver>
how dare you
<baweaver>
get out
<baweaver>
Joking aside, it doesn't matter.
<baweaver>
unless you don't test period, then that's an issue.
<hellowarz>
ok i'll get out D:
tau has quit [Quit: shutdown -h now]
rigel_ has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
sneakerhax has joined #ruby
kies has quit [Ping timeout: 268 seconds]
haraoka has joined #ruby
tau has joined #ruby
tau has quit [Client Quit]
govg has joined #ruby
kies has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<Radar>
synstack: which book?
<synstack>
Radar: just started Refactoring: Ruby Edition
<synstack>
my question was a little tongue-in-cheek, knowing its from 2009
ResidentBiscuit has joined #ruby
patarr has joined #ruby
gix has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
ResidentBiscuit has quit [Ping timeout: 240 seconds]
<synstack>
I am wondering though, how I would best approach writing tests for a program that uses a third party gem (RMagick) to generate its output (an image)
gix has joined #ruby
patarr has quit [Ping timeout: 268 seconds]
rafadc has joined #ruby
hutch34 has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matcouto_ has joined #ruby
matcouto has quit [Ping timeout: 240 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
jgnagy has joined #ruby
matcouto_ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgnagy has quit [Ping timeout: 260 seconds]
<Radar>
Do you want to test the output and verify what the image is?
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
cdg_ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
charliesome has joined #ruby
xall has quit [Ping timeout: 240 seconds]
<synstack>
Hm. Radar ideally I'd like to have unit tests for the entire thing, an integration test would be simple enough. I feel like unit testing would end up being a lot of comparison against a lot of image files...
cdg has quit [Ping timeout: 240 seconds]
<Radar>
getting a computer to read + understand an image is a really hard problem
squ has joined #ruby
<Radar>
Comparing images I think is much easier... but no tool for that comes to mind
paradisaeidae has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
paradisaeidae___ has quit [Quit: ChatZilla 0.9.93 [Firefox 51.0.1/20170125094131]]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
anisha has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
bocaneri has joined #ruby
Rodya_ has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
Cohedrin has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
renchan has joined #ruby
postmodern_ has joined #ruby
l4v2 has quit [Quit: l4v2]
mim1k has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
bkxd has joined #ruby
jackjackdripper has joined #ruby
xall has joined #ruby
DaniG2k has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
hutch34 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
DaveTaboola has joined #ruby
tercenya_ has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 260 seconds]
tercenya has quit [Ping timeout: 268 seconds]
enterprisey has quit [Remote host closed the connection]
dminuoso has quit [Changing host]
dminuoso has joined #ruby
matthewd has quit [Ping timeout: 260 seconds]
cyphase has quit [Ping timeout: 240 seconds]
matthewd has joined #ruby
jtdoncas has quit [Ping timeout: 240 seconds]
cyphase has joined #ruby
mogaj has quit [Remote host closed the connection]
<elomatreb>
yuppie: It does what you want, but generally it's not idiomatic Ruby
hutch34 has quit [Ping timeout: 240 seconds]
<yuppie>
elomatreb is there a "better" way?
<elomatreb>
`contact = ec2.instances[instance].tags['primary_contact'] || "your_fallback"` is a common idiom
<nOwz>
ow, wouldn't have thing that in this way, it's better yeah
<yuppie>
thanks guys
jetWhidbey has joined #ruby
ledestin has joined #ruby
aufi has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
jetWhidbey has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
tristanp has quit [Remote host closed the connection]
TomyWork has joined #ruby
Burgestrand has joined #ruby
djbkd_ has joined #ruby
minimalism has quit [Quit: minimalism]
pwnd_nsfw has joined #ruby
nOwz has quit [Quit: WeeChat 1.7]
pwnd_nsfw` has quit [Ping timeout: 255 seconds]
mogaj has quit [Remote host closed the connection]
User458764 has joined #ruby
Burgestrand has quit [Client Quit]
vuoto has joined #ruby
<dminuoso>
yuppie: :instance_status and :instance_state
* dminuoso
pokes you with a stick
pwnd_nsfw` has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
UserJosh has joined #ruby
<yuppie>
dminuoso what?
pwnd_nsfw has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
blaxter has joined #ruby
mark_66 has joined #ruby
<dminuoso>
yuppie: look at lines 10 and 11
<dminuoso>
yuppie: Is that intentional that you have both set[:instance_state] and set[:instance_status] ?
<yuppie>
hm, let me look
<yuppie>
the whole script is much larger
jshjsh has quit [Ping timeout: 240 seconds]
s0l__ has quit [Ping timeout: 252 seconds]
<dminuoso>
yuppie: I mean I have never worked with EC2 stuff before, maybe that code is legit. But to me it's a smell.
jdm_ has quit [Remote host closed the connection]
aupadhye has joined #ruby
djbkd_ has quit []
govg has quit [Ping timeout: 268 seconds]
last_staff has quit [Quit: last_staff]
Xentil has joined #ruby
jdm has joined #ruby
teclator has joined #ruby
jshjsh has joined #ruby
certainty has joined #ruby
andikr has joined #ruby
UserJosh has quit [Ping timeout: 255 seconds]
Definity2 has quit [Quit: Nettalk6 - www.ntalk.de]
mikecmpbll has joined #ruby
cschneid_ has joined #ruby
patarr has joined #ruby
toretore has joined #ruby
last_staff has joined #ruby
tvw has joined #ruby
cschneid_ has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 268 seconds]
nijimac056 has joined #ruby
<nijimac056>
test
matcouto has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
nijimac056 has left #ruby [#ruby]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
s0l__ has joined #ruby
antgel has joined #ruby
mogaj has joined #ruby
nijimac056 has joined #ruby
nijimac056 has left #ruby [#ruby]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
mogaj has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
mogaj has joined #ruby
ResidentBiscuit has joined #ruby
minimalism has joined #ruby
govg has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
sagax has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
ResidentBiscuit has quit [Ping timeout: 240 seconds]
jetWhidbey has joined #ruby
nOwz has joined #ruby
blaxter has quit [Quit: foo]
Burgestrand has joined #ruby
milardovich has quit []
mim1k has joined #ruby
jetWhidbey has quit [Ping timeout: 260 seconds]
Morrolan has quit [Quit: Goodbye]
anisha has quit [Quit: This computer has gone to sleep]
brent__ has joined #ruby
pandaant has joined #ruby
cibs has quit [Ping timeout: 260 seconds]
Morrolan has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
mogaj has quit [Remote host closed the connection]
flying has joined #ruby
cibs has joined #ruby
MrBleu has joined #ruby
<MrBleu>
Hey guys, there is a ruby syntax i do not really understand, can someone points me to a document please ? the guilty code is here : https://gist.github.com/jakemcgraw/305778 on line 7 for instance
<elomatreb>
The `... => ...` part?
brent__ has quit [Ping timeout: 260 seconds]
<MrBleu>
The whole line i would say . Puppet::Type.type(:package).provide this for instance, i gesse it means : call this function , but the :package , is unknown to me.
<elomatreb>
Basically very lightweight strings, often used for identifiers
mogaj has quit [Remote host closed the connection]
<MrBleu>
okay , it is some kind of constant , but in the whole program.
<MrBleu>
got it .
MasterNayru has joined #ruby
<MrBleu>
so far : call the Puppet::Type.type(:package) and call the provide function from the returned value.
tomphp has joined #ruby
<elomatreb>
Yep
bkxd has joined #ruby
CloCkWeRX has joined #ruby
<MrBleu>
A, if i understand well, the provide is then called using the :pear and :parent variables ?
mogaj has joined #ruby
<elomatreb>
You could write that call as `.provide(:pear, { :parent => Puppet::Provider::Package })
Silthias has joined #ruby
mim1k has joined #ruby
<MrBleu>
so :parent is redefined here.
<elomatreb>
Parentheses on method calls are often optional in Ruby, and if the last argument to a method call is a Hash, you may leave off the curly braces too
nOwz has joined #ruby
<elomatreb>
The thing in {} is a Hash, basically a key-value structure
lxsameer has joined #ruby
anisha has joined #ruby
Silthias2 has quit [Ping timeout: 255 seconds]
mogaj has quit [Remote host closed the connection]
<xpt>
Need more coffee. I've tried to solve kata from codewars.com , I choose one and started to write ruby code. Tried to solve it. Then I got this odd errors. It took me a while before I relised that "public static string Encrypt(string text)" doesn't look like ruby code :D
conta has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
pulkit4tech has joined #ruby
* xpt
forgot to login before trying to solve it so it choose C# or something
mogaj has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
jsrn has joined #ruby
JoshS has joined #ruby
ferr1 has joined #ruby
jinie has joined #ruby
jshjsh has quit [Ping timeout: 268 seconds]
gsilva has joined #ruby
biberu has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
mogaj has quit [Remote host closed the connection]
<MrBleu>
okay elomatreb , this is already a lot of explanation :) thanks
mogaj has joined #ruby
blackmesa has joined #ruby
nettoweb has joined #ruby
dionysus69 has joined #ruby
jetWhidbey has joined #ruby
* xpt
was supposed to write that on #ruby-offtopic :/
User458764 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
ChrisWarrick has left #ruby ["ruby is pretty nice, but your idioms are crazy"]
jetWhidbey has quit [Ping timeout: 268 seconds]
conta has joined #ruby
fewspider has quit [Remote host closed the connection]
pulkit4tech has quit [Quit: pulkit4tech]
nalgritz has quit [Quit: nalgritz]
pulkit4tech has joined #ruby
haraoka has quit [Ping timeout: 240 seconds]
postmodern_ has quit [Quit: Leaving]
roamingdog has joined #ruby
vuoto has quit [Remote host closed the connection]
mitt3ns has joined #ruby
marxarelli|afk has quit [Read error: Connection reset by peer]
nofxxx has quit [Ping timeout: 240 seconds]
mogaj has quit [Remote host closed the connection]
agent_white has quit [Ping timeout: 240 seconds]
nettoweb1 has joined #ruby
mogaj has joined #ruby
znz_jp has quit [Ping timeout: 240 seconds]
nettoweb has quit [Ping timeout: 240 seconds]
ElFerna has joined #ruby
pulkit4tech has left #ruby [#ruby]
znz_jp has joined #ruby
jameser has quit [Ping timeout: 260 seconds]
patarr has joined #ruby
mogaj has quit [Remote host closed the connection]
nobitanobi has joined #ruby
patarr has quit [Ping timeout: 255 seconds]
ElFerna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Joufflu has quit [Quit: Leaving]
mogaj has joined #ruby
ikopico has joined #ruby
squ has quit [Ping timeout: 245 seconds]
kernelPaniq has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
pulkit4tech has joined #ruby
ElFerna has joined #ruby
<nOwz>
it looks like i made a mistake, my code works without "chatroom: roomid" but if i'm adding this line I caught a strange "error"
<Burgestrand>
It's possible there's a celluloid-based client somewhere as well, I know I worked with one a few years back but I can't remember if I built it myself or not
<fuzzyhorns>
how do yall feel about keyword arguments?
<flujan>
Burgestrand: yeah. I hit those will check celluloid… Thanks for the tip.
<Burgestrand>
fuzzyhorns they're nice as long as they're not superfluous
Qchmqs has quit [Ping timeout: 268 seconds]
<fuzzyhorns>
Burgestrand: i tend to think if you're using more than 3 in a signature, you should prob extract to an object to pass in (even an extremely lightweight one like a struct)
mtkd has joined #ruby
<Burgestrand>
flujan ah, that makes sense. Reason I asked was that if you're already using EventMachine you could just as well use the EM-based WS library, but if you're building something new you might want more choices.
gsilva has joined #ruby
<Burgestrand>
fuzzyhorns that's a given, but I thought you asked on keywords vs positional arguments
<Burgestrand>
fuzzyhorns my bad :)
ResidentBiscuit has quit [Ping timeout: 255 seconds]
<fuzzyhorns>
Burgestrand: oh sure, just thinking through
<fuzzyhorns>
Burgestrand: this coder has used them *everywhere* for *every* call because they make signatures "more explicit"
<fuzzyhorns>
which i dont really buy :/
<Burgestrand>
fuzzyhorns e.g. objc/swift uses keyword arguments heavily, and most of the time(*) the first argument is never a keyword, similarly most of the time argument 2+ is a keyword
<fuzzyhorns>
interesting
Trynemjoel has joined #ruby
<elomatreb>
They rarely make sense for methods with one (mandatory) argument, but as soon as there are two it can become difficult to arrange them in an order that makes sense
<fuzzyhorns>
mm, though this'd mean the sweet spot is 2 arguments basically
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
Rutix has joined #ruby
Rutix has joined #ruby
Rutix has quit [Changing host]
tristanp has joined #ruby
ponga has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
ponga has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
mogaj has joined #ruby
banisterfiend has joined #ruby
nowhereman has joined #ruby
mark_66 has quit [Remote host closed the connection]
gusrub has joined #ruby
dcluna has joined #ruby
l4v2 has quit [Quit: l4v2]
cschneid_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SteenJobs has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
Emmanuel_Chanel has joined #ruby
CAPRA-MAU has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
CheckRecipient has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
SteenJobs has quit [Client Quit]
SteenJobs has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
<CheckRecipient>
Hi all, I'm Sabrina, Chief of Staff at CheckRecipient, a machine learning company in London. We're tying to get involved in the London Ruby community so figured I'd see if people are around :)
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
psychicist__ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
miguelfernandes has joined #ruby
brendan- has quit [Ping timeout: 260 seconds]
nettoweb has joined #ruby
aglorei has quit [Remote host closed the connection]
aglorei has joined #ruby
Snickers has joined #ruby
bmurt has joined #ruby
brendan- has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
synthroid has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
mitt3ns has joined #ruby
binaryplease has joined #ruby
d0nn1e has joined #ruby
redhedded1 has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
username1 has joined #ruby
marr has quit [Read error: Connection reset by peer]
<Papierkorb>
newrubycoder: You could use a proc like this: `case 3; when ->(x){ x > 1 } then puts "ok"; end` But that's much harder to read than a simple if
mim1k has joined #ruby
bkxd has joined #ruby
<newrubycoder>
Papierkorb: doing an exercise where if is illegal to use. 0..50 works fine, but it would be ridicolous to write like 100..(max integer)
<Papierkorb>
newrubycoder: actually, I'd go with the `100..max_int` solution over the (still possible) proc solution
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<baweaver>
newrubycoder: link to question?
<Papierkorb>
newrubycoder: Cause that reads like "when that thing is between 100 and that max_int, do this", while for the proc, the reader has to decipher that intent first
<newrubycoder>
Papierkorb: do you know the max integer? or is max_int correct?
<Papierkorb>
No I abbreviated that, it's pseudo-ish code, not the real solution
centrx has quit []
<newrubycoder>
honestly i guess the way the exercise is framed, i can just put it in the else, but then the code wont work for negative integers which is sort of a bug
Azure has quit [Quit: Oops.]
mim1k has quit [Ping timeout: 240 seconds]
TheDukh has quit []
disconnekted has quit []
<Papierkorb>
newrubycoder: Looking at 4), your idea with the case solution using ranges sounds good to me
mim1k has joined #ruby
<baweaver>
It says explicitly that it's for 0 to 100
<baweaver>
don't worry about edge cases not in the problem spec
Azure has joined #ruby
<baweaver>
because it'd be silly to use a case statement for this in real code anyways
xen0fon has quit [Remote host closed the connection]
rwb has joined #ruby
mtkd has quit [Ping timeout: 255 seconds]
mtkd has joined #ruby
TheBrayn has joined #ruby
biberu has quit []
el_ocho[m] has joined #ruby
__Yiota has joined #ruby
benlieb has quit [Quit: benlieb]
nettoweb has joined #ruby
<newrubycoder>
Papierkorb: btw what does the -> symbol do?
tomphp has joined #ruby
<Papierkorb>
newrubycoder: `->(x){ y }` is the stabby-lambda (because -> looks like a dagger or so), which takes `x` as arguments and will execute `y` when #call'd. It is almost identical to `lambda{|x| y}`
jsgrant- has quit [Quit: Peace Peeps. o/ If you need me asap, message me at msg@jsgrant.io & I'll try to get back to you within 36 hours.]
<Papierkorb>
newrubycoder: Actually, the parantheses are optional. You could also write `-> x { y }`, but I think most do write the parantheses for readability
tomphp has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 240 seconds]
<newrubycoder>
seems useful tbh
<Papierkorb>
it absolutely it
<Papierkorb>
it absolutely is *
hahuang65 has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: bbl]
jenrzzz has quit [Ping timeout: 260 seconds]
toretore has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
ruby[bot] has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
jtdoncas has joined #ruby
safetypin has quit [Quit: ZZZzzz…]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
banisterfiend has joined #ruby
mogaj has joined #ruby
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
mogaj has quit [Ping timeout: 240 seconds]
ljarvis has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ljarvis has joined #ruby
Lord_of_Life has quit [Excess Flood]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lord_of_Life has joined #ruby
cagomez has quit [Remote host closed the connection]
skweek has joined #ruby
cagomez has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
cagomez has quit [Remote host closed the connection]