havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
grenierm has joined #ruby
konsolebox has joined #ruby
dviola has quit [Ping timeout: 265 seconds]
JulioPapel has quit [Quit: JulioPapel]
Obsdark has quit [Quit: Nettalk6 - www.ntalk.de]
ua_ has quit [Ping timeout: 252 seconds]
TomyWork has quit [Ping timeout: 248 seconds]
konsolebox has quit [Quit: .]
grenierm has quit [Quit: Client closed]
s-liao-200 has joined #ruby
konsolebox has joined #ruby
jasfloss has quit [Ping timeout: 248 seconds]
jasfloss has joined #ruby
nil78 is now known as pale
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
grenierm has joined #ruby
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
konsolebox has quit [Ping timeout: 265 seconds]
s-liao-200 has quit [Quit: Client closed]
user71 has joined #ruby
konsolebox has joined #ruby
s-liao-200 has joined #ruby
s-liao-200 has quit [Quit: Client closed]
Sobinec has joined #ruby
ua_ has joined #ruby
Inline_ has joined #ruby
rvalue- has joined #ruby
Inline has quit [Ping timeout: 265 seconds]
rvalue has quit [Ping timeout: 260 seconds]
rvalue- is now known as rvalue
aesthetikx has quit [Ping timeout: 276 seconds]
ross has quit [*.net *.split]
leftylink has quit [*.net *.split]
ross has joined #ruby
leftylink has joined #ruby
lirion has quit [Quit: ヾ(ʘ‿ʘ)]
lirion has joined #ruby
Linux_Kerio has joined #ruby
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]
TomyWork has joined #ruby
Sampersand has quit [Ping timeout: 240 seconds]
hwpplayer1 has quit [Quit: bbl]
balrog has joined #ruby
Thanzex029 has joined #ruby
Thanzex02 has quit [Ping timeout: 272 seconds]
Thanzex029 is now known as Thanzex02
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
grenierm has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
snonux has quit [Quit: ZNC 1.9.1 - https://znc.in]
snonux has joined #ruby
snonux has quit [Client Quit]
denvermullets has joined #ruby
snonux has joined #ruby
snonux has quit [Client Quit]
snonux has joined #ruby
denvermullets has quit [Ping timeout: 260 seconds]
cahoots_ has joined #ruby
user71 has quit [Quit: Leaving]
matoro has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
matoro has joined #ruby
___nick___ has quit [Ping timeout: 264 seconds]
cahoots_ has quit [Quit: Client closed]
denvermullets has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
joako has quit [Quit: quit]
joako has joined #ruby
levitating has joined #ruby
Inline_ is now known as Inline
Sheilong has quit []
JulioPapel has quit [Ping timeout: 244 seconds]
denvermullets has quit [Ping timeout: 252 seconds]
mange has joined #ruby
hd1 has joined #ruby
<hd1> does ruby have translated keywords?
<mange> I'm not sure what you're asking. What are "translated keywords"?
<hd1> method names like Array.each
<hd1> if my localization is French, is Array.chaque supported?
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<o0x1eef> hd1: No
<o0x1eef> That said, method names can be UTF-8
<hd1> o0x1eef: I'm aware of that
<o0x1eef> Okay. Well, there's no method names based on locale.
<mange> Are there many programming languages with localized names? Every language I can think of picks a natural language. Although https://en.wikipedia.org/wiki/Non-English-based_programming_languages lists a few with multiple translations.
<mange> Apparently there are Ruby variants translated into Latvian and Tagalog, if that helps. :P
<o0x1eef> This is probably the most famous example of a UTF-8 method name: https://github.com/sidekiq/sidekiq/blob/main/lib/sidekiq.rb#L45-L47
<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.