20 karma · joined Oct 29, 2011 (15y ago) · 12 submissions
My site: http://www.listofone.com/
Philanthropy: http://www.mariomarathon.com/
comment 13y ago · link · parent
This is not true, the var hoist the variable and scopes it to the function, but does not create it as a property of the function. A function is defined in its outer function scope, an it's properties will persist across calls.
function foo() {
var bar = 1;
foo.baz = 2;
}
foo();
foo.bar; // is undefined
foo.baz; // is 2
Adding properties to functions is useful for memoization, but is different than what the var statement does.Your summary of that section is a better explanation:
all variables are scoped to a function (which is itself an object), and where you declare those variables with var determines the function they are scoped to.
You might add, if you never declare the variable with var it is implicitly declared global.
comment 14y ago · link · parent
(edit: typo)
comment 14y ago · link · parent
We didn't use any accelerometer events, but touch events worked seamlessly on iOS and Android.
comment 14y ago · link · parent
To be fair, the article talks about funding, which is finance, but brushes over the differences between debt and equity finance and doesn't provide the tools to evaluate when, what, and how to finance.
Tech start ups are probably in a, take what you can get, position for funding. Still, having an understanding of finance could help with evaluating things like convertible notes which start as debt and can optionally convert to equity.
comment 14y ago · link · parent
One surely has higher odds if success, if they were to execute every idea, without evaluating its value, than someone with perfect ideas but no ability to execute.
comment 14y ago · link · parent
I suspect there are also incentives for top performers to move out of education and into administration.
comment 14y ago · link · parent
11.
Biden on Internet Freedom = Anti-SOPA(youtube.com ↗)
4 points · by trip42 · 15y ago · discuss