jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
peder_ has quit [Quit: leaving]
<jidar> is that mosh?
<jidar> boo he left
jl- has joined #ruby
jl- has quit [Ping timeout: 276 seconds]
jpn has joined #ruby
FetidToot6 has joined #ruby
FetidToot has quit [Ping timeout: 240 seconds]
FetidToot6 is now known as FetidToot
jpn has quit [Ping timeout: 240 seconds]
libsys has quit [Ping timeout: 244 seconds]
libsys has joined #ruby
markong has quit [Ping timeout: 256 seconds]
Rounin has quit [Ping timeout: 264 seconds]
user9d has joined #ruby
<user9d> What is the difference between def methodA!: def methodB?: and def methodC: #?
jhass has quit [Ping timeout: 240 seconds]
jhass has joined #ruby
<havenwood> user9d: meth is a regular method, meth! is a "more dangerous" version of meth, and meth? is a predicate method that returns something truthy or falsey.
<user9d> havenwood: aahh! what is the meth! method called? Like what's the ruby name for it? Super method? Powerful method? Wizardry method? Imprinting method?
jl- has joined #ruby
jl- has quit [Ping timeout: 256 seconds]
<havenwood> user9d: bang method, I guess?
<havenwood> user9d: Typically theres a `foo` version first and `foo!` either modifies the receiver or does something else more suspicious.
<havenwood> Predicate methods are much more common than bang methods.
<havenwood> But you see both, for sure.
Ziyan has joined #ruby
rvalue has quit [Ping timeout: 256 seconds]
Jantz has joined #ruby
Jantz has quit [Ping timeout: 255 seconds]
rwaweber has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 276 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 256 seconds]
Wra1th has joined #ruby
rvalue has joined #ruby
_ht has joined #ruby
Sankalp has quit [Ping timeout: 244 seconds]
Wra1th has quit [Quit: wra1th]
_ht has quit [Remote host closed the connection]
Sankalp has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Wra1th has joined #ruby
dionysus69 has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 276 seconds]
Wra1th has quit [Quit: wra1th]
howdoi has quit [Quit: Connection closed for inactivity]
ua__ has joined #ruby
ua_ has quit [Ping timeout: 276 seconds]
ur5us has joined #ruby
roshanavand__ has joined #ruby
jpn has joined #ruby
Rounin has joined #ruby
teclator has joined #ruby
TomyWork has joined #ruby
bougyman_ has joined #ruby
shokohsc9 has joined #ruby
shokohsc has quit [Quit: Ping timeout (120 seconds)]
shokohsc9 is now known as shokohsc
bougyman has quit [Quit: ZNC 1.8.2 - https://znc.in]
Ziyan has quit [Ping timeout: 244 seconds]
Sankalp has quit [Ping timeout: 256 seconds]
Ziyan has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
Sankalp has joined #ruby
constxd has quit [Ping timeout: 244 seconds]
duds- has quit [Max SendQ exceeded]
jl- has joined #ruby
moldorcoder7_ has joined #ruby
moldorcoder7 has quit [Ping timeout: 240 seconds]
duds- has joined #ruby
Ziyan has quit [Ping timeout: 240 seconds]
jl- has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
perrierjouet has quit [Quit: WeeChat 3.5]
perrierjouet has joined #ruby
Linux_Kerio has joined #ruby
<ox1eef> i believe the original idea of the bang method was to indicate potential danger, but then it took on new meaning after that. modifying the receiver being one of them, but that's not always true - eg, it is Array#pop and not Array#pop!
roshanavand__ has quit [Ping timeout: 264 seconds]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Ziyan has quit [Ping timeout: 276 seconds]
Ziyan has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan_ has quit [Ping timeout: 240 seconds]
duds- has quit [Max SendQ exceeded]
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
duds- has joined #ruby
rvalue has quit [Ping timeout: 244 seconds]
rvalue has joined #ruby
twosuns has joined #ruby
twosuns is now known as proportions
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Jonopoly has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
_ht has joined #ruby
duds- has quit [Max SendQ exceeded]
jl- has joined #ruby
Ziyan has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
duds- has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
<ccooke> There *is* a distinction there - there isn't exactly a version of pop that does not modify the receiver
<ccooke> (also, modifying the receiver *definitely* seems in line with the "potential danger" meaning!)
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
<ox1eef> sure, it's a hint to be careful more than a hint at mutation.
<ox1eef> sometimes it is used to indicate an exception can be raised, like within rails - save, and save!
expectorants9 has joined #ruby
<ccooke> it's a good convention to have. Coule be more promoted as "good practice", though
<ox1eef> as long as there are two of the kind, a non-mutating call and a mutating call, then i agree.
<ccooke> yeah. There could be a discussion for applying it to *all* mutating calls, but (while that *might* be a good thing) it would be a nasty language change at this point
jpn has quit [Ping timeout: 264 seconds]
howdoi has joined #ruby
<ox1eef> agreed. i think it can be context-specific, and something to keep in mind.
duds- has quit [Max SendQ exceeded]
expectorants9 has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
jpn has joined #ruby
proportions has quit [Quit: Leaving]
duds- has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
dionysus70 is now known as dionysus69
jpn has quit [Ping timeout: 244 seconds]
markong has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
duds- has quit [Max SendQ exceeded]
jpn has joined #ruby
roshanavand has joined #ruby
duds- has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
jpn has quit [Ping timeout: 256 seconds]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 256 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 276 seconds]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
roshanavand has joined #ruby
protektwar has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
constxd has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
markong has quit [Ping timeout: 240 seconds]
duds- has quit [Max SendQ exceeded]
Ziyan has joined #ruby
duds- has joined #ruby
bit4bit has joined #ruby
bit4bit has quit [Client Quit]
duds- has quit [Read error: Connection reset by peer]
duds- has joined #ruby
heartburn has joined #ruby
jl- has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
jl- has quit [Ping timeout: 264 seconds]
finsternis has quit [Read error: Connection reset by peer]
finsternis has joined #ruby
swaggboi has quit [Read error: Connection timed out]
caleb_ has joined #ruby
duds- has quit [Max SendQ exceeded]
bastienleonard has joined #ruby
duds- has joined #ruby
<caleb> I didn't realize havenwood made this https://github.com/havenwood/elixir.rb
<caleb> I had started my own implementation of some concepts like GenServers and Supervisors
<caleb> this is neat
swaggboi has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
caleb_ has quit [Quit: leaving]
Ziyan_ has joined #ruby
duds- has quit [Max SendQ exceeded]
Ziyan has quit [Ping timeout: 244 seconds]
duds- has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
swaggboi has quit [Read error: Connection timed out]
Wra1th has joined #ruby
Wra1th has quit [Client Quit]
Guest73 has joined #ruby
<Guest73> Hello, I have a question regarding Ruby on Rails params convention.  I am building out a SPA like feature and I am using React.  Is there any good reason why I should use the naming convention, i.e., { [model]: { attributes}} rather than just doing { attributes } and have a depth of 1 instead of 2?
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Wra1th has joined #ruby
swaggboi has joined #ruby
Guest73 has quit [Quit: Client closed]
duds- has quit [Max SendQ exceeded]
Ziyan_ has quit [Ping timeout: 240 seconds]
duds- has joined #ruby
Ziyan has joined #ruby
bougyman_ is now known as bougyman
duds- has quit [Max SendQ exceeded]
<ox1eef> params[:model] is useful because it avoids collision with things like params[:format].
jl- has joined #ruby
duds- has joined #ruby
jl- has quit [Ping timeout: 264 seconds]
swaggboi has quit [Read error: Connection timed out]
Ziyan has quit [Ping timeout: 260 seconds]
swaggboi has joined #ruby
Ziyan has joined #ruby
user9d has left #ruby [#ruby]
Wra1th has left #ruby [#ruby]
roshanavand has quit [Ping timeout: 256 seconds]
michigan has joined #ruby
lolja has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
roshanavand has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
duds- has quit [Max SendQ exceeded]
Ziyan has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
swaggboi has quit [Read error: Connection timed out]
jpn has quit [Quit: leaving]
swaggboi has joined #ruby
duds- has joined #ruby
Wra1th has joined #ruby
Wra1th has left #ruby [#ruby]
jpn has joined #ruby
Goodbye_Vincent has quit [Quit: Ping timeout (120 seconds)]
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
Ziyan has quit [Ping timeout: 276 seconds]
ur5us has quit [Ping timeout: 240 seconds]
Goodbye_Vincent has joined #ruby
duds- has quit [Max SendQ exceeded]
Ziyan has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
duds- has joined #ruby
fred1 has joined #ruby
fred1 has quit [Client Quit]
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
cocalero has joined #ruby
lolja has joined #ruby
TomyWork has quit [Remote host closed the connection]
Vonter has quit [Quit: WeeChat 3.5]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Vonter has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
cxl has quit [Quit: bye]
duds- has quit [Max SendQ exceeded]
cxl has joined #ruby
duds- has joined #ruby
swaggboi has quit [Read error: Connection timed out]
polishdub has quit [Quit: leaving]
libsys has quit [Ping timeout: 276 seconds]
libsys has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
polishdub has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
swaggboi has joined #ruby
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
duds- has quit [Remote host closed the connection]
Ziyan has quit [Ping timeout: 244 seconds]
lolja has joined #ruby
<M4zv4l[m]> Hi, I'm struggling with gem on another laptop... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/72761efc303a3a9224d7b9c92628d8a2c6fec9e2)
<M4zv4l[m]> `$ ruby --version
<M4zv4l[m]> ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]`
jpn has quit [Quit: leaving]
ur5us has joined #ruby
jl- has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jl- has quit [Ping timeout: 276 seconds]
Vonter has quit [Ping timeout: 240 seconds]
lolja has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
duds- has joined #ruby
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
jpn has joined #ruby
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
lolja has quit [Remote host closed the connection]
jpn has joined #ruby
lolja has joined #ruby
lolja has quit [Remote host closed the connection]
jl- has joined #ruby
duds- has quit [Max SendQ exceeded]
Wra1th has joined #ruby
jl- has quit [Ping timeout: 276 seconds]
lolja has joined #ruby
duds- has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
<havenwood> caleb: I was just pondering how to do a Ractor-based Supervisor for https://github.com/havenwood/gen_server
<havenwood> I did a handle_info spike but am hung up on methods not being callable across the Ractor divide. I could detach the methods and set `nil` as the receiver, but that's the only way I can figure to get it to work with the current way Ractors work.
Rounin has quit [Ping timeout: 276 seconds]
duds- has quit [Max SendQ exceeded]
<havenwood> caleb: I'm curious what your take on it is?
duds- has joined #ruby
lolja has quit [Remote host closed the connection]
lolja has joined #ruby
<havenwood> Are you using Ractors?
duds- has quit [Max SendQ exceeded]
duds- has joined #ruby
Wra1th has left #ruby [#ruby]
jpn has quit [Quit: Lost terminal]
Wra1th has joined #ruby
Wra1th has quit [Quit: wra1th]
Linux_Kerio has quit [Ping timeout: 272 seconds]
jpn has joined #ruby
lolja has quit [Remote host closed the connection]
bastienleonard has quit [Ping timeout: 240 seconds]
lolja has joined #ruby