<sarna>
EvanR, leftylink: late binding means deferring the lookup until runtime, so you don't really know what code will run just by looking at source code - you need to actually run it
<sarna>
methods in ruby are an example of late binding - you don't know what it will do until you run it, because in the meantime somebody could've monkey-patched it
<sarna>
functions are generally early-bound, even in dynamic languages. you can override them but only in the local context. so you can definitely tell what code will run just by looking at the source
MalusVulgaris has quit [Ping timeout: 258 seconds]
MalusVulgaris has joined #ruby
roadie has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.91)]
markong has joined #ruby
havenwood has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
sts has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
cata has quit [Ping timeout: 248 seconds]
rubin55_ has quit [Ping timeout: 240 seconds]
sts has joined #ruby
rubin55_ has joined #ruby
roadie has joined #ruby
cata has joined #ruby
Teagueland has joined #ruby
miah has quit [Server closed connection]
miah has joined #ruby
<johnjaye>
how do i do printf interpolation in ruby
<johnjaye>
like if i want to print string of 2 but have 3 leading zeroes
<johnjaye>
oh it's just sprintf... i think
quintasan has quit [Server closed connection]
quintasan has joined #ruby
reset has joined #ruby
roadie` has joined #ruby
roadie` has quit [Remote host closed the connection]
roadie has quit [Ping timeout: 240 seconds]
donofrio has joined #ruby
desnudopenguino1 has joined #ruby
donofrio has quit [Remote host closed the connection]
desnudopenguino has quit [Ping timeout: 240 seconds]
desnudopenguino1 is now known as desnudopenguino
gfawcett has joined #ruby
moldorcoder7 has joined #ruby
mags has joined #ruby
mags has quit [Client Quit]
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ruby
mags has joined #ruby
MalusVulgaris has quit [Quit: MalusVulgaris]
ralu1 has quit [Server closed connection]
ralu1 has joined #ruby
lena64t has quit [Remote host closed the connection]
lena64t has joined #ruby
miah has quit [Ping timeout: 240 seconds]
miah has joined #ruby
splud has quit [Ping timeout: 240 seconds]
splud has joined #ruby
<EvanR>
johnjaye, or "%03d" % two
Pixi__ has joined #ruby
Pixi` has quit [Ping timeout: 258 seconds]
Cork has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
fowl has quit [Server closed connection]
fowl has joined #ruby
roadie has joined #ruby
friendlypunk has joined #ruby
moldorcoder7 has quit [Ping timeout: 240 seconds]
r3m has quit [Quit: WeeChat 4.0.0-rc1]
naltun has joined #ruby
r3m has joined #ruby
<naltun>
hello
naltun has quit [Ping timeout: 260 seconds]
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
Jordan has quit [Server closed connection]
Jordan has joined #ruby
grenierm has joined #ruby
gfawcett has quit [Ping timeout: 252 seconds]
r3m has quit [Quit: WeeChat 4.0.0-rc1]
r3m has joined #ruby
Mikael75 has joined #ruby
Mikael75 has quit [Client Quit]
<johnjaye>
does ruby allow strings inside strings inside strings?
<johnjaye>
I took an expression sprintf("%02d",2) and put it inside a string interpolation "#{...}". and ruby accepted it
markong has quit [Ping timeout: 252 seconds]
mexen has quit []
r3m has quit [Quit: WeeChat 4.0.0-rc1]
grenierm has quit [Quit: Client closed]
r3m has joined #ruby
<leftylink>
it sounds like you already experimented and confirmed the answer, so you have no need of any further confirmatin from others
<leftylink>
> Any expression may be placed inside the interpolated section
<leftylink>
it doesn't say "any expression except for ....."
<leftylink>
it says any expression
<johnjaye>
I mean when you say any, for all, or every there's usually some implicit extent you're referring to.
<johnjaye>
how long have you been using ruby for
<leftylink>
I can't deny that! my reading is since this is the syntax document, "any" actually refers to "anything that is valid according to Ruby syntax"
<leftylink>
I see that I've been using Ruby since September of 2010. hard to believe it's been almost 13 years
<johnjaye>
that doesn't surprise me. when i talk to experts in various areas they sometimes have trouble understanding what a non-expert or beginner is even asking about their area.
<leftylink>
I think there's a name for that
<leftylink>
dunning krueger?
<johnjaye>
there is. but i didn't want to drag it out any further.
<leftylink>
oh I was wrong, dunning krueger is talking about overestimating
<leftylink>
it's actually the curse of knowledge
<johnjaye>
ruby often surprises me by the conveniences it gives