<havenwood>
weltio: Is it not very much like a C escape sequence?
<havenwood>
I guess you all mean \s specifically. Mmm.
<havenwood>
Unsure who added that first.
<weaksauce>
isn't that just also an ascii sequence
<weaksauce>
i imagine it was just added bitd as a thing they didn't give that much thought to
donofrio has joined #ruby
fredlinhares has joined #ruby
flooose has quit [Ping timeout: 245 seconds]
Bounga has joined #ruby
jpw has joined #ruby
jpw_ has quit [Ping timeout: 265 seconds]
<weltio>
havenwood: yes, specifically '\s' - i have never seen that before in any other language (in regex it is the whitespacecharacterclass, but thats a completely different context ) - it just seemed very odd
terminalpusher has quit [Remote host closed the connection]
ur5us has joined #ruby
taupiqueur has joined #ruby
mrkz_c has quit [Quit: Connection closed for inactivity]
FemmeAndroid has joined #ruby
weltio has quit [Ping timeout: 245 seconds]
Bounga has quit [Ping timeout: 265 seconds]
<duds->
where can I read more about the distinction between attributes and methods
<duds->
I’m a dummy and didn’t really get it too much
<nakilon>
attributes can be read by another object only via methods -- that's basically it
<nakilon>
so when you do something like :attr_accessor x in class definition, you define methods x and x= that write and read the @x inside the object
<nakilon>
(if I'm not wrong in some way)
<weaksauce>
duds- attr_accessor attr_reader and attr_writer all create the methods to either read and write, read or write
<weaksauce>
shorthand for the basic case
<duds->
Ohhh
<nakilon>
they are a shortcuts to "def x ; return @x ; end" and "def x=(y) ; @x = y ; end"
<duds->
I get it now!
<duds->
Ty fellas
<weaksauce>
a fun fact about classes is that it's just ruby code
<weaksauce>
so you can outside of a method definition just write puts "hello from the class"
<weaksauce>
and it will output that when the class is read
<weaksauce>
that fact kinda demystified rails for me
<duds->
ok chill I’m at chapter 3 of the pickaxe book still lol
<duds->
It’s my first proglang… but I have a good idea of it now :]
taupiqueur has quit [Remote host closed the connection]
<weaksauce>
ah nice
taupiqueur has joined #ruby
<nakilon>
an hour ago I was told "go f... yourself" by a python fan in another channel for saying that he likes python because other languages that he tried were just worse and he didn't try a better one
<weaksauce>
haha
<weaksauce>
i can't stand the whitespace thing in python
<nakilon>
is it something wrong with me that when someone tells me "you should check out the X" I don't say "f" instead of "oh rly? I'll check it our..."
<nakilon>
*out
jpw has quit [Remote host closed the connection]
jpw has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
jpw_ has joined #ruby
jpw has quit [Ping timeout: 245 seconds]
jpw_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
roshanavand has quit [Ping timeout: 265 seconds]
taupiqueur has quit [Quit: taupiqueur]
_ht has quit [Remote host closed the connection]
ur5us has joined #ruby
postmodern has quit [Read error: Connection reset by peer]
weltio has joined #ruby
flooose has joined #ruby
FemmeAndroid has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<kmacleod>
Is there a way to force rubygems to use v1 of the API? Trying to workaround https://www.jfrog.com/jira/browse/RTFACT-26384 Slow gem package installation with Ruby 3.0.2 via Artifactory