News for hackers. Stuff that matters.
Re:Node.js Best Practices by hderms on Saturday September 20, 2014 @04:59PM (#8345574)
why do people want to avoid using new?
Re:Node.js Best Practices by LazerBear on Sunday September 21, 2014 @01:02PM (#8347608)
If you accidentally forget to use 'new' when you're supposed to, the "constructor" method will change the global object instead of a new object, it can cause strange behavior that is very hard to trace.
Re:Node.js Best Practices by hderms on Friday October 03, 2014 @01:58PM (#8406689)
Ah, I see. I guess I've never forgotten to use new. That does sound incredibly annoying to debug.