In part 2 of my tutorial, we built the web server and created a dispatcher to handle the incoming client browser requests and route them to actions. In part 3 of this series, I cover refactoring our Node app into separate node modules and components. I am also introducing the concept of a controller and views, the Node Package Manager (NPM) and the ubiquitous Mustache templating language. By the end of part 3 we will have a good foundation for a Node MVC framework. Before We Dive In (Refactoring) ** **Right now would be a good time to think about how we want to structure our node application going forward. We want to have the dispatcher, controller, model and view as separate objects. This...
Continue reading...
To the casual observer, perhaps, a beard or mustache is just something bristly on one’s face, but for the men on Beard Board, it’s a “Journey,” or even a trusted friend. In a world where competitive facial hair is a thing, it makes perfect sense that men get together online to trade notes about growing theirs out, the shaving products they use, and which styles suit them best. These guys have a passion and pride for the well-maintained beard that leads them to post about the progress, week by week and month by month, toward the whiskers of their dreams. It’s a happy, supportive place. For organizational purposes, threads about starter beards — typically first-time attempts — are stratified...
Continue reading...
First Person is a daily personal piece submitted by readers. Have a story to tell? See our guidelines at tgam.ca/essayguide. I can remember attempting to grow my first mustache at about age 15. It was a bit sparse, but I felt it had real promise. In the early 1970s, growing a mustache meant a fellow was coming of age, since many famous rock stars and athletes of the day sported big ‘staches. In those days, the hairy upper lip normally accompanied shoulder-length hair, parted in the middle, with washing and grooming being optional. Just to be clear, the mustache I’m referring to is the standalone caterpillar right under the nose – not the goatee or the full beard. These other...
Continue reading...