GithubHelp home page GithubHelp logo

Comments (4)

ccarruitero avatar ccarruitero commented on August 17, 2024

Hi @BenjDG

Thanks for the feedback. The read_it exercise it's a bit new (was introduced around 2 months ago).

I'll try to take a look into how to improve explanation in the sections that you mention, but PR are always welcome :) .

You can found solutions for this exercise in the repository, in the problem's folder and in the problem's test

from stream-adventure.

gkatsanos avatar gkatsanos commented on August 17, 2024

This exercise has some issues:
Implement a Readable stream, initiate a new stream instance from your
implementation and pipe to process.stdout. You will receive the content to
add to your stream like first argument.

The last sentence seems auto-translated. Should be : "the input for your stream is given from the 2nd process argument, process.argv[2]."
In addition, you need to state that the values are separated by newline or comma (or both) and mention something about "size".

To be honest I would remove this exercise for now until its a bit more stable.

from stream-adventure.

BenjDG avatar BenjDG commented on August 17, 2024

Hey @ccarruitero
Thanks for the response, I was enjoying the 'adventure' until that point and then had to skip it.
I'm new to JavaScript with Nodejs, but have a background in teaching and the instructions just seemed a little confusing.
Thanks for addressing my comments, I really like the format of the 'adventure' from easy to hard.
Keep up the good work!

from stream-adventure.

ccarruitero avatar ccarruitero commented on August 17, 2024

Hi @gkatsanos

The first argument that you pass throw command line arguments is parsed as process.argv[2] in Node.js.

I'm open to reword the argument sentence, or any other, you are free to open a PR :).

I think the solution was left from an initial implementation that was a bit more complex that how ended up the exercise. To solve the exercise you don't really need to implement the _read method, just need to have one (_read method) in your stream implementation, push the content to your stream and then pipe your stream to stdout.

The solution in tests is enough to solve the exercise

I'll cleanup the reference solution to avoid confusion.

from stream-adventure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.