javascript - Why aren't framework-like functions built in natively? -
i wondering why trivial functions string.contains()
aren't part of javascript core itself. mean, although javascript core contains of functions necessary create new functions based on core ones, obvious functions aren't available default.
there are great frameworks out there extend javascript core, don't why aren't built in natively.
also, instance, jquery ajax()
function more developer-friendly native xmlhttprequest
object. essential use frameworks things this.
so why functions these not available in javascript core itself?
there great frameworks out there extend javascript core, don't why aren't built in natively.
i don't think had foresight think 10-15 years in advance , see how implementations of technologies play out, in terms of browsers support parts of specifications standardized @ time create these utility functions find useful in 2011.
javascript created in 1995 eich , landscape far different. "ajax" didn't exist @ time, how think 15-16 years later we'd need cross-browser ajax functionality? microsoft introduced iframe in 1996 , xmlhttp ( ajax ) in 1999.
if brendan eich in 1995, , think functionality of browsers , fact internet wasn't popular now, , there lack of standardization - have thought of these things? many of which, such "ajax", didn't exist?
as far language changing, reason i'd because there vast amount of time between ie releases, in particular ie6 ie7 5-6 years apart , ie7 still had ecma-262, css1/css2 bugs how possibly have support newer javascript features if slow adopt specs released years prior.
this mentioned in answer, javascript superset of original javascript, ecmascript. ecmascript, core upon actionscript , javascript , other languages built upon doesn't incorporate dom or methods xmlhttprequest. browser binds scripting language rendering engine / dom , supplies browser methods environment.
Comments
Post a Comment