688 karma · joined September 1, 2009
I don't suppose the irony of this statement escaped you.
I wonder how many other web developers have spartan pages like this.
(Math.pow(2, 31) - 0.1) // base number
2147483647.9
~~(Math.pow(2, 31) - 0.1) // works!
2147483647
(Math.pow(2, 31) + 0.1) // base number
2147483648.1
~~(Math.pow(2, 31) + 0.1) // doesn't work!
-2147483648It's not ideal, but I think the basic version is: I trust you enough to put up with your "brutal" honesty, vs. who are you and why are you being a dick?
If you do capability detection by checking to see if window.history.pushState exists, then you can configure RouteMap.handler to be tied to history events. Otherwise, you can set the prefix by calling RouteMap.prefix('!').
EDIT: I re-read your question, and I think that I misunderstood. I do think what you're asking is possible, and what I stated above is a piece of what you'd need to do. Basically, instead of simply binding RouteMap.handler to either onhashchange or onpopstate, you'd probably have to write an event listener for both of those methods + a window onload handler all of which send their respective portions of the URL that you care about to RouteMap.handler.
Oh yeah, and no semicolons.
* The "Iraqgate" scandal revealed that an Atlanta branch of Italy's largest bank, Banca Nazionale del Lavoro, relying heavily on U.S. government-guaranteed loans, funneled over US $5 billion to Iraq from 1985 to 1989.
* Saddam's elite troops received instruction in unconventional warfare at Fort Bragg
* The United States assisted Iraq through a military aid program known as "Bear Spares", whereby the U.S. military "made sure that spare parts and ammunition for Soviet or Soviet-style weaponry were available to countries which sought to reduce their dependence on the Soviets for defense needs."
If you are nitpicking over the use of my quantifier "entirely" I'll retract that. The evidence, though, is pretty clear:
http://en.wikipedia.org/wiki/United_States_support_for_Iraq_...
http://en.wikipedia.org/wiki/United_States_support_for_Iraq_...
I believe you're being overly specific in your definition of what constitutes something more than mere partisanship. I think it's a reasonably safe statement that the war would likely not have happened without American blessings.
It is, of course, more complex because of the involvement of the Soviets, but I think in this case both the Soviets and the West wanted to contain Iran and both politically and materially encouraged Iraq to wage war.
http://www.iranchamber.com/history/articles/arming_iraq.php
It seems pretty well cited. That citation itself came from this Wikipedia article:
http://en.wikipedia.org/wiki/Iran–Iraq_War#U.S._support_for_...
This is a case of a homegrown movement to overthrow a dictator. The resultant government is not necessarily what the West would prefer, but that is a consequence of being (rightly) seen as the funders and supporters of both the previous dictator and the instigators of the war waged by the next-door neighbor (Saddam Hussein's Iraq, whose military was entirely funded by Western powers and was once among the most powerful in the world).
All that remains to be seen is which way Nokia chooses to go.
Sure, if you're building a content site, you will want to have progressive enhancement, but if you're building a client-side application, SEO concerns and the other concerns of content-delivery sites are less relevant.
That seems to be patently false. If better ways of governance really were infectious, governments would be roughly converging in their policies. At the very least, for example, similar governments (let's say western democracies) might all have universal healthcare.
I think you're right insofar as it's easy to "get going" with JS and see things happen in a web page. But if you're looking to actually learn how to build non-trivial apps, a solid grounding in the language is pretty key.
Along a similar vein, I want car horns to be as loud inside a car as they are outside, to ensure they're only used for emergencies. I live in a city and car horns dramatically reduce quality of life because "no honking, $350 penalty" are never actually enforced by the police.