Linux_Kerio has quit [Read error: Connection reset by peer]
aesthetikx has joined #ruby
aesthetikx has quit [Ping timeout: 272 seconds]
aesthetikx has joined #ruby
dannyAAM has quit [Ping timeout: 276 seconds]
dannyAAM has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
konsolebox has joined #ruby
ih8u2 has joined #ruby
mange has quit [Ping timeout: 276 seconds]
ih8u has quit [Ping timeout: 265 seconds]
ih8u2 is now known as ih8u
grenierm has quit [Ping timeout: 240 seconds]
TomyWork has joined #ruby
<nakilon>
can't decide, whether in all the methods where I return lists, I should return Array and let people iterate over them, or should I yield, leaving them to .to_a if they want; what should be the rule of thumb?
<nakilon>
or should I even (the 3rd option) check if the block is passed?
<nakilon>
that would be overengineering, so I should chose of from those two ways; do I return Array or do I yield the items?
<nakilon>
hmm, I think by yielding I make two "access points" -- the value is still returned from the method and the yielded args can be from anywhere deep inside of it; so the yielding is an additional data exposing, not a replacement for the return value
dannyAAM has quit [Remote host closed the connection]
dannyAAM has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
trillion_exabyte has quit [Ping timeout: 252 seconds]
trillion_exabyte has joined #ruby
dviola has joined #ruby
denvermullets has joined #ruby
konsolebox has joined #ruby
denvermullets has quit [Remote host closed the connection]
rvalue has quit [Ping timeout: 252 seconds]
rvalue- has joined #ruby
rvalue- is now known as rvalue
<nakilon>
I wish the refinement syntax was not "using M" but "M.using"
<nakilon>
oh, nvm, "using" is already a method of something
<nakilon>
still would be cool if I could pass an argument of what class I want to refine, instead of having its name hardcoded
<nakilon>
for example, I have a module with a method, and I do "obj.extend(my_module).my_method", applying it to an obj no matter what class it belongs -- it only needs to quack a bit
<nakilon>
with refinements I'm unable to do, because there after the "refine" keyword you specify what class you want to refine
<nakilon>
I wish I could use the same module I use for the "extend" trick to refine all the instances of some arbitrary class in the source file
<nakilon>
because the "extend" starts to be a clutter
MsInput has joined #ruby
hwpplayer1 has joined #ruby
cahoots_ has joined #ruby
denvermullets has joined #ruby
cahoots_ has quit [Quit: Client closed]
MsInput has quit [Quit: WeeChat 4.5.1]
brokkoli_origin has quit [Ping timeout: 260 seconds]
patrick has quit [Read error: Connection reset by peer]
patrick_ is now known as patrick
patrick_ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick_ is now known as patrick
patrick_ has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
brokkoli_origin has joined #ruby
denvermullets has quit [Ping timeout: 264 seconds]
denvermullets has joined #ruby
konsolebox has joined #ruby
r3m has quit [Quit: WeeChat 4.6.0-dev]
Perflosopher0 has quit [Ping timeout: 276 seconds]
r3m has joined #ruby
Perflosopher0 has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
MsInput has joined #ruby
JulioPapel has joined #ruby
denvermullets has quit [Ping timeout: 260 seconds]
mjanssen has quit [Read error: Connection reset by peer]
mjanssen has joined #ruby
balrog has quit [Ping timeout: 252 seconds]
Sheilong has joined #ruby
Sampersand has joined #ruby
niv has quit [Ping timeout: 246 seconds]
Sobinec has quit [Remote host closed the connection]
niv has joined #ruby
___nick___ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Vonter has quit [Ping timeout: 252 seconds]
Vonter has joined #ruby
TomyWork has quit [Remote host closed the connection]
<o0x1eef>
Good or bad, English is generally the language used in sciences. So it is worth knowing at least the basics.
<weaksauce>
i'm sure you could make a gem that aliases all the methods in whatever you care about into french
<o0x1eef>
I suddenly feel like a tourist in Paris
<hd1>
the gem would just be a list of alias_method calls
<o0x1eef>
You would probably want to assign constant names as french too
levitating has quit [Quit: Computer exploded]
<weaksauce>
yup
<o0x1eef>
I'm curious, what is your use-case ? Because I think it is filled with problems. Even if you translate all the core classes, what happpens when you want to use a gem ? Is English okay then ? Or will you also translate any gem you want to use ? At that point, is it really productive not to just use English ? Ruby is Japanese but Ruby itself uses the English language. IMO that's a good indicator.