Andrey (azangru) wrote,

In his mini-course Build Your Own RxJS Pipeable Operators, John Lindquist starts off by overriding an undocumented method in the Subscriber class:

class DoubleSubscriber extends Subscriber {
  _next(value) {
    console.log(value) * 2)


No-one, without looking into the source code of RxJS, would even know that the Subscriber class has a _next method or a destination object. It is not in the public contract of the Subscriber class.

I wonder if it's a good practice to even touch the internals of a library, let alone build teaching materials that rely on this.

  • (no subject)

    Which/whose corporate interests is he talking about? Which corporations are interested in what? I am so confused.

  • (no subject)

    Two appearances of Noam Chomsky, in which he goes hard on the unvaccinated. Take, traffic rules, he says. Suppose, he says, I don't want to…

  • (no subject)

    Joe Rogan's episode with Michael Shellenberger is very good.

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.