Elvin Huseynov
banner
codewithelvin.com
Elvin Huseynov
@codewithelvin.com
Software Engineer | Stoic person | Loving dad 👨‍👩‍👧

codewithelvin.com
🎉✨ Happy New Year! 🌟🥂 Wishing you an incredible 2025 filled with success, joy, and exciting opportunities! 🎆🎊 Let’s make the future unforgettable! 🥳🎈 #HappyNewYear #Welcome2025 #NewYearEve
December 29, 2024 at 10:27 AM
A clean way to filter values in #JavaScript is by using the #filter method. To filter numbers as #strings, pass #Number to filter. For #integers, use #Number.isInteger. Similarly, use #String for strings or #Boolean for truthy values. This approach is concise and versatile.

#çikidounz #javascript™
December 22, 2024 at 3:58 AM
#JavaScript evolves, but older browsers may lack support for new features. Polyfills bridge this gap by adding missing implementations. Below is a polyfill for the map() method, allowing you to use it in unsupported browsers just like the native map().

#javascript #polyfill #ownvariant
December 20, 2024 at 5:22 AM
Goodbye X
December 19, 2024 at 7:41 PM
Here’s a debounce function you can use like Lodash!

⚠️ Avoid using it with React's input value prop on change events, as it may freeze updates.

📘 Use Case: Delay API requests on change events.

Got questions? Drop a comment below!

#typescript #react #debounce
December 19, 2024 at 5:46 PM
Reposted by Elvin Huseynov
Advanced React book is on sale with a 30% discount until the end of the calendar year!

There is also a secret way to turn it into 50% for those who pay attention to details on the website 🙈

www.advanced-react.com
Advanced React - Book and Video Course
Advanced React concepts, strategies, techniques, deep dive investigations, that will take your React knowledge to the next level.
www.advanced-react.com
December 19, 2024 at 9:36 AM
Destructuring in #JavaScript is powerful, but #array destructuring like const [, price] = data can be less clean and harder to maintain due to skipped indexes.

Instead, use object destructuring with specific array indexes on the right-hand side for better readability, clarity, and maintainability.
December 18, 2024 at 5:57 AM
We can use JavaScript's Proxy along with the Reflect API to intercept or abstract an object, allowing us to hide its implementation details. 💪✨

#javascript #object #proxy
December 17, 2024 at 12:14 PM
Top 10 Books for Software Developers

📘 General Advice
- The Pragmatic Programmer – Andrew Hunt & David Thomas
- Code Complete – Steve McConnell

📘 Coding
- Clean Code – Robert C. Martin
- Refactoring – Martin Fowler

othrers are in comment...

#books #development #developers
December 16, 2024 at 5:36 AM
Here’s a simple, clean, and non-mutating function to delete a key from an object and return a new object.

#javascript #object #omit
December 13, 2024 at 11:20 AM
JavaScript Tip 💡

Instead of chaining promises, use Promise.all or Promise.allSettled to resolve them concurrently. For example, two 1-second promises will resolve in ~1s with Promise.all instead of 2s. While these methods simplify concurrent handling, always weigh the trade-offs before using them.
December 11, 2024 at 6:37 AM
With Object.freeze():
1. Adding new properties: Not allowed ❌
2. Deleting existing properties: Not allowed ❌
3. Updating property values: Not allowed ❌

With Object.seal():
1. Adding new properties: Not allowed ❌
2. Deleting existing properties: Not allowed ❌
2. Updating property values: Allowed ✅
December 10, 2024 at 6:43 AM
Did you know that in #JavaScript, you can use the spread syntax to see what an emoji is made of? ✨

#javascript #typescript #webdevelopment #webdev
December 8, 2024 at 1:35 PM
Are you ready for an advanced #JavaScript question? Guess in the comments what the output of this code is. 😉

#javascript #coding #programming
December 7, 2024 at 5:24 PM
These are 10 Time Wasters. Keep away from them:
December 1, 2024 at 7:44 PM