Originally posted on devinduct.com
Introduction
If you enjoy seeing the clean code, like me, you will try to write yours with as litt...
For further actions, you may consider blocking this person and/or reporting abuse
Excellent article thankyou.
I came to your one from a very odd route. I was reading an article on my phone which I lost then looked for it again and found your article.
The article I originally was reading was this dev.to/hellomeghna/tips-to-write-b...
To me, and I maybe wrong, just looks like the second author has just reworded your article.
Thank you, I appreciate it!
Hmm, it seems you're right :) It does look very similar, not to say contextually the same :)
Nice tips!
It should be kept in mind that some features from ES2015+ are not transpiled by Babel.
Array.prototype.includes
andMap
should be explicitly polyfilled if it's necessary to support older browsers (IE, for example).Thanks!
Yes, I agree. But also, we should slowly stop caring about the IE and it needs. If we do that, we have solid cross-browser support.
car?.model doesn't look like vanilla JavaScript.
It's the official proposal. You can check it out here.
Today, you can use it with Babel, but hopefully, it will be fully supported one day.
I guess you didn't fully read section 7 :)
you are not writing the code just for the machine, you are writing it for the "future self" and for the "other guy".
I can't agree anymore