I provide solutions that matter. With my strong background in Internet and Web, I've worked on challenging platforms and have created web applications that are used on a daily basis.
Great, Garvit! It's always great to know the language so well and bring about these unconventional ways to solve problems. However, it's always recommended to write code that is self-explanatory. And, I find majority of these tricks to be confusing (to an average eye). Use them when you really have to and leave a comment to make your intention clear.
π»ππππ πππππππππ πππππ’ πππ’. JavaScript is my specialty, often playing with Node, React, TypeScript, GraphQL & Ruby on Rails. 5+ years building the web as a Front End Dev.
Location
North Vancouver
Education
Self-taught and always learning
Work
Software Engineer | Building Web 3 with Figment.io
On that note β which I completely agree with β it's interesting how readable this is Array.from(dogs) compared to dogs.map() if map wasn't so widely adopted :)
Great, Garvit! It's always great to know the language so well and bring about these unconventional ways to solve problems. However, it's always recommended to write code that is self-explanatory. And, I find majority of these tricks to be confusing (to an average eye). Use them when you really have to and leave a comment to make your intention clear.
Noted! and thanks for reading the article!
On that note β which I completely agree with β it's interesting how readable this is
Array.from(dogs)
compared todogs.map()
if map wasn't so widely adopted :)On that note, I'd love to see how performant
Array.from()
is compared to.map()
that I know doesn't perform very wellNow you've inspired a more ambitious project. Building a custom standalone performance measurement tool for Javascript.
It could be something similar to Runkit, but strictly for benchmarking the various methods and approaches to the same end goal. Like which is faster?
OR
π€π€π€
I can tell you for sure that the for loop is way more performant than map. But if you do compare everything, I'm definitely interested to read.