Re:Hapi, new Node.js framework (a prologue)
by javajosh on Sunday February 03, 2013 @12:49AM
(#5158805)
Doing this would be a mistake. You do not want to add web-aware code to a module that is concerned with doing math.
[ Parent
| on HN ]
Re:Hapi, new Node.js framework (a prologue)
by adamnemecek on Sunday February 03, 2013 @04:13AM
(#5159167)
I believe that peter_l_downs was using this exotic literary device called an "example".
When you read about class inheritance, was your first reaction "This is useless, why would I ever want to have a Dog class which is based on an Animal class"?
Re:Hapi, new Node.js framework (a prologue)
by randallsquared on Sunday February 03, 2013 @09:51AM
(#5159807)
Having an internal module know how to interact with a request seems to me to be the point of the example, and I also disagree with it, as a rule.
Re:Hapi, new Node.js framework (a prologue)
by flaviojuvenal on Sunday February 03, 2013 @10:30AM
(#5159900)
The module doesn't know how to interact with a request. Only with integer variables.