My advice: take backbone's code and read it a couple times as you'd read a science book. Get to understand every function and how it ties into the rest of the framework.
Most writers read a lot more than they write. Programmers could learn from that.
In a nutshell, it takes everything under app/templates and compiles it from Rails (so it has access to I18n and ruby) and serves jades, which we later compile and minify.
Trimmer serves the Template and I18n objects, as you can see on this compiled file:
I like that your solution actually packs it together with the rest of the code, avoiding one extra request for templates. Maybe we'll add that to our system too.
This might not be possible for you, but we're running under nodejs and using stitch[1]. It compiles the templates to javascript functions, and we bundle them with all the rest of the javascript as one big file. Simple distribution and awesome performance.
What I do is Makefile compiling templates to separate js files for development and for production I combine them using the module system which makes sense - in different projects I had stitch, ender.js and AMD (require.js & seajs).
Great example at Netscape! That was exactly my point. Major disruptions have already been started by others, and it's easier to ride that wave than starting a new one.
The H1B visa is designed to provide foreign workers to a business in instances where doing so does not affect American workers. When the visa is denied, don't jump to the conclusion that the bureaucracy failed. The more likely result is that the bureaucracy worked because the company was either trying to hire a foreign worker for a job that many unemployed Americans could do or that they were trying to undercut currently-employed Americans' wages.
We have very high unemployment. Also, the national identity and cohesion is swamped by a far too large influx of foreigners. There should be an immigration moratorium. Essentially zero people should be let in until there is robust job growth.
There should be a much longer moratorium on granting foreigners citizenship. Immigration rates are far too high and on a course to create serious overpopulation problems in north america. https://www.numbersusa.com/content/
It's exactly this thinking that can kill science and startups. That there is unemployment, does not mean there is unemployment in every branch of the industry. In branches, where there is a lack of qualified workers, you need to take in immigrants, or you will become uncompetitive.
Also, remember that there are many people who just want to work in a different country temporarily because it is good for their career+. E.g. here in The Netherlands, we have a high influx of Chinese students and PhD candidates. But nearly all of them return once they have a degree (a degree from a Western university usually gives them good positions in China).
+ There seems to be a widely spread belief in the US that the rest of the world is envious, and would preferably want to live in the US. I have been in the US very often, but I'd never want to live in the US permanently. Social welfare, healthcare, paid leaves, pensions, etc. are so much better arranged in West Europe.
> this thinking that can kill science and startups
If an industry does not employ the native people in a country, or only enriches a clique of owners, then who cares if it leaves? In any case, this line of argument is malarkey. There is no evidence of restrictive immigration driving away business. Typically you just get an industry with higher capital investments and higher wages.
> If an industry does not employ the native people in a country, or only enriches a clique of owners, then who cares if it leaves?
That's a pretty extraordinary premise. Do you have evidence to support the idea that Silicon Valley only enriches a clique of owners, or that it wouldn't employ Americans? Or is this purely hypothetical?
Perhaps you could get some actual idea of what goes on in the visa process rather than spouting mindless nationalistic rhetoric.
It's not like the visa process allows unskilled, unemployed workers to pour into the country. It's a lengthy, expensive process that allows employers to hire for jobs they couldn't otherwise fill from other available candidates. This brings intelligent, educated and skilled immigrants who are perfectly capable of paying their own way and who bring a massive net gain to the US.
It's true that the overall unemployment rate is alarmingly high, but my understanding is that the employment rate among software developers is quite low. In my area, at least, my sense is that there aren't enough developers looking for work to meet the demand for their labor. I guess it's theoretically possible to train unemployed nontechnical people to write code, but I don't see any viable plans to make that happen.
It's not sufficient to let the user decide how much security they should have. It won't protect the banks from the expectations of security placed on them by others, however unreasonable that might seem.
I've spent the past 4 months obsessively browsing craigslist. This summer I moved out of an apartment (non rent-controlled) because my rent was increased from $2850 to $4,150. http://sfbay.craigslist.org/search/apa/sfc?query=&srchTy... is a search of 2br apartments in the city of san francisco, all neighborhoods. It returns 253 listings. Raising that to 3000 -> 4000 gives you 265 listings.
If I exclude the neighborhoods where I wouldn't live due to distance, safety, or a dislike of feeling like I'm in the burbs (bayview, excelsior, ingleside, north beach (fuck tourists), portola, richmond/seacliff, sunset, tenderloin) treasure island) then those searches (http://sfbay.craigslist.org/search/apa/sfc?query=&srchTy...) drop down to 106 and 184 apartments, respectively.
The competition for apartments is fierce right now due to a combination lack of credit keeping people leasing rather than owning, and the current tech bubble having imported 10s of thousands of new dot-commies happy to spend 50% of their salaries on housing, because they're young and stupid.
If you make under $150k, are fiscally conservative and don't want to live with roommates, then you're priced out of San Francisco.
I believe that's the best compromise: Keeping the scroll behavior, but teaching you how to change it. http://cl.ly/1R0T1Z1n2y160C1V3V0V