Twitter | Search | |
Мihail Gaberov
Front End Developer
4,455
Tweets
64
Following
96
Followers
Tweets
Мihail Gaberov retweeted
Addy Osmani Feb 16
Understand JavaScript's async/await in 7 seconds by :
Reply Retweet Like
Мihail Gaberov Feb 15
Replying to @djproti
Danke
Reply Retweet Like
Мihail Gaberov Feb 14
Didn't know there is a special method for inserting comments into your web page 👉 createComment()
Reply Retweet Like
Мihail Gaberov Feb 13
Replying to @djproti
Thank you man, what do you think?
Reply Retweet Like
Мihail Gaberov Feb 13
I have decided to start putting all my articles in one place first, hence my new is live now! 🥳 Check it out here 👉
Reply Retweet Like
Мihail Gaberov retweeted
Paul Frazee✌️ Feb 10
ℹ️ Bash tip: if you need to run a quick command in another directory, surround your call in parenthesis. This causes the command to be run in a "subshell" which is discarded after the command runs, keeping your CWD the same. Example: (cd ~/work/foo ; npm install)
Reply Retweet Like
Мihail Gaberov retweeted
Codebuddy Feb 10
Data Structures are used all the time in general software (probably more than anything else one learns in a ) is nothing but the way you store data in memory, so that it can be retrieved, updated, stored in a faster manner
Reply Retweet Like
Мihail Gaberov Feb 8
Reply Retweet Like
Мihail Gaberov retweeted
Mark Dalgleish Feb 2
Reply Retweet Like
Мihail Gaberov Feb 1
Use the most straightforward, most flexible and versatile structure: a function. If possible, let it be a pure function. Avoid mixing data and logic in an object if possible. Avoid using classes if possible. If you use them, let them do one thing.
Reply Retweet Like
Мihail Gaberov Jan 31
“Elegant patterns in modern JavaScript: Ice Factory” by
Reply Retweet Like
Мihail Gaberov Jan 31
Replying to @mihailgaberov
If you prefer using immutable techniques, the object spread operator is a clear winner. With Object.assign(), you would have to ensure you always pass an empty object {} as the first argument.
Reply Retweet Like
Мihail Gaberov Jan 31
One key difference is that the object spread operator always gives you a POJO back. The Object.assign() function modifies its first parameter in place. In other words, Object.assign() modifies an object in place, and so it can trigger ES6 setters.
Reply Retweet Like
Мihail Gaberov Jan 31
| You can also mix in other properties with the object spread operator. Order matters: the object spread operator will overwrite properties that are defined before it, but not after.
Reply Retweet Like
Мihail Gaberov retweeted
Nick Kapur Jan 30
Something incredible is happening on reddit. I'm tempted to say these people have way too much time, but this is legit amazing.
Reply Retweet Like
Мihail Gaberov Jan 17
When you have an important distinction, define distinct types.
Reply Retweet Like
Мihail Gaberov retweeted
Cory House 🏠 Jan 13
TIL you can add a delay to all Express requests with a line of code: app.use(function(req,res,next){setTimeout(next,1000)}); Handy for work in dev to simulate latency.
Reply Retweet Like
Мihail Gaberov Jan 12
Replying to @djproti
Didn’t check them. Good to know that anyway;)
Reply Retweet Like
Мihail Gaberov Jan 12
Replying to @djproti
Do you know another way?
Reply Retweet Like
Мihail Gaberov Jan 10
“Node.js & JavaScript Testing Best Practices” by Yoni Goldberg
Reply Retweet Like