a basic explanation is that by preceding a variable declaration with var creates a property on the nearest containing function
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.
For many people, the real return on buying a house is owning the house, not the increase in value of the property. Where I live housing is fairly inexpensive and I can't think if of any other similarly sized investment that is guaranteed to cover my cost of housing for the rest of my life.
I built a slideshow control system for a class project using nearly the same approach. A user uploads a slideshow or authors it online and connects a phone/device via a QR Code or URL to control the presentation. The controller uses websockets to communicate with a nodejs server for events like previous/next, a touch-screen based laser pointer, and presenter notes. I was amazed how responsive the touch movements translated to moving a dot on the screen through a remote node server.
We didn't use any accelerometer events, but touch events worked seamlessly on iOS and Android.
I'm going to nitpick a bit and say this article would be better titled, "Accounting for Geeks". Over simplified, finance is more forward looking, while accounting is a reflection or recording of what has happened in the past. Income Statements, Balance Sheets, and Cash Flow Statement are accounting instruments.
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.
Concluding that ideas are as valuable as execution because two poorly executed (but still executed) apps performed better than well executed seems to assume that everyone with the same idea could execute at all.
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.
The US education system benefited for a long period where many incredibly smart women had career options basically limited to teaching and nursing. As equality improved, some of the brightest prospective teachers instead became doctors, scientists, and engineers. This decrease in teacher quality is resulting in a more "assembly line" style of education, where each step is fully structured. I have seen anecdotal evidence of highly qualified teachers exiting the workforce because the structure of the work has become unfulfilling.
I suspect there are also incentives for top performers to move out of education and into administration.
TAL is one of the most impressive things to come out of Zope, after using it for years I feel dirty using a templating system allows inline programming logic. Chameleon templates implement Zope's TAL for use outside of Zope: http://chameleon.repoze.org/
You mean YouTube has information on all of the photographs I've ever taken and who I've licensed them to? I don't recall making this information public, so I don't see how they could possibly detect copyright infringement of my content.
Check out Pyramid, it's full featured but with a little less "magic" than Django. Though, Django is great for rapid development of content based sites.
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.
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.