Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
tekashi47099257dI aint gonna say shit about not using es6 classes but please im begging you stop using ajax
gvnix2010257d@ganjaman what's the alternative?
gvnix2010257dkeep it coming fellas :D I don't want to learn shit code.
PrivateGER16592257dPlease stop using jQuery. It's completely unneeded. Look at fetch().
Also, ES6. Learn it.
Jameslikestea571257dYou are using JSDoc incorrectly
mt3o1869257dLearn to use jquery, then learn how it is made and then drop it. That's the correct order of things. After all, current features are made by taking jquery as inspiration not negation. The 'fetch' and 'querySelectorAll' are best examples.
Don't ask people to point your mistakes unless you are going to deeply analyzing why they are considered as mistakes. Sometimes the ugly, least idiomatic code that's flagged by all static code analyzers and linters is the best you can use. Google yourself 'quake magic number' as the best example. Look at all kind of loops that are there on the wild. All of them are slower than good old
\\ that's not JS
But replacing those loops with the 'for' is a bad idea unless there are real performance benefits. Using jquery is a good idea, for example, if you are worried about outdated browsers.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job