Comments (4)
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.
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.
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.
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)
- update html_stream exercise HOT 2
- add exercise about implement a writable stream
- add problem to use async generators and iterators
- add/update problem to use stream pipeline
- add problem about stream object mode HOT 1
- duplexer-redux uses [object Object] HOT 1
- Why does this need to be a duplex HOT 1
- "Read It" problem lacks clear instructions HOT 1
- data fed to stdin for the "lines" problem has no new lines in it, please fix
- Some text will not show in Windows 10 with Git Bash HOT 1
- cosmetic: IMHO we should adjust some texts HOT 2
- (almost) npm free solutions HOT 2
- Cannot finish the Lesson 7 HOT 2
- ENOTCONN error in combiner
- combiner challenge - ERR_STREAM_CANNOT_PIPE (not readable) HOT 1
- Secretz seems broken HOT 2
- Unable to complete Lesson 7 HOT 4
- TypeError while running Exercise 13 (DUPLEXER) and 14 (DUPLEXER REDUX) HOT 1
- Write-to-me: Instructions vague
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-adventure.