REPL: To JSON what Excel is to CSV
repl.cc
repl.cc
It's a REPL in the sense that when you click Run, the value of the current evaluation is used (Looped) as the input for the next expression, but this stretches the common understanding, and naming it this way fails to communicate.
The full page transition when you click Run loses the implicit history from a teletype or terminal scrollback. A shell works because you can see two or more values were visible at the same time. The second pane could then show the code of the currently selected value. You could even show the diff/patch between the values as well.
The 'Run' text should look like a button rather than a label, and be moved to the right. It might work even better to just evaluate the code on a timeout without an explicit gesture.
Edited: for more positive feedback.
some passionate debate here:
The power of Excel is that you can manipulate the data within the view itself, so for that comparison to make sense, I would expect to be able to add a node to the data, for example, and define its contents using a formula (function).
What I really want is SQL for JSON. Regular SQL is a declarative language for transforming flat lists of records into other flat lists of records, and the challenge is extending it to allow nested records. Has that been done?
For now it's really at prototype stage of course and we still have to figure out if it's really useful and how we could make it more useful!
Here's a link : https://docs.google.com/spreadsheet/ccc?key=0Ak0Zu3w86Ux5dEt...
How many times have we seen papers and science blown because someone made a mistake in the 50 steps they did to get their results?
CSV > Excel
I'd be hard-pressed to find a more convenient and flexible tool than Excel. Relational databases are too inflexible, toolchain just sucks, and as for the CSV manipulation - sure, if you know how to code.
There's a reason people in banks, accounting, etc. keep doing everything in Excel even after proper systems are introduced. It's not because they're stupid; it's because all the "right" solutions suck hard and they need to work around the broken tools to do their job.
There's a huge market opportunity here.
Yes, I'd rather a raw dump of data in CSV than XLS, but it seems like you're making a more general statement than that.
All it does is JSON.parse, execute your series of functions then JSON.stringify.
Unless I'm missing something there is no advantage over ad-hoc javascript. If you want to load a file from disk, deserialize and do some processing in javascript then node is absolutely the right tool (and this isn't).
I can build a pipeline of functions and view the output just as conveniently in a plain node or browser environment and I would have much more flexibility.
Has anyone got a use case?
Anyone?
I don't know what it is, some of the products/projects being shown on HN lately have the problem of coherently explaining and demoing what the they do.
Spreadsheets are treated as Swiss Army Knifes. People believe all they need to do anything is Word and Excel.
Anything else is obviously a mess - and people can use gDocs or OpenOffice for that as well.
Spreadsheets are great for all sorts of reasons. However, they are not some magical tool that makes csv files usable.