you should use something like mocha for your tests, with that you can just say, this function, when given args, foo and bar, should return baz, and it'll handle the rest for you
@CᴏɴᴏʀO'Bʀɪᴇɴ git is a strange concept to think about in some sense.... GitHub has a great interactive tutorial you can run through without us overcomplicating it for you... :)
International Choice of Urinal Protocol efficiency
code-golf
A long while ago, Randall Munroe of xkcd fame wrote a blog post entitled Urinal protocol vulnerability. The titular "International Choice of Urinal Protocol" is that when men enter a bathroom that has a row of urinals along the wall, ...
Ditto SpyrosP's comment that this question is difficult to answer without going into a long discussion.
I guess my short answer would be: Are pointers absolutely necessary to programming? No. They make some problems easier or cleaner to solve, but you could always find alternative solutions. It'...
@QPaysTaxes BTW if you rewrite in C++ I could try and make it a Pepper module which means you could run it in browser with basically zero JS involved (although I'll have to run it through pepper.js for browsers other than chrome)
> /edit
Chat Domain (abbreviated)> SE
Message ID> 29801299
The message> flloof
Unhandled rejection ReferenceError: message_id is not defined
at commands.edit (/Users/rikerw/Downloads/SE-Chat-Terminal-master/prompt.js:163:39)
at /Users/rikerw/Downloads/SE-Chat-Terminal-master/prompt.js:226:29
at tryCatcher (/Users/rikerw/Downloads/SE-Chat-Terminal-master/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/rikerw/Downloads/SE-Chat-Terminal-master/node_modules/bluebird/js/release/promise.js:502:31)
@QPaysTaxes Is it declared global inside the function as well?
@QPaysTaxes Same way. global var. Declaring it to be global both inside and outside of the function is Python's way of making you be explicit about it.
And also allows two functions to use the same variable, but make it so that only one of them actually uses the global variable.