
Adarsh M retweeted
every time you return a new Promise in an async function
your cpu gets a little warmer
Do you realize that if an async function returns a Promise, you are returning a nested Promise?
This is because the "async" prefix automatically makes the function return a "hidden" Promise. Whatever you "return" from an async function is used as the value to resolve that "hidden" Promise.
But if you return another Promise, you create a promise chain! It's not immediately apparent to you, as the user of that function, but that's what's happening.
new Promise((resolve) => {
resolve(new Promise((resolve) => resolve(5))
})
Well, now you know.
Adarsh M retweeted
I’m excited about turbopack (vercel’s Rust-based successor to webpack). A few thoughts:
Adarsh M retweeted
Frontend Development Fundamentals: JavaScript Array Splice Method Explained (With Visuals) 🧵👇
1.
Sharing some exciting news!
@VueSchool_io is offering FREE access to ALL of its courses on 1 2 October.
That's 800 lessons covering Vue.js 3, Pinia and much more! Including the awesome Vue.js 3 Masterclass!
Sign up for the Free Weekend: vueschool.io/free-weekend
5 Javascript Clean Coding Patterns To Enhance your Code | by Daniel Guedes | ArionKoder Engineering | Medium medium.com/arionkoder-engine…
1
Adarsh M retweeted
Full stack web development coding project ideas — And the qualities they allow you to demonstrate to hiring managers 🧵👇
Adarsh M retweeted
⚛️ React tip: did you know that you can use the `key` prop to "reset" individual components? They're not only for lists!
Changing the key creates a new instance of the component. No more useState/useEffect juggling for these resetting use-cases.
Demo: codesandbox.io/s/using-keys-…
Adarsh M retweeted
Useful JavaScript Patterns 🚀
How to make correct data updates in React, Redux, or any other immutable context.
[🧵]
Adarsh M retweeted
Browser-native deep object cloning in JS is finally here, and it's awesome
structuredClone() can:
- copy deeply nested data
- handle many data types like Map/Set/Regex/etc
- even handle circular references
Performance is great as well ⚡️
Adarsh M retweeted
Replying to @DrSJaishankar
@DrSJaishankar @PMOIndia Dear Sir, I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Please help us
Adarsh M retweeted
Replying to @GermanyinIndia
@GermanyinIndia @GermanyDiplo @eoiberlin I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Please help us
Adarsh M retweeted
Replying to @narendramodi
@narendramodi Dear Sir,I'm rasagnya my brother kadari akhil from warangal is been missing in Germany magdeburg .He is studying masters in Otto von Guericke University magdeburg.He is drown in the river its been 48hrs. No proper information. Plz help us
Adarsh M retweeted
Chrome DevTools Tip💡
You can take screenshots of different parts of a website using Chrome DevTools.
To open the command menu, use Ctrl + Shift + P or Cmd + Shift + P (Mac), and type "screenshot."

















