valphilnagel has quit [Remote host closed the connection]
valphilnagel has joined #ruby
fdan has quit [Quit: Client closed]
audiofreeze has joined #ruby
<audiofreeze>
can someone explain metaprogamming to me in 10 words or less
<audiofreeze>
is it really "code that writes code" ?
<Garo_>
audiofreeze: yes, except that you will not see the "code" which your code writes. Instead you write code which directly modifies how the rest of your code works
jetchisel has joined #ruby
<Garo_>
audiofreeze: and you shouldn't mix this with code generation, which is for example what you do with the "rails" binary to generate rails project template, rails scaffolding and rails ActiveRecord models
roadie` has joined #ruby
_ht has joined #ruby
howdoi has joined #ruby
Starfoxxes has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
ur5us_ has quit [Ping timeout: 260 seconds]
_ht has quit [Remote host closed the connection]
jetchisel has quit [Ping timeout: 268 seconds]
valphilnagel has quit [Remote host closed the connection]
reset has quit [Quit: reset]
VoidNoir0 has quit [Quit: Connection closed]
fdan has joined #ruby
freeworld has joined #ruby
audiofreeze has quit [Ping timeout: 268 seconds]
<nakilon>
do you mean metaprogramming means only runtime writing?
roadie` has joined #ruby
Rounin has joined #ruby
audiofreeze has joined #ruby
grawlinson has left #ruby [SIGTERM]
audiofreeze has quit [Remote host closed the connection]
audiocat has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
audiocat has quit [Ping timeout: 268 seconds]
sharkee has joined #ruby
Oxfuxxx has joined #ruby
roadie` has joined #ruby
fdan has quit [Quit: Client closed]
roadie` has quit [Client Quit]
Oxfuxxx has quit [Quit: Never underestimate the power of the butt....ON. (Playst...i mean.. Pir@tA$$)]
sharkee has quit [Quit: sharkee]
Bounga has joined #ruby
fdan has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
faxmodem has joined #ruby
<faxmodem>
rubydoc.info seems broken
jetchisel has quit [Ping timeout: 268 seconds]
teclator has joined #ruby
jetchisel has joined #ruby
jetchisel has quit [Read error: Connection reset by peer]
<nakilon>
faxmodem what gem did you look for there?
<rapha>
those were the times, when people used modems...
* rapha
still has the sound of it in his ears thinking of it
<rapha>
and the thrill of discovering arcane, privately-run Atari mailboxes and whatnot
<rapha>
Garo_: seems you used too many words :)
jetchisel has joined #ruby
gggpkm has joined #ruby
fdan has quit [Quit: Client closed]
lunarkitty has quit [Quit: Connection closed for inactivity]
bastienleonard has quit [Ping timeout: 252 seconds]
<rapha>
okay, answering my own question, it seems to be a ruby version thing
<faxmodem>
thanks, I'll switch to Z-modem and download the documentation from gemdocs.org
kaleido has quit [Ping timeout: 245 seconds]
<adam12>
lol zmodem. I haven't heard that name in forever and a day.
<adam12>
Right alongside pkzip.
kaleido has joined #ruby
kaleido has quit [Changing host]
kaleido has joined #ruby
<rapha>
hmmm ... how can i "puts" the view that "pp" gives you? like, what does pp call internally? tried #inspect, that's not the one (dealing with invalid UTF8 sequences which i need to be able to see)
weaksauce has quit [Ping timeout: 265 seconds]
<adam12>
rapha: pp _may_ call pretty_print(pp) on the object you're inspecting.
<adam12>
rapha: but it falls back to inspect, I think.
<rapha>
nakilon: okay, so, the newer wheel seems to be the answer on top of that: simply #pretty_inspect
teclator has joined #ruby
<ccooke>
rapha: pp adds a
<ccooke>
... I started typing that a while back. Then got called into a meeting. Now I just accidentally hit enter instead of deleting it. Doing *so* well today.
<tstirrat>
that makes sense. i was looking at some rspec code that didn't seem to have the values that it was enclosing in scope, but my sense is that there's some magic^tm where rspec is involved