Fiiiiiiinaly we have a native solution to catch CLI arguments in @nodejs🔥😱
🧵 /1
There was a long discussion on how many existing npm packages were made to parse CLI args and why the Node.js project hasn't had any native solution yet.
/2
You may have heard of existing packages that are very popular around there to make CLI programs such as commander, yargs and this new function came with interesting ideas.
/3
The best thing is that this native module is not meant to replace all existing packages but to empower them to easily catch those CLI args and perform complex operations.
/4
Before parseArgs, as the image below shows, we had to convert all args using the `process.argv`, parse, and handle positional arguments from strings.
It was really painful and it opens a lot of potential vulnerabilities if not implemented right.
/5
Now, the solution happens to not only catch the objects but cast booleans and strings from there making the process even easier
Thanks to @BenjaminCoe, @ruyadorno, @darcy, and all other members of the @nodejs tooling working group who implemented and released this feature 🤩
/6
I'm super excited with what's coming from the Node.js project and the speed of how it's been evolving, what else should we wait for from the platform?
What I've learned after giving over 100 talks around the world 🤯😱
🧵 /1
Today I brought something special for you! I'll show how I reached 10 different countries, what I learned to keep myself calm while speaking to huge audiences, and much more!
/2
This video is very special for me as I'm sharing my experiences and the reason behind Why I started giving talks in the first place.
/3
The JavaScript language is changing and the ECMAScript 2023 is on 🔥
Come and check what's new now 🤯🧵 /1
I love seeing how the language is evolving fast and especially how JS proposals that have been in discussions for years are finally going to the last stage to become part of the language. /2
I prepared a bunch of videos on my channel showing in practice the benefits and what problems those proposals are meant to solve
/3
Why JavaScript Generators fix 90% of your problems when working with big loads of data 🤯
Let's? 🧵 /1
I've seen many people facing performance problems on the @nodejs platform or even on vanilla JS on the browser and when I ask what's happening they usually blame the language. /2
Although, when I look at the implementation, I see they are trying to process all the data simultaneously. /3
wooowwwww, I know that you've always wanted to compare objects in JS as `obj === obj` so I brought good news for you 🤩🔥
Let's begin🧵 /1
I don't know about you but I'm really excited about this feature, let me show you how it works 🔥
/2
The #ECMAScript proposal for the #Record and #Tuple value types is Stage 2 which means that it could change at any time but there're packages and playgrounds for you to try out this feature before it's available on the language.
/3
Aewwww agora simmmmmm, atendendo a pedidos eu trouxe uma super surpresaaaaaaaa 🔥🔥
Boraaaaaaaaa🧵 /1
No ultimo mês estive palestrando em grandes eventos pelo mundo e muita gente acompanhou a parada de perto. /2
Fui para Athenas na Grécia, para Amsterdã em Netherlands palestrar para mais de 2 mil pessoas (como na foto) e por fim em Tel Aviv em Israel para também mais de 2 mil pessoas presencialmente 🚀🚀 /3