News for hackers. Stuff that matters.
Re:Stop Using Constructors in JS (2012) by vgallur on Thursday November 06, 2014 @09:52AM (#8567202)
Another interesting point of view about constructors:

http://www.2ality.com/2013/07/defending-constructors.html

Re:Stop Using Constructors in JS (2012) by shangxiao on Thursday November 06, 2014 @10:37AM (#8567461)
Awesome, bookmarked like it's 1999.

Seriously though the snippet for the forgetting-new protection in a constructor seems quite handy. It's always good to hear arguments from both sides of the fence.

Re:Stop Using Constructors in JS (2012) by teamonkey on Thursday November 06, 2014 @10:29AM (#8567415)

  > typeof String('abc')
  'string'
  > typeof new String('abc')
  'object'
Oh dear, I think I'm getting a migraine.