adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
roadie` has joined #ruby
Rounin has quit [Ping timeout: 260 seconds]
pandabot has joined #ruby
roadie` has quit [Ping timeout: 240 seconds]
bandithijo has joined #ruby
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
ur5us_ has quit [Ping timeout: 268 seconds]
ur5us_ has joined #ruby
swaggboi has quit [Quit: C-x C-c]
roadie` has joined #ruby
_whitelogger has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
swaggboi has joined #ruby
Starfoxxes has quit [Ping timeout: 245 seconds]
jetchisel has quit [Ping timeout: 265 seconds]
jetchisel has joined #ruby
roadie` has joined #ruby
bandithijo has quit [Quit: WeeChat 3.2]
jetchisel has quit [Ping timeout: 252 seconds]
valphilnagel has joined #ruby
roadie` has quit [Ping timeout: 268 seconds]
fdan has joined #ruby
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?
<faxmodem> I got a `SQLite3::CorruptException: database disk image is malformed`
<faxmodem> but it seems to be random
<nakilon> adam12
lunarkitty has joined #ruby
ur5us_ has joined #ruby
<rapha> morning all
<rapha> sooooo
<rapha> it turns out my laptop is missing IBM720 / CP720 in Encoding.list
<rapha> is this a question of ruby version or some compile time option set by the distro or what?
<adam12> faxmodem: gemdocs.org/gems/gitlab
ur5us_ has quit [Ping timeout: 260 seconds]
walez has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
walez has quit [Ping timeout: 252 seconds]
ccapndave has joined #ruby
ccapndave has left #ruby [Textual IRC Client: www.textualapp.com]
<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> interesting
<rapha> adam12: should this be the sources for it? https://github.com/ruby/prettyprint ... seems to have neither a #pp nor a #pretty_print
<rapha> oh, alright, so it started out as a thing of its own and then got integrated
<rapha> according to line 285, in the absence of a specific #pretty_print, it will use #inspect, like you said
<nakilon> I guess I did it like this https://stackoverflow.com/a/15285376/322020
<rapha> oh cool
<nakilon> you pass a buffer string "" and some options like target width
<rapha> don't reinvent the wheel, hack the wheel
<nakilon> maybe there are newer forms of the wheel, it's from 2013
<rapha> maybe, but this is just for a quick script to rename a couple hundred thousand directory names :)
<rapha> btw, very useful if anyone's interested https://gist.github.com/sixtyfive/a2e2c7f2f5d71269c5931647baa4fb03
howdoi has joined #ruby
<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.
<adam12> lol
bastienleonard has joined #ruby
<rapha> lol
* rapha hands a cup of nice, warm tea to ccooke
<ccooke> ... Thank you, that is definitely needed
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
* rapha hates meetings and rejoices whenever his boss decides the same thing'll work much better without one
<ccooke> The terrible thing is that more than half of the meetings I'm in atm I am the culprit/owner
Starfoxxes has quit [Ping timeout: 260 seconds]
<rapha> you clearly need more interns :)
Bounga has quit [Ping timeout: 252 seconds]
bit4bit has joined #ruby
BrianWGray has joined #ruby
_ht has joined #ruby
bit4bit has quit [Ping timeout: 268 seconds]
justache has quit [Read error: Connection reset by peer]
justache has joined #ruby
gggpkm has quit [Ping timeout: 268 seconds]
fdan has joined #ruby
eddof13 has joined #ruby
weaksauce has joined #ruby
kapil has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
teclator has joined #ruby
kapil has joined #ruby
reset has joined #ruby
skali has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
skali is now known as skali_
skali_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skali has joined #ruby
skali has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fdan has quit [Quit: Client closed]
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
eddof13 has joined #ruby
darkxploit has joined #ruby
menace has joined #ruby
menace has joined #ruby
menace has quit [Changing host]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #ruby
Oxfuxxx has joined #ruby
sharkee has joined #ruby
dachinat has quit [Ping timeout: 252 seconds]
menace has quit [Quit: menace]
howdoi has quit [Quit: Connection closed for inactivity]
freeworld has quit [Read error: Connection reset by peer]
freeworld has joined #ruby
Starfoxxes has joined #ruby
skali has joined #ruby
dachinat has joined #ruby
sharkee has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 268 seconds]
bastienleonard has quit [Quit: WeeChat 3.2]
skali has quit [Ping timeout: 240 seconds]
Oxfuxxx has joined #ruby
sharkee has joined #ruby
_ht has quit [Remote host closed the connection]
skali has joined #ruby
skali has quit [Ping timeout: 265 seconds]
ur5us_ has joined #ruby
mikrosis has joined #ruby
sharkee has quit [Ping timeout: 252 seconds]
Oxfuxxx has quit [Ping timeout: 268 seconds]
dachi_ has joined #ruby
dachinat has quit [Ping timeout: 268 seconds]
skali has joined #ruby
skali has quit [Ping timeout: 268 seconds]
cer-0 has joined #ruby
dachi__ has joined #ruby
dachi_ has quit [Read error: Connection reset by peer]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snobbybumblebee has joined #ruby
freeworld has quit [Ping timeout: 252 seconds]
snobbybumblebee has quit [Ping timeout: 252 seconds]
snobbybumblebee has joined #ruby
snobbybumblebee has quit [Client Quit]
snobbybumblebee has joined #ruby
snobbybumblebee has quit [Client Quit]
snobbybumblebee has joined #ruby
tstirrat has joined #ruby
<tstirrat> i'm coming to ruby from python. do blocks enclose scope from where they're defined? or is it from where they're called?
snobbybumblebee has quit [Client Quit]
snobbybumblebee has joined #ruby
<weaksauce> what do you mean tstirrat? the closure should be where it's defined.
snobbybumblebee has quit [Quit: Igloo IRC: https://iglooirc.com]
skali has joined #ruby
skali has quit [Ping timeout: 252 seconds]
gggpkm has joined #ruby
<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
darkxploit has quit [Quit: darkxploit]
darkxploit has joined #ruby
lunarkitty has joined #ruby
tstirrat has quit [Quit: WeeChat 3.0.1]
skali has joined #ruby
skali has quit [Ping timeout: 252 seconds]
Guest6 has joined #ruby
audiocat has joined #ruby