Eloquently sums up my feelings about the disadvantages of dynamic typing

Jacob Carlborg doob at me.com
Wed Oct 16 12:14:14 PDT 2013


On 2013-10-16 19:26, H. S. Teoh wrote:

> Yeah, this is exactly what makes Javascript a royal pain in the neck to
> work with.  I have the dubious pleasure of having to work on a large
> non-trivial JS codebase at work, and it has a reputation of simply
> displaying a blank page when something goes wrong. Worse yet, there is
> some default error handler somewhere that swallows all JS errors, so no
> errors get logged to the browser's JS console at all -- you have to
> debug the entire 50k or so lines of JS with a blank page as your only
> clue as to what blew up.

Yeah, you really need to use the browser's developer tools to have any 
chance when working with JavaScript.

> (And don't get me started on IE6, which used to be the de facto standard
> demanded by every customer some years ago, which doesn't even *have* an
> error console. Fortunately, the world has moved on since.)

Actually, just a couple of weeks ago I found Firebug Lite. It's like 
Firebug but it's a booklet in pure JavaScript (ironically). That means 
you can use it in any browser, include IE6 (yes it works in IE6), iOS 
and other browsers missing developer tools.

I have also used remote debugging when I debugged a site in the iPhone 
simulator. It uses web sockets (I think) to send the data to another 
browser where the actual developer tools are.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list