found drama

get oblique

why you should basically never use the Number constructor

by Rob Friesel

Inspired by some recent entanglements with a vendor’s API:

The type coercion will ultimately work in your favor but the main point is that the type coercion has to take place in the first place. Granted, it is probably an edge case1 to do something like:

…but you never know. There’s some strange code out there2.

  1. And therefore you get what you deserve? []
  2. And by that I mean: Don’t be one of the ones writing it. []

About Rob Friesel

Software engineer by day, science fiction writer by night. Author of The PhantomJS Cookbook and a short story in Please Do Not Remove. View all posts by Rob Friesel →

3 Responses to why you should basically never use the Number constructor

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*