News for hackers. Stuff that matters.
Re:Technical Papers Every Programmer Should Read at Least Tw... by theoh on Saturday December 20, 2014 @02:18AM (#8776069)
Considering JavaScript makes it difficult to avoid, that's not surprising... And since js is probably one of the common denominators of much activity on the fringes of programming it seems like floating point should be widely discussed.

Unrelated to numeric computing, my favourite thing would be Butler Lampson's Hints for Computer System Design.

Re:Technical Papers Every Programmer Should Read at Least Tw... by grobinson on Saturday December 20, 2014 @04:54AM (#8776272)
I've worked with code in the past where the previous developers didn't understand that there was a difference between an integer in a string (i.e. var x = '10';) and an integer (i.e. var x = 10; ). In some ways weak typing and automatic type conversion is quite dangerous because it can encourage beginners to adopt bad practice and be non the wiser.

Edit: Changed 'In some ways duck typing' to 'In some ways weak typing' as rightly pointed out below.

Re:Technical Papers Every Programmer Should Read at Least Tw... by klibertp on Saturday December 20, 2014 @06:08AM (#8776362)
> duck typing and automatic type conversion

It's weak typing (or equivalently "automatic type conversion" as you say) that is to blame. "Duck typing" - also "structural polymorphism", "subtyping polymorphism", know in OCaml as "polymorphic variants" and adopted as a default by Go's interfaces semantics - would only enable "'10' + 10" if String type would have a method "+(x:Number)", which most likely is not there, or if it is it's explicitly laid out.

It's weak typing - ie. language trying to coerce elements of expressions to the types which make the whole expressions make sense, with implicit rules that no one ever reads - that's dangerous.

Sorry for being this pedantic, but while I'd like to see less weak typing in languages (outside of some specific domains, like AWK) I'd also would like to see more "duck typing", because it's more convenient than nominative polymorphism and exactly as safe.

Re:Technical Papers Every Programmer Should Read at Least Tw... by grobinson on Saturday December 20, 2014 @06:34AM (#8776401)
Sorry, you're absolutely right! I had confused the two when writing my post.