Eloquently sums up my feelings about the disadvantages of dynamic typing

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Thu Oct 17 18:57:38 PDT 2013


On Thu, 17 Oct 2013 15:26:41 +0200
"Chris" <wendlec at tcd.ie> wrote:

> +1
> 
> What can I say? For the web I have to use JavaScript, PHP and 
> Python. Imagine the amount of stupid-yet-hard-to-find bugs I've 
> had to deal with. Bugs that you only become aware of at runtime.
> 

I've gotten to the point where I just refuse to deal with PHP anymore
(And I've never been willing to jump on the AJAX-y train).

I believe as much as anyone in "whatever pays the bills", but even then
there's reasonable limits where you just have to draw the line for your
own sake.

> Am much happier with D (or Java, Objective-C). As for the 
> arguments concerning compile time, extra typing for typing, 
> c'mon, they must be kidding.
> 

Exactly. I often get the impression the static-haters have only ever
heard of C++ and Java 2.

> Not to mention increased execution speed, not only in terms of 
> script vs. binary, but also in terms of known type vs. 
> dynamically assigned type.
> 

And in terms of "cache-friendly vs ultra-cache-annihilator-3000".

And in terms of "Simple efficient array of primitives vs Let's replace
every trivial primitive of data in the entire program with a big ol'
hashtable-of-hashtables, and potentially scatter them all over
memory, all just in case some knucklehead decides he just NEEDS to go
adding members and methods to some *individual* instance of a freaking
integer."

No wonder my Apple II had more responsive text entry than most modern
web sites. Hell, I've used typewriters that were faster than some web
forms. No joke.



More information about the Digitalmars-d mailing list