Forum Discussion
JoshuaTate
7 years agoQrew Cadet
lol or just period dont use jquery there is no need, Jquery is a waste of time......
Wolf: little developer let me in.
Me: not through the parser in my little dom tree.
Wolf: well i'll huff and i'll puff and inject an unexpected token,
Me: you can try hard as you might but i have have immunity and improved functionality over your antiquated ways, disappear now and allow W3C/ECMA to pave the way.
A) Use fetch or xhttp - preference on fetch, while i know Dan has identified what some may perceive a few draw backs, i personally dont mind that i need handle a a bit more "annnndddd theeennnn" see below.
.
B) native promises are far superior to any jquery/bluebird/early days polyfill approach, check out async functions for the mother of all promise chaining, get your nice anndddd theeennnnn chain underway.
C) Dont touch frameworks, there a waste of time. Library extensions are ok but likely better to identify the functions you actually require, take inspiration then rewrite what you need into your generator function.
D) Learn to build Generators, love them, adore them, improve them and keep them vanilla JS to saver them for life.
Wolf: little developer let me in.
Me: not through the parser in my little dom tree.
Wolf: well i'll huff and i'll puff and inject an unexpected token,
Me: you can try hard as you might but i have have immunity and improved functionality over your antiquated ways, disappear now and allow W3C/ECMA to pave the way.
A) Use fetch or xhttp - preference on fetch, while i know Dan has identified what some may perceive a few draw backs, i personally dont mind that i need handle a a bit more "annnndddd theeennnn" see below.
.
B) native promises are far superior to any jquery/bluebird/early days polyfill approach, check out async functions for the mother of all promise chaining, get your nice anndddd theeennnnn chain underway.
C) Dont touch frameworks, there a waste of time. Library extensions are ok but likely better to identify the functions you actually require, take inspiration then rewrite what you need into your generator function.
D) Learn to build Generators, love them, adore them, improve them and keep them vanilla JS to saver them for life.
JoshuaTate
7 years agoQrew Cadet
great source dan, for everyone else, ES2017 introduced Async Await which i use in my generators - yield to the power of the force - enough said haha: https://medium.com/front-end-hacking/modern-javascript-and-asynchronous-programming-generators-yield...