You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| README.md | 3 years ago | |
| package.json | 3 years ago | |
| step1.js | 3 years ago | |
| step2.js | 3 years ago | |
| step3.js | 3 years ago | |
| step4.js | 3 years ago | |
| step5.js | 3 years ago | |
| step6.js | 3 years ago | |
README.md
Exercise 01: CSV is Easy...Right?
This is exercise 01 of JavaScript Level 2 in Learn JavaScript the Hard Way. It is meant to be done as a challenge with incorrect starting code that you are expected to fix and improve. I repeat, this code is incorrect on purpose so you can fix it and attempt to do better.
step1.js-- Use two projects to get CSV samples and try to write a simple parser that can parse all of the samples.step2.js-- This is a starter in case you are stuck, but it still fails and would fail on many CSV files. CSV is more complex than its name lets on.step3.js-- Take your parser and use the deep-equal project to compare your results to the csv-spectrum project's tests.step4.js-- Let's up the game and make this a unit test with ava, except it doesn't work because of promises/async/await not working with callbacks and events.step5.js-- First solution tostep4.jsthat usesPromisedirectly to wrap callbacks and events.step6.js-- Second solution that uses util.promisify to convert thespectrumcallback to aPromiseautomatically.
If you attempt this challenge then point me at your solution at @lzsthw and I'll take a look.