slurpme
Re:Ask HN: what software do you use for analyzing apache logs?
on Tuesday April 08, 2008 @08:08AM (#157779)
I use http://polliwog.sourceforge.net open source, runs on Java. Not suitable for large websites since it provides a LOT of information about your site.
Re:Javascript null surprise
on Friday February 22, 2008 @06:47PM (#121690)
Yes I think you are right about that, too early in the morning for me...
Makes me wonder what the rules are for coercion though, that is does it pick null to coerce or 0?
Re:Javascript null surprise
on Friday February 22, 2008 @06:36PM (#121682)
I know, I mentioned it as the new object because it's one of the few situations I know of where you might use a newline after the return keyword.
I understand what you mean, in this case though it would be helpful if the interpreter detects the statement as being not reachable since it's after the return.
Re:Javascript null surprise
on Friday February 22, 2008 @06:28PM (#121677)
But isn't the context a Boolean expression, so the 0 would be converted to a Boolean as well?
Re:Javascript null surprise
on Friday February 22, 2008 @05:46PM (#121652)
How about this surprise which caught me out a couple of days ago, try:
function hello () {
return
{
value : 10
};
}window.alert (hello ().value);
It burps in FF and IE...