Live data from Hacker News

Show HN: Papa Parse 3

papaparse.com

61–70 of 86 posts

Re: Show HN: Papa Parse 3

#61
post #55

When you convert CSV to and from JSON(/XML) then the interesting part IMHO is how to convert the hierarchy (of JSON/XML) to CSV and how to encode it (e.g. in a header-line). Do you account for that?

There are some assumptions made. Mainly, that you have an array of arrays or an array of objects to encode as CSV. For an array of arrays, that's easy: each array is a row. For an array of objects, each object is a row keyed by field name. Data with a varied structure is much trickier, if at all possible, to flatten. I haven't figured out a magic formula for that (yet?).

Thanks for scrolling down :) and answering. Yes assumptions have to be made. I have just been curious, since I have done sth similar recently (http://www.use-the-tree.com). The assumptions I make there are "that these are reasonable business documents" (e.g. invoices, orders). E.g. A List of Customers having Orders with Order Lines (3 levels (or more))

Re: Show HN: Papa Parse 3

#62
post #59

Earlier quoted context omitted.

Hmm... I'll consider that for a later upgrade to the demo. For most people, it seems that seeing the results in the console is enough to know if it does what they need.

yeah we can wait for later stages for the implementation in demo but in the meantime any documentation or pointers on how to achieve the direct download of results..

A quick Google search yields this[0] which would probably do the trick. Just beware of browser compatibility[1] (something that plagues several features of Papa already, hence it requires a modern browser to use them).

[0]: http://stackoverflow.com/questions/3665115/create-a-file-in-...

[1]: https://www.google.com/webhp?q=max%20length%20of%20data%20ur...

Re: Show HN: Papa Parse 3

#63
post #46

Amazing project! Everything seems really well put together. I really like the humor and the Q&A format. Do you mind if I borrow it for v2 of a project I'm releasing soon? Also, there is not a single negative comment here. That's a HN record. Congratulations!

It's not a CSV library, right? :) Go for it. And yeah, I've been surprised! I hadn't anticipated so many comments about the web site, since the feature is a Javascript library. It's like going to a movie for the previews. Definitely grateful for the feedback, though. It's great that quirks that are being constructively reported so they can be fixed.

[deleted]

Re: Show HN: Papa Parse 3

#64
post #46

Amazing project! Everything seems really well put together. I really like the humor and the Q&A format. Do you mind if I borrow it for v2 of a project I'm releasing soon? Also, there is not a single negative comment here. That's a HN record. Congratulations!

It's not a CSV library, right? :) Go for it. And yeah, I've been surprised! I hadn't anticipated so many comments about the web site, since the feature is a Javascript library. It's like going to a movie for the previews. Definitely grateful for the feedback, though. It's great that quirks that are being constructively reported so they can be fixed.

> I hadn't anticipated so many comments about the web site...

Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec).

But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library web page, even if they won't use it immediately.

Third, and this is most important, it would be significantly better if you published Papa Parse to the NPM registry, because then "real" javascript programmers can add it to their existing project with a simple "npm install papaparse --save". Publishing is trivial (install npm, run 'npm init', set values, then 'npm publish').

Re: Show HN: Papa Parse 3

#66
post #46

Earlier quoted context omitted.

It's not a CSV library, right? :) Go for it. And yeah, I've been surprised! I hadn't anticipated so many comments about the web site, since the feature is a Javascript library. It's like going to a movie for the previews. Definitely grateful for the feedback, though. It's great that quirks that are being constructively reported so they can be fixed.

> I hadn't anticipated so many comments about the web site... Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec). But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library we…

s/GCD/LCD

Greatest common multiple, lowest common denominator

Re: Show HN: Papa Parse 3

#67
post #46

Earlier quoted context omitted.

It's not a CSV library, right? :) Go for it. And yeah, I've been surprised! I hadn't anticipated so many comments about the web site, since the feature is a Javascript library. It's like going to a movie for the previews. Definitely grateful for the feedback, though. It's great that quirks that are being constructively reported so they can be fixed.

> I hadn't anticipated so many comments about the web site... Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec). But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library we…

Thank you! And you're right about the audience and their interests. That makes sense.

I'd love to package this thing up for NPM. But I'm not a Node.js developer, so I haven't tried running this in Node. I'll see what I can do though to make that happen.

Re: Show HN: Papa Parse 3

#68
post #66

Earlier quoted context omitted.

> I hadn't anticipated so many comments about the web site... Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec). But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library we…

s/GCD/LCD Greatest common multiple, lowest common denominator

I meant GCD. The LCD between people on HN is arguably their personhood - but that's not useful, since it's true for every online community. The GCD of HN, on the other hand, has to do with a shared love of problem solving, particularly in fair contests. The website of a library, as opposed to the library itself, is an expression of "a solution", which we can all enjoy (and comment on), even if we don't use it in our work. Therefore website exposition speaks to the GCD of HN members.

Re: Show HN: Papa Parse 3

#69
post #66

Earlier quoted context omitted.

> I hadn't anticipated so many comments about the web site... Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec). But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library we…

s/GCD/LCD Greatest common multiple, lowest common denominator

I was wondering why he was comparing JS to Grand Central Dispatch myself.

Re: Show HN: Papa Parse 3

#70
post #67

Earlier quoted context omitted.

> I hadn't anticipated so many comments about the web site... Well, first, I think you need to accept the fact that you made a truly stand-out website, with a useful innovation (the Q&A format with code examples) that people are going to copy (and to good effec). But second, the comments about the web 'preview' is the GCD of HN - Haskell, .Net, and Python programmers might still take a peak at a JavaScript library we…

Thank you! And you're right about the audience and their interests. That makes sense. I'd love to package this thing up for NPM. But I'm not a Node.js developer, so I haven't tried running this in Node. I'll see what I can do though to make that happen.

Interestingly, a lot of people are putting up non-node.js libraries on NPM (front-end stuff), which Bower, Browserify, and others take advantage of. So don't be shy, just document that it's for front end (though I have a feeling it'll probably do just fine in node anyway, the lack of dependencies makes it easy)
Post reply on HN