[NOTABUG] Misattributed quote was deliberate
-
Continuing the discussion from something ivolving quotes:
Both me and @aliceif quoted the OP...
-
I deliberately misattributed it. I just wanted to see if loopback's bots respond to quotes - because accalia's don't.
-
There's no reason that the various sockbot clones can't respond to quotes.
It is just none of the modules I wrote look for quotes.
-
There's no reason [they] cont [sic] respond to quotes
Ummm
@accalia said:none of the modules look for quotes.
Just sayin'
-
Ummm
typo. cont>can't
Just sayin'
exactly. they CAN respond to quotes. They just DONT.
:-P
-
From that topic,
-
good to know it's more than just @shadowmod that can get into unexpected loops.
-
I was going for low-level pedantry (rather than aiming for a badge) that there is a reason they can't respond to quotes, and it's because they don't look for it.
-
Yeah, but it's expected from Discourse.
-
and it's because they don't look for it.
no. they look for it. that's why you see in the log them saying someone quoted them.
they just don't do anything about it (other than print the entry in the log)
-
they look for it.
I was basing them not looking on you saying they didn't.It is just none of the modules I wrote look for quotes.
Make up your mind ;)
-
Make up your mind
i don't know if you wrote a sockmodule i don't know about, or @RaceProUK, or @PJH.... and that's just the people who i know run a sockbot instance.
they could have made their modules do something on quote!
-
I haven't written any modules yet; can't think of one I want to write!
-
Make up your mind
also the
they
in quote one refers to the bots themselves while thethey
in quote b refers to the sockmodules that make up the bots actions.both are correct. (it's message bus that writes that log, not a module.)
-
I haven't written any modules yet; can't think of one I want to write!
if you do i'd love a pull request so everyone can use it!
:-D
-
So the bot cannot perform the action of responding to a quote because the module behind the action doesn't listen for them.
Oh, nevermind.
-
i don't know if you wrote a sockmodule i don't know about
I'd have to figure out JS first.
-
I'd have to figure out JS first.
i'm working on documenting things so you can do that more easily.
-
I'll still look at the code itself and be
Ain't no danger of me writing it :)
-
I'll still look at the code itself and be
Continuation passing style tends to elicit that response.
is powerful pattern but is not easiest to understand.
-
Any particular reason behind choosing CPS instead of writing normal code?
-
Any particular reason behind choosing CPS instead of writing normal code?
couple of reasons:
- i wanted WTFs galore. this is a what.thedailywtf bot after all!
- i wanted to learn the style better
- node.js really really really wants you to use it with their API choices that default async and take functions to deliver results to you.
-
Any particular reason behind choosing CPS instead of writing normal code?
As @accalia says, it's built on node.js and that's got the hots for callbacks. CPS works well with that, and switching to something โnormalโ requires something like deep coroutines, which I don't think the V8 runtime can support at the moment.