BLACKLIST
2023.03.14 05:55

I Have Many Causes To Hope

조회 수 159 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부 수정 삭제
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부 수정 삭제

One of the things I've poured myself into this 12 months -- with a merry band of contributors together with Domenic Denicola, Anne van Kesteren, Jake Archibald, Mark Miller, crawler chassis Erik Arvidsson, and lots of others -- has been a design for Promises that DOM and JS can both adopt. There is a (very) lengthy historical past of Promises, Deferreds, and numerous different Promise-ish issues in JS which I won't bore you with here except to note that there are only a few client-side libraries which do not embrace such a factor and use it as a core idiom for coping with async behvaior (e.g., XHR).

Query, Dojo, Q, WinJS, Cujo, Closure, YUI, Ember (by way of RSVP), and all of the rest use this style of contract pervasively and have for years. The most important libraries are coalescing round that contract and so it appears time, finally, to make our largest and most necessary library -- DOM -- savvy to them too.

600

The recent historical past starts (arbitrarily) a couple of years ago and ends 2 weeks ago. API we've designed want not upset anyone's applecart.

The TC39 meeting was a key turning point: up till 2 weeks in the past, DOM had a model of this design underneath the title Future. I made the choice to not use the title Promise for that work because with out TC39's agreement on a design, the DOM variant may at some point discover itself each camping on a world identify and disagreeing with JS about semantics or naming of particular APIs. That kind of thing might have lead to the suspicion by DOM of us that TC39 was out of touch and slow, and by TC39 that DOM rushed in like fools into a space that's fairly clearly one thing the std lib ought to embody (even when it could not achieve this for multiple years due to publication and spec timing issues).

Guarantees, notably Web Crypto and Internet MIDI.

There has additionally been lively dialogue about different APIs that may profit from transferring to an ordinary mechanism for describing async operations. It seems, in each particular person case, like this shouldn't be such an enormous deal. The large purpose to spend months of my life on this problem, and to harass other very busy folks to do the same, is to me the core value of internet standards: after they're working effectively, they create a uniform surface area that describes a coherent platform.

We are the beneficiaries of this uniformity at the moment concerning events, and they're a significant piece of the design language which DOM API authors can reliably use to assist describe bits of their design. Promises, like Events, are yet another software within the box that DOM APIs authors can use, and due to sane constructors and the flexibility to subclass constructed into the design, it's doable for finish-person code to eventually put down the custom implementations of Promise-like things and merely depend on the platform to do what platforms should do: make low cost and straightforward what previously was common but expensive.


List of Articles
번호 제목 글쓴이 날짜 조회 수
7609 Zone Online Casino Log In LorettaSandoval131 2023.04.22 103
7608 Zone Online Casino Games BryceGarling642707 2023.04.26 98
7607 Zone Online Casino Games SheilaDeluna628368 2023.04.22 88
7606 Zone Online Casino Free Games ElaineHort7123696 2023.04.26 81
7605 Zone Casino VirginiaThurman4058 2023.04.25 106
7604 Zenmate Vpn Free AngelikaAte0915310927 2023.04.12 108
7603 Yahoo Slots Farm MoisesEdwards4178640 2023.04.29 104
7602 Yahoo Slots Farm EsperanzaN36981043 2023.04.29 68
7601 Www Online Slots Bonus KendrickTherry7 2023.04.29 92
7600 Www Local Singles 7f0fd71be9e4298b Mavis64T6731348373592 2023.02.10 174
7599 Www Local Singles 7f0fd71be9e4298b FrederickWorsnop9 2023.03.01 161
7598 Www Local Singles 7f0fd71be9e4298b GennieGiron90538 2023.02.11 217
7597 Www Local Singles 7f0fd71be9e4298b AdellNankervis00378 2023.02.09 219
7596 Www Local Singles 7f0fd71be9e4298b Hayley6598804030639 2023.02.09 206
7595 Www Local Singles 7f0fd71be9e4298b FrederickWorsnop9 2023.03.01 236
7594 Www Local Singles 7f0fd71be9e4298b VirgilioBertrand460 2023.02.08 308
7593 Www Local Singles 7f0fd71be9e4298b ArielTitus617346 2023.02.10 243
7592 Www Local Singles 7f0fd71be9e4298b GennieGiron90538 2023.02.08 263
7591 Www Local Singles 7f0fd71be9e4298b IREReece284318441 2023.02.09 191
7590 Writing Essays Help JeroldHua89948495 2023.02.24 145
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 381 Next
/ 381