havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.2, 3.1.4, 3.0.6, 3.3.0-preview1: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 240 seconds]
desnudopenguino1 is now known as desnudopenguino
keypresser86 has joined #ruby
factor1 has joined #ruby
factor has quit [Ping timeout: 256 seconds]
factor1 is now known as factor
keypresser86 has quit []
keypresser86 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
keypresser86 has quit []
keypresser86 has joined #ruby
<johnjaye> what is gem activesupport?
<johnjaye> i wanted to see where the concat method was defined for Array and it has 2 different sets of methods defined. one is from gem activesupport, the other from gem concurrent-ruby. are these "standard gems"?
<weaksauce> activesupport is rails
<weaksauce> concat is a core
<weaksauce> johnjaye ^
<johnjaye> it says concat is from active support
<johnjaye> if i read the terminal output right
<johnjaye> it says class methods [], new, try_convert then instance methods &,*,+,-,<<,... concat. and at the bottom it says from gem activesupport-7.0.5
caedmon has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
jhass has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
<weaksauce> johnjaye yeah probably overriding it
jhass has joined #ruby
dhruvasagar has joined #ruby
jhass has quit [Ping timeout: 250 seconds]
caedmon has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 250 seconds]
jhass has joined #ruby
caedmon has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
caedmon has quit [Ping timeout: 240 seconds]
caedmon has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
moldorcoder7 has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
moldorcoder7 has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
caedmon has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
caedmon has quit [Quit: caedmon]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
moldorcoder7 has quit [Ping timeout: 248 seconds]
<gr33n7007h> morning ruby 🌞
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
kenichi_ has joined #ruby
kenichi has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
grenierm has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
hrberg has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
hrberg has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
keypresser86 has quit []
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
johnjaye has quit [Ping timeout: 268 seconds]
johnjaye has joined #ruby
cognemo has quit [Ping timeout: 268 seconds]
cognemo has joined #ruby
cnsvc- has joined #ruby
cnsvc has quit [Ping timeout: 268 seconds]
hololeap has quit [Ping timeout: 268 seconds]
hololeap has joined #ruby
teclator has joined #ruby
sphex has quit [Ping timeout: 268 seconds]
sphex has joined #ruby
grenierm has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
dhruvasagar has quit [Ping timeout: 240 seconds]
jvalleroy has joined #ruby
shokohsc58 has joined #ruby
shokohsc5 has quit [Ping timeout: 250 seconds]
shokohsc58 is now known as shokohsc5
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp- has joined #ruby
Sankalp- is now known as Sankalp
dhruvasagar has quit [Ping timeout: 268 seconds]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
dhruvasagar has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 265 seconds]
Sankalp- is now known as Sankalp
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
_ht has joined #ruby
Sankalp has quit [Ping timeout: 268 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Sankalp has joined #ruby
Sankalp- has joined #ruby
Sankalp has quit [Ping timeout: 256 seconds]
Sankalp- is now known as Sankalp
friendlypunk has joined #ruby
justache- has joined #ruby
justache has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Quit: WeeChat 3.8]
dhruvasagar has joined #ruby
dhruvasagar has quit [Quit: WeeChat 3.8]
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
dhruvasagar has quit [Client Quit]
dhruvasagar has joined #ruby
cognemo has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
roshanavand has joined #ruby
dhruvasagar has quit [Ping timeout: 250 seconds]
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
markong has joined #ruby
rvalue has quit [Remote host closed the connection]
rvalue has joined #ruby
<adam12> gr33n7007h: morning :)
<adam12> johnjaye: activesupport "monkeypatches" a lot of Ruby core methods. So there might be a core `concat` method, and then ActiveSupport added it's own. Its one of the criticisms of activesupport(and Rails in general).
moldorcoder7 has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
szkl has quit [Quit: Connection closed for inactivity]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
markong has quit [Ping timeout: 268 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
markong has joined #ruby
moldorcoder7 has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
<mretka> gr33n7007h, greetings :)
justache- is now known as justache
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
keypresser86 has joined #ruby
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
Sheilong has joined #ruby
roshanavand_ has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
kenichi_ is now known as kenichi
kenichi has quit [Changing host]
kenichi has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-dev]
r3m has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
dhruvasagar has joined #ruby
r3m has quit [Client Quit]
r3m has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
r3m has quit [Quit: WeeChat 4.0.0-rc1]
dhruvasagar has joined #ruby
r3m has joined #ruby
r3m has quit [Client Quit]
r3m has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
shokohsc59 has joined #ruby
shokohsc5 has quit [Ping timeout: 240 seconds]
shokohsc59 is now known as shokohsc5
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
moldorcoder7 has joined #ruby
markong has quit [Ping timeout: 268 seconds]
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
havenwood has quit [Quit: The Lounge - https://thelounge.chat]
havenwood has joined #ruby
havenwood has quit [Client Quit]
havenwood has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
desnudopenguino1 has joined #ruby
desnudopenguino has quit [Ping timeout: 240 seconds]
desnudopenguino1 is now known as desnudopenguino
dhruvasagar has quit [Ping timeout: 256 seconds]
kaivai has quit [Quit: ZNC - https://znc.in]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
dhruvasagar has joined #ruby
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
shokohsc50 has joined #ruby
shokohsc5 has quit [Ping timeout: 240 seconds]
shokohsc50 is now known as shokohsc5
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 250 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
Guest52 has joined #ruby
Guest52 has quit [Client Quit]
roadie has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
graywolf has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
markong has joined #ruby
<ox1eef_> adam12: Probably not a fair criticism. Monkey-patching is usually mentioned as a feature when Ruby is described generally, but as an anti-feature by a good portion of Rubyists.
<rapha> it'd be nice if one needed to jump through some sort of hoop in order to be allowed to monkey patch.
roadie has joined #ruby
<adam12> I think it's fine. I sometimes monkeypatch temporarily to work around an issue while I am developing.
<adam12> The downside is something coming along and clobbering a core method. Worse, when that clobbering happens as a side-effect of another dependency.
<ox1eef_> rapha: Refinements are kinda that, no?
<ox1eef_> adam12: Sure - changing a core method in a way that makes it different to the original is arguably always a bad idea.
<rapha> ox1eef_: but the fact that refinements exist doesnt mean that other things are not still possible as well.
dhruvasagar has joined #ruby
<ox1eef_> Sure. I'd go as far to say that refinements are a failed realization right now. I never see them used outside havenwood's gists :>)
<rapha> lol
<mooff> haha <3
<ox1eef_> But I trust Matz knows better. One thing I can observe is that Ruby doesn't have many rules to stop you from doing whatever you imagine. Maybe private_constant is a rare exception to that.
<mooff> what happens if you then send public_constant?
<ox1eef_> >> module Foo; Bar = 1; private_constant :Bar; end; Foo.send(:public_constant, :Bar); Foo::Bar
<ruby[bot]> ox1eef_: # => 1 (https://carc.in/#/r/f6mx)
dhruvasagar has quit [Ping timeout: 256 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
shokohsc5 has quit [Ping timeout: 250 seconds]
shokohsc5 has joined #ruby
roadie has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
tomtmym has quit [Quit: Gone.]
roadie has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
Sheilong has quit []
mynameisdebian has joined #ruby
<mynameisdebian> Why does `puts "a"` do the same thing as `puts "a\n"`? Was there a change at some point or did I just somehow never notice?
<ox1eef_> man 3 puts
<ox1eef_> It behaves the same.
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
<weaksauce> mynameisdebian "Writes a newline after each that does not already end with
<weaksauce> a newline sequence. If called without arguments, writes a newline."
<weaksauce> from the docs
<mynameisdebian> ash ok
<mynameisdebian> ah ok
<mynameisdebian> thanks
<ox1eef_> The history behind it has its root in C.
<weaksauce> intersting that my man page for puts doesn't mention that behavior
<weaksauce> just says it will terminate with a newline
<weaksauce> they specifically look for it in ruby
graywolf has quit [Quit: WeeChat 3.8]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
roadie has joined #ruby
dhruvasagar has joined #ruby
roadie has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 265 seconds]
roadie has joined #ruby
roadie has quit [Ping timeout: 248 seconds]