havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.6 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
grenierm has quit [Quit: Client closed]
dionysus69 has quit [Ping timeout: 244 seconds]
hwpplayer1 has quit [Quit: bye]
nil78 has quit [Quit: Client closed]
nil78 has joined #ruby
Sheilong has quit []
grenierm has joined #ruby
toadmecca has joined #ruby
toadmecca has quit [Remote host closed the connection]
graywolf has joined #ruby
toadmecca has joined #ruby
toadmecca has quit [Client Quit]
graywolf has quit [Quit: WeeChat 4.5.1]
s-liao-200 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
nil78 has quit [Ping timeout: 240 seconds]
mjanssen has quit [*.net *.split]
Rounin has quit [*.net *.split]
jvalleroy has quit [*.net *.split]
Furai has quit [*.net *.split]
ih8u has quit [*.net *.split]
crespire1 has quit [*.net *.split]
pages has quit [*.net *.split]
mweckbecker has quit [*.net *.split]
nmollerup has quit [*.net *.split]
Caius has quit [*.net *.split]
meinside has quit [*.net *.split]
dstein64 has quit [*.net *.split]
vnpower_ has quit [*.net *.split]
adam12 has quit [*.net *.split]
waesum has quit [*.net *.split]
Goodbye_Vincent1 has quit [*.net *.split]
mjanssen has joined #ruby
Furai has joined #ruby
jvalleroy has joined #ruby
Rounin has joined #ruby
crespire1 has joined #ruby
meinside has joined #ruby
waesum has joined #ruby
ih8u has joined #ruby
nmollerup has joined #ruby
Goodbye_Vincent1 has joined #ruby
vnpower_ has joined #ruby
dstein64 has joined #ruby
mweckbecker has joined #ruby
Caius has joined #ruby
pages has joined #ruby
adam12 has joined #ruby
Linux_Kerio has joined #ruby
user71 has joined #ruby
nil78 has joined #ruby
saulosilva has joined #ruby
konsolebox has joined #ruby
s-liao-200 has quit [Quit: Client closed]
s-liao-200 has joined #ruby
nil78 has left #ruby [#ruby]
grenierm has quit [Ping timeout: 240 seconds]
hwpplayer1 has joined #ruby
s-liao-200 has quit [Quit: Client closed]
Linux_Kerio has quit [Ping timeout: 248 seconds]
hwpplayer1 has quit [Remote host closed the connection]
saulosilva has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 248 seconds]
rvalue- is now known as rvalue
<nakilon> > I might choose another language - like Python.
<nakilon> ban
saulosilva has joined #ruby
<nakilon> when people say that they "should chose piton because there are libraries" they should blame themselves
<nakilon> because libraries didn't grow like a moshroom in a forest -- they are made by someone
<nakilon> why didn't you make the same in ruby?
<nakilon> (the "ban" was of course said in a joke tone, unlike further messages)
polishdub has quit [Ping timeout: 244 seconds]
Linux_Kerio has joined #ruby
saulosilva has quit [Quit: Client closed]
<nakilon> these docs lie https://docs.ruby-lang.org/en/3.2/String.html#class-String-label-Methods+for+Modifying+a+String they say that .concat creates new string, but no, it does mutate (and so fails when you apply to a frozen string) and it's confirmed by the example on the same page
polishdub has joined #ruby
dalan03822833508 has quit [Quit: dalan03822833508]
dalan03822833508 has joined #ruby
konsolebox has quit [Ping timeout: 244 seconds]
TomyWork has joined #ruby
<pounce> nakilon: so true bestie
antranigv has quit [Ping timeout: 252 seconds]
grenierm has quit [Ping timeout: 240 seconds]
antranigv has joined #ruby
mange has quit [Quit: Zzz...]
cappy has joined #ruby
cappy has quit [Quit: Leaving]
konsolebox has joined #ruby
Inline has joined #ruby
denvermullets has joined #ruby
denvermullets has quit [Ping timeout: 248 seconds]
denvermullets has joined #ruby
<nakilon> why is "_spec" a suffix, not prefix? I want to explain my coworkers that there is no need to name files like ./spec/invoice/invoice_edit_spec.rb, because the "invoice" part is already in the path, and that conceptually any file has only a full path, and the "/" is just a "_" that was changed to hide things for a nice tree view; if they were using
<nakilon> cloud storage they would know that "/" is just a character in a full filename, but they didn't; so I would tell them that "look, / is just _, i.e. for example, we had multiple spec_*.rb files, and so then decided to make a directory called 'spec' by replacing _ with /..." -- but spec isn't a prefix, it's a suffix, and I now wonder why
hwpplayer1 has joined #ruby
jmjl has quit [Ping timeout: 272 seconds]
Linux_Kerio has quit [Ping timeout: 248 seconds]
denvermullets has quit [Ping timeout: 244 seconds]
denvermullets has joined #ruby
denvermullets has quit [Ping timeout: 272 seconds]
denvermullets has joined #ruby
<Caius> nakilon: I would guess it's so you can mix the spec and ruby files in the same folder, eg if you don't have many. Also lets you put helper files in the spec folder without them being run
<nakilon> indeed the spe_helper.rb name would conflict
<nakilon> but then just rename to helper.rb
vnpower_ has quit [Ping timeout: 265 seconds]
xdminsy has quit [Ping timeout: 272 seconds]
vnpower_ has joined #ruby
<nakilon> OOP question: https://dpaste.com/6Y6LGAXZZ#wrap is it possible to define the "get_x" method in such way that I won't use the "M" identifier explicitly? because if I do self.class, I get C, not M ..(
<nakilon> the goal is to have a single owner of a "set" method and multiple classes that inherit a method that would access the attribute that was set there
cmburn has joined #ruby
Inline has quit [Read error: Connection reset by peer]
Inline has joined #ruby
<nakilon> or rather this https://dpaste.com/FNZCXTEPY -- I need the access from both instance and class methods
Linux_Kerio has joined #ruby
chen_ has quit [Quit: No Ping reply in 180 seconds.]
chen has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
cmburn has quit [Quit: Client closed]
konsolebox has joined #ruby
jmjl has joined #ruby
konsolebox has quit [Ping timeout: 248 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
patrick has quit [Remote host closed the connection]
patrick_ is now known as patrick
Inline has quit [Read error: Connection reset by peer]
aesthetikx has quit [Ping timeout: 252 seconds]
denvermullets has quit [Ping timeout: 244 seconds]
denvermullets has joined #ruby
Demi has joined #ruby
sam113101 has quit [Quit: WeeChat 4.4.4]
aesthetikx has joined #ruby
sam113101 has joined #ruby
patrick_ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick_ is now known as patrick
patrick_ has joined #ruby
patrick has quit [Remote host closed the connection]
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
Inline has joined #ruby
patrick__ has joined #ruby
patrick__ has quit [Changing host]
patrick__ has joined #ruby
patrick is now known as Guest3474
Guest3474 has quit [Killed (calcium.libera.chat (Nickname regained by services))]
patrick__ is now known as patrick
dionysus69 has joined #ruby
saulosilva has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
koenraad_ is now known as koenraad
<havenwood> nakilon: To clarify, the docs do *not* say String#concat returns a new String. It concatenates to `self` just like String#<< does.
<havenwood> It returns `self` as documented.
saulosilva has quit [Quit: Client closed]
denvermullets has quit [Ping timeout: 264 seconds]
hwpplayer1 has quit [Remote host closed the connection]
hwpplayer1 has joined #ruby
brw has quit [Read error: Connection reset by peer]
brw has joined #ruby
<o0x1eef> nakilon: :-)
denvermullets has joined #ruby
denvermullets has quit [Remote host closed the connection]
denvermullets has joined #ruby
koenraad has left #ruby [#ruby]
denvermullets has quit [Ping timeout: 264 seconds]
patrick has quit [Ping timeout: 248 seconds]
patrick_ is now known as patrick
patrick_ has joined #ruby
patrick_ has quit [Changing host]
patrick_ has joined #ruby
patrick is now known as Guest7306
Guest7306 has quit [Killed (silver.libera.chat (Nickname regained by services))]
patrick_ is now known as patrick
patrick_ has joined #ruby
cahoots_ has joined #ruby
<weaksauce> nakilon because spec/**/*_spec.rb is an easy way to gather all the correct files to be run as tests? also invoice_edit_spec.rb can be nice because you know inside your editor that it's related to the invoice by the filename directly. having edit_spec open in a few different tabs can be confusing. kinda like having many edit.html.erb files open is.
denvermullets has joined #ruby
xdminsy has joined #ruby
user71 has quit [Quit: Leaving]
denvermullets has quit [Remote host closed the connection]
chen has quit [Quit: No Ping reply in 180 seconds.]
chen has joined #ruby
Sampersand has joined #ruby
nirvdrum_ has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
cahoots_ has quit [Quit: Client closed]
xdminsy has quit [Read error: Connection reset by peer]
mange has joined #ruby
xdminsy has joined #ruby
hwpplayer1 has quit [Quit: See you later Take care]
Linux_Kerio has quit [Ping timeout: 248 seconds]
nirvdrum_ has quit [Quit: nirvdrum_]
nirvdrum_ has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
nirvdrum_ has quit [Quit: nirvdrum_]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum_ has quit [Quit: nirvdrum_]
grenierm has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
blacknova has joined #ruby