plutes has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 272 seconds]
DaRock has joined #ruby
Manchotix[m] has joined #ruby
plutes has joined #ruby
Caius has quit [Ping timeout: 246 seconds]
Caius has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
tranch[m] has quit [Ping timeout: 246 seconds]
hsiktas[m] has quit [Ping timeout: 246 seconds]
mbarbar has quit [Ping timeout: 246 seconds]
turt2live has quit [Ping timeout: 246 seconds]
plutes has quit [Read error: Connection reset by peer]
tranch[m] has joined #ruby
cacheerror has joined #ruby
cacheerror has quit [Client Quit]
mbarbar has joined #ruby
cacheerror has joined #ruby
hsiktas[m] has joined #ruby
turt2live has joined #ruby
RingtailedFox has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 256 seconds]
xco has joined #ruby
cacheerror has quit [Quit: WeeChat 2.3]
cacheerror has joined #ruby
ur5us has joined #ruby
teclator has quit [Read error: Connection reset by peer]
RingtailedFox has joined #ruby
poro_ has joined #ruby
teclator has joined #ruby
poro has quit [Ping timeout: 246 seconds]
gix has quit [Ping timeout: 244 seconds]
tranch[m] has quit [Ping timeout: 246 seconds]
hsiktas[m] has quit [Ping timeout: 246 seconds]
tranch[m] has joined #ruby
cd has quit [Quit: cd]
hsiktas[m] has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
ta has quit [Ping timeout: 272 seconds]
ta has joined #ruby
poro_ has quit [Quit: Leaving]
haraoka has joined #ruby
jinmiaoluo has joined #ruby
Arkantos_ has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
Arkantos has joined #ruby
SuperLag has quit [Remote host closed the connection]
jinmiaoluo has quit [Ping timeout: 246 seconds]
jinmiaoluo has joined #ruby
jinmiaoluo has quit [Ping timeout: 260 seconds]
plutes has joined #ruby
bga57 has quit [Ping timeout: 272 seconds]
bga57 has joined #ruby
bga57 has quit [Ping timeout: 272 seconds]
<xco>
i'm a little bothered that kovid rose very quickly to 99 stars and just stuck! the 100th start has taken close to 2 months and it's still not coming https://github.com/siaw23/kovid
<xco>
anyone wants to waste a star so i get a sense of "completeness"
<xco>
?
<xco>
😅
<xco>
it'd be waaaaay happier even if it were 75 stars than 99 stars
<xco>
:D :D
<xco>
I'd*
bga57 has joined #ruby
<apotheon>
done
<xco>
whew!! apotheon you rock!
<xco>
you know how good this feels? hahhaha
<apotheon>
no clue
<apotheon>
I've never gotten 99 stars on anything.
<xco>
to be honest the stars mean nothing, it's just like facebook likes for some people (not for me though)
<xco>
it just worries me that it was stuck at 99%
<xco>
imagine you're watching a movie that buffers to 99% then gets stuck
<xco>
i'd go mad
<xco>
same here
<xco>
🤣...
<xco>
apotheon anyway i have a genuine question for you, let me prepare a gist for you, it's about accessing a local variable withing a nested block
amjam has quit [Quit: leaving]
<apotheon>
I have two things with four stars. Those are my high-star-rating repositories.
<apotheon>
har har
<apotheon>
It's okay. Most of my repos on GitHub are shit.
<apotheon>
. . . or forks for minor pull requests.
lawr3nce has quit [Remote host closed the connection]
<havenwood>
xco: First, undef is a keyword, so not #undef. That also means it can take a symbol or bare method name, like `undef foo` as well as `undef :foo`.
<havenwood>
xco: Unlike, undef and #undef_method, #remove_method just removes the method from the current class, and doesn't interfere with the rest of the ancestry.
sphex has quit [Ping timeout: 256 seconds]
sphex has joined #ruby
clemens3 has quit [Quit: WeeChat 2.7]
clemens3 has joined #ruby
<havenwood>
xco: Since #undef_method is a method, you can call it on a class, unlike undef.
<havenwood>
xco: It's somewhat similar to how you can define a method with the keyword def or the method #define_method. The keyword is used more commonly but the method is more flexible in certain cases where the keyword won't work.
Besnik_b has quit [Remote host closed the connection]
Besnik_b has joined #ruby
NODE has quit [Excess Flood]
NODE has joined #ruby
BTRE has joined #ruby
NODE has quit [Excess Flood]
NODE has joined #ruby
NODE has quit [Excess Flood]
venmx has quit [Ping timeout: 246 seconds]
NODE has joined #ruby
NODE has quit [Excess Flood]
clemens3 has joined #ruby
sauvin has quit [Ping timeout: 258 seconds]
clemens3 has quit [Client Quit]
NODE has joined #ruby
NODE has left #ruby [#ruby]
clemens3 has joined #ruby
sol1d has joined #ruby
aesthe has quit [Quit: Leaving]
cnsvc_ has joined #ruby
<xco>
havenwood it's the nuances that always get me... thanks. those method are pretty useful (talking about undef and #undef_method), when you want to change core functionality with the help of refinements
nofxx__ has joined #ruby
nofxx_ has quit [Ping timeout: 258 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #ruby
major_majors has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
major_majors has joined #ruby
major_majors has quit [Changing host]
major_majors has joined #ruby
ni291187 has joined #ruby
<CommunistWolf>
boycott refinements :p
major_majors has quit [Client Quit]
greengriminal has quit [Quit: This computer has gone to sleep]
ni291187 has left #ruby [#ruby]
major_majors has joined #ruby
major_majors has quit [Changing host]
major_majors has joined #ruby
chalkmonster has joined #ruby
sphex has quit [Read error: Connection reset by peer]
sphex has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.8]
cnsvc_ has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
schne1der has joined #ruby
jetchisel has joined #ruby
r29v has joined #ruby
Deesl has joined #ruby
miah has joined #ruby
cxl has quit [Ping timeout: 265 seconds]
<xco>
CommunistWolf ha. refinements are cool
<CommunistWolf>
nein
lxsameer has quit [Ping timeout: 272 seconds]
<havenwood>
CommunistWolf: Refine everything!
<CommunistWolf>
it's such a bad idea
<leftylink>
I would like to voice my support
<leftylink>
thanks for listening
cxl has joined #ruby
<leftylink>
although I suppose I didn't give anyone a choice
<leftylink>
so it's not much to thank for
<CommunistWolf>
I've been struck recently by how much we have to hem people in at work to not use various features of ruby
<CommunistWolf>
the list of cops is long and ever-growing
<havenwood>
CommunistWolf: I see some shops use a subset of Ruby and others use every part of Ruby Matz included.
<havenwood>
CommunistWolf: Seems to work fine both ways.
<havenwood>
CommunistWolf: I don't see a reason to ban refinements. ¯\_(ツ)_/¯ That's an odd one.
<havenwood>
I've not actually had refinements bite me. I'm curious what the perceived trouble is.
<havenwood>
Monkey patching core classes, sure. Don't do that! But refinements? They're harmless.
lxsameer has joined #ruby
akem has quit [Ping timeout: 246 seconds]
konvertex has joined #ruby
lesha has quit [Remote host closed the connection]
lesha has joined #ruby
<CommunistWolf>
not so harmless
<CommunistWolf>
if you don't carry the full list of currently active refinements around in your head, you will suffer
<CommunistWolf>
and that's just not possible in large codebases
<CommunistWolf>
at least monkey-patches have global scope, so affect every site in the process
<xco>
havenwood Monkey patching core classes, sure. Don't do that! But refinements? They're harmless. << preach on brother
<xco>
CommunistWolf if you don't carry the full list of currently active refinements around in your head, you will suffer << how about documentation if the codebase is that large?
<CommunistWolf>
impractical
<xco>
hm... now i'm left to imagine how big of a codebase that must be
akem has joined #ruby
<CommunistWolf>
there are whole subsystems, changes to which I have to do reviews for, that have grown up without my involvement at all. If refinements have been used in them, it's hard for me to rely on my general knowledge to do that
* CommunistWolf
runs sloccount
<CommunistWolf>
Total Physical Source Lines of Code (SLOC) = 99,081
<havenwood>
CommunistWolf: But what's the longest file? Refinements are lexically scoped to the class or module definition they're in and the current file.
<CommunistWolf>
a few thousand lines maybe
<havenwood>
CommunistWolf: If refinements weren't so tightly scoped, it'd be a problem. But I can look inside a single file for refinements without hassle unless they're used gratuitously.
<CommunistWolf>
looks like they're not used at all in this codebase
<CommunistWolf>
hopefully it'll stay that way :3
<havenwood>
CommunistWolf: The size of the project isn't relevant due to scoping. It's only the size of the current file.
<CommunistWolf>
so many files > 1kloc :/
<havenwood>
CommunistWolf: Every time I've used them in prod it's been fine. ¯\_(ツ)_/¯
<havenwood>
CommunistWolf: 1kloc isn't hard to find a refinement.
<havenwood>
CommunistWolf: It's scoped to the class and file. If you have 10kloc classes, that seems excessive.
<CommunistWolf>
I shall remain happy that they don't exist for me
<havenwood>
They're fine. FUD.
<havenwood>
Refinements are delicate and graceful creatures.
<havenwood>
CommunistWolf: I do use them sparingly. Maybe that's why they've caused zero pain but some delight.
<CommunistWolf>
maybe one day I'll find a good use for one