Adding Help
Video Course on Real-Time HTML5 with Node.jsif you don't pass the correct parameters the command line app should display help
function printHelp(){
console.log("1.js (c) Kyle Simpson");
console.log("");
console.log("usage:");
// continue with the man
};
// then later
if (args.help || !args.name) {
printHelp();
process.exit(1); // exit code 1
}
more talk about the "middle-end" conceptmiddle-end the bottom 10% of what happens in the browser and top 90% of what happens on the server
there are already people who write this code (back-end people writing html markup)
a middle end WordPresswordpress is not very good at theming and display : it could be just a state management machine, just a black box
instead just present the data as JSON - and the middle end would take over