HNHacker News
TopNewBestAskShowJobs

maninalift

23 karma · joined December 17, 2013

submissionscomments
maninalift··on REPL: To JSON what Excel is to CSV
While we are there, if you want to manipulate JS not just JSON:

http://graspjs.com/

maninalift··on REPL: To JSON what Excel is to CSV
Your bandwidth has nothing to do with it, it runs in the browser.

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).

maninalift··on REPL: To JSON what Excel is to CSV
I don't get this at all.

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?

maninalift··on How to write a great research paper [pdf]
Which is the 3rd circle of hell.

Breaking with this sort of practice is exactly why agile development and it's ilk were born.

While writing a formal specification can be useful, it is rarely as useful as defining the problem and placing your solution in the context of other possible solutions.

maninalift··on How to write a great research paper [pdf]
I actually apply this to my hacking these days. The statement you often realize that problems are more interesting once you sit down and analyse them I have found to be particularly true.

When I'm faced with a design problem I write a "white paper" setting out the problem, framing the desired properties of any solution then as systematically as possible setting out the alternatives and justifying why a particular solution has been chosen.

I usually find that in going through this process I am forced to change my initial design decisions, often ones that seemed obviously, even trivially, correct to begin with.

maninalift··on Rust is surprisingly expressive
The example presented in this post is neither a great example of what Rust can do nor an elegant solution to the particular problem of dealing with dates and times.

For a much further-reaching solution to this problem look at C++ user-defined literals, combined with what Bjarne Stroustrup calls "type rich programming".

now() + 3days + 21s + 102ms

This is not to say that c++ is the only language that can do this (although it does do it very well).

See the following video for a simple overview (apologies for toe-curling introduction): http://channel9.msdn.com/Events/GoingNative/GoingNative-2012...

...also the video above is worth watching just for the vector vs. list comparison.

← PreviousPage 2 of 2