Tricks like `a = (b+= a -=b) - a;` are pretty neat but people really need to ask themselves: 1. What do I value more, short code or readable code? 2. Am I the only person who's going to work with this code and if not, are they going to understand my code, am I going to understand this code in a month?
Your content is simple but GREAT. You are explaining interesting and important topics very understandable. I just wanted you to know that. You really deserve more views and subs. Thank you for taking the time
Techsith is always awesome and its always a pleasure talking to you over on twitter..Talking about different conspiracy and thoughts about JavaScript and our developer ecosystem
Thanks for this I recently found your channel (After badly performed in a Js interview 😅 but still I cleared it) , Interviewer asked me a question related to Object.freeze() and Today just found the same question in one of your videos, worth it content and your teaching is also so cool 🔥😁.
Great video. Always love these tips and tricks videos. It's interesting getting someone else's perspective and how they deal with code. Thanks my friend. See you soon!
Excellent Video. Thanks for providing such a wonderful tricks. One small deviation at 14:54 is value.some(Boolean) - checks if there is any non empty values and returns true. But your context mentioned in the other way. Thanks!
you probably dont care at all but does someone know a trick to get back into an Instagram account?? I somehow forgot the password. I would love any help you can offer me
@Stetson Davian i really appreciate your reply. I found the site thru google and im waiting for the hacking stuff atm. Seems to take a while so I will reply here later with my results.
Hi need a help can you help in creating two separate react project each has there own routing and redux ...and there is a third react project where you have buttons to navigate two different project ...it would be great if you come up with some example video of same..thank you
There are multiple ways to do it. create three separate projects with their own routing and all . when you do "npm start" , load them on different port . then create a third project with button and links to the URL with different ports.
@@Techsithtube thanks for the response....but no we should have only one port ...for example... localhost:3000/main page Then on click of project2 is should be Localhost:3000/project1 and inside project one if we navigate to projectdetail the path should be project/projectdetail
14:00 there is a simpler solution to compare 2 arrays, and you can also compare 2 objects or any primitive values const compare = (a,b) => JSON.stringify(a) === JSON.stringify(b)
Hey techsith, can you make a video on how to have patience while watching the long video? I really want to watch the entire video , but I somehow don't have that much patience
Absoultly value is imutable then plz define me how it modified but if you talk in static type languages like c# java c+, then pass those variable by reference if you dont them it only remain in function scope but if you want to use these swaping values out side the function then you have to pass these variable by refernce
I know how swapping of 2 variables without using 3rd variable works but not able to understand the syntax you used i.e where are we calculating a= a+b in Expression you used
@@sumeetsood232 Hi Sumit, for understanding this concept, You have to know about Operator precedence in JavaScript. In this case, the first precedence is Grouping. I mean 'parentheses'. like this (b+= a -=b). Bear in mind that the Associativity is right to left. So as you can see, we need to calculate the right side of parentheses that it is a-=b and it is equivalent to a=a-b. after calculating, we have a=-1 until know (a=1-2). as well as, we need to calculate the left part of parentheses Ok? It is b+=a. so as I told you before it is equivalent to b=b+a. after calculating, we have b=1 like this (2+(-1)). So far our variables are a =-1, b=1. In the next step, we need to calculate the rest of the logic of the code which is a=(b)-a. so as you know we have b Ok? we only need to put it so a =2. like this a=1-(-1). that's it :-). a=2 and b=1. I hope that makes sense to you.
TH-cam ads were not annoying enough, now every youtube channel has its own in video ad. I feel strong contempt for this and I think it's super disrespectful to waste viewer's time by showing long ads at first of every freaking video. I personally avoid those product which are depicted in this sort of ads like a plague.
Ramin, I agree with annoying adds. Let me tell you little bit of history about what is happening so you would understand. TH-cam has reduced income by 50% last year. As a content creator, I spend significant amount of time in producing these videos. 10 min video takes me about 7hrs to produce from concept to final upload. If I want to continue making these video for free, I had to look for some other income source. Hopefully that answer your question.
@@Techsithtube Alright, alright, so maybe it's time to move on! Maybe this way of doing business is dead. Making video and publishing them on youtube is not working! Begginers don't learn like this. They need an interactive environment and community to learn for real. TH-cam was a cash grab for too many years. Most of programming channels are misleading and worthless. Students need to know how they could put their knowledge into practice. These videos lead them to nothing. It's time to do something really different for teaching people if you really care.
Tricks like `a = (b+= a -=b) - a;` are pretty neat but people really need to ask themselves:
1. What do I value more, short code or readable code?
2. Am I the only person who's going to work with this code and if not, are they going to understand my code, am I going to understand this code in a month?
Ivan, As I said in the video, this particular trick is not to use in the code , its for interview question.
a= a + b;
b= a - b;
a= a - b;
Same code but neat/understandable.
Tech sith is back finally :)
Ali, glad to be back! Thanks for watching!
Awesome videos, i always suggest your videos to my friends, thanks for making these.... ❤️
Sumod, so nice of you to share my videos with your friends. :) THanks for watching!
Great content, explained in simple way, really underrated channel.
Your teaching is best for me. Thanks. keep growing and let us updated
Rupam, so nice of you.
Very cool tips, thanks for sharing! ☕
thanks a lot for such great videos 🤩 already subscribed ⭐
Your content is simple but GREAT. You are explaining interesting and important topics very understandable. I just wanted you to know that. You really deserve more views and subs.
Thank you for taking the time
Vakhtang, I appreciate the awesome comment. Thanks for watching!
Great content
Great video again, thank you 👍
Thanks again!
Great video, just one thing: Document.execCommand() is now deprecated, and we should use the Clipboard API instead.
This is really usefull! Thank you so much!
Techsith is always awesome and its always a pleasure talking to you over on twitter..Talking about different conspiracy and thoughts about JavaScript and our developer ecosystem
I enjoy it too. Thanks for watching!
Thanks for this I recently found your channel (After badly performed in a Js interview 😅 but still I cleared it) , Interviewer asked me a question related to Object.freeze() and Today just found the same question in one of your videos, worth it content and your teaching is also so cool 🔥😁.
That was great video
really useful tricks, thanks
Glad it was helpful!
So glad I stumbled across this channel, thanks for all these useful tips
Great 👌
Thanks for liking. :)
Guru is back.
Thanks Prasad. :)
Great video. Always love these tips and tricks videos. It's interesting getting someone else's perspective and how they deal with code. Thanks my friend. See you soon!
Glad you enjoyed it! Thanks for watching!
Very nice
Tech sith can we expect JavaScript coding questions tutorials
Most of the tricks are new for me.. amazing 👌👌
Vipin, Glad to hear that. Thanks for watching!
These tricks are really helpful....thanks for the awesome video😊
Rahul, Glad you like them! Thanks for watching!
Hii bro... I have some doubts in reactjs bro..Can you give your id or any community is there.. Pls tell me bro
You can email me . You can join my facebook community for react. Its on my channel page.
@@Techsithtube I already given a join request bro.. Please accept it bro
I wish you brought back the javascript interviews series, in those videos I always learn something new
Yes, I am planning to make some more such videos. I do have another channel which focuses on interviews , its interviewnest do check it out.
Excellent Video. Thanks for providing such a wonderful tricks.
One small deviation at 14:54 is value.some(Boolean) - checks if there is any non empty values and returns true. But your context mentioned in the other way. Thanks!
you probably dont care at all but does someone know a trick to get back into an Instagram account??
I somehow forgot the password. I would love any help you can offer me
@Skylar Kendrick instablaster :)
@Stetson Davian i really appreciate your reply. I found the site thru google and im waiting for the hacking stuff atm.
Seems to take a while so I will reply here later with my results.
@Stetson Davian It did the trick and I now got access to my account again. I'm so happy:D
Thanks so much, you saved my ass !
@Skylar Kendrick You are welcome =)
Hi need a help can you help in creating two separate react project each has there own routing and redux ...and there is a third react project where you have buttons to navigate two different project ...it would be great if you come up with some example video of same..thank you
There are multiple ways to do it. create three separate projects with their own routing and all . when you do "npm start" , load them on different port . then create a third project with button and links to the URL with different ports.
@@Techsithtube thanks for the response....but no we should have only one port ...for example... localhost:3000/main page
Then on click of project2 is should be
Localhost:3000/project1 and inside project one if we navigate to projectdetail the path should be project/projectdetail
Nice tricks
Thanks for watching!
14:00 there is a simpler solution to compare 2 arrays, and you can also compare 2 objects or any primitive values
const compare = (a,b) => JSON.stringify(a) === JSON.stringify(b)
yes that is a good solution. Thanks for sharing!
Your videos are amazing!
Glad you like them! Thanks for watching buddy!
Hey techsith, can you make a video on how to have patience while watching the long video? I really want to watch the entire video , but I somehow don't have that much patience
start with 10 min, do 15 min next day , then 20 min .. day by day increase ..you will be more patient.
Good advice!
Thanks for these tricks😊
Sakshi, My pleasure!! Glad to hear that. Thanks for watching!
As per MDN, execCommand is deprecated or may be deprecated, also browser support is not that great (would be good to have this as a disclaimer)
Can you please make a video on CI/CD?
We can use user-select: all; css for 5:12
const length = 4;
const numbers = [];
for (var i = 0; i
Nice video, thanks.
Can you please share video on integrating payment gateway to website( html, css, js website) please 🙏
What where the swap variable valuele value just shift the variable itself , i simplify this u couldnt swap variable value wdout passing by it ref
can you explain this in detail.
Absoultly value is imutable then plz define me how it modified but if you talk in static type languages like c# java c+, then pass those variable by reference if you dont them it only remain in function scope but if you want to use these swaping values out side the function then you have to pass these variable by refernce
And secondly I appreciate your service and accept that once I saw your video definitly learn new stuff and always seek to learn new things.
was not able to fully understand how 1st trick works-
a = (b+= a -=b) - a;
can you explain it how -=b works?
I also need this explanation.
let say a = 1, b = 2 , a = a + b ( a=3, b=2) , b = a - b ( a=3, b=1), a = a-b ( a = 2, b=1)
I know how swapping of 2 variables without using 3rd variable works but not able to understand the syntax you used i.e where are we calculating a= a+b in
Expression you used
@@sumeetsood232 for instance?
@@sumeetsood232 Hi Sumit, for understanding this concept, You have to know about Operator precedence in JavaScript. In this case, the first precedence is Grouping. I mean 'parentheses'. like this (b+= a -=b). Bear in mind that the Associativity is right to left. So as you can see, we need to calculate the right side of parentheses that it is a-=b and it is equivalent to a=a-b. after calculating, we have a=-1 until know (a=1-2). as well as, we need to calculate the left part of parentheses Ok? It is b+=a. so as I told you before it is equivalent to b=b+a. after calculating, we have b=1 like this (2+(-1)). So far our variables are a =-1, b=1. In the next step, we need to calculate the rest of the logic of the code which is a=(b)-a. so as you know we have b Ok? we only need to put it so a =2. like this a=1-(-1). that's it :-). a=2 and b=1. I hope that makes sense to you.
TH-cam ads were not annoying enough, now every youtube channel has its own in video ad. I feel strong contempt for this and I think it's super disrespectful to waste viewer's time by showing long ads at first of every freaking video. I personally avoid those product which are depicted in this sort of ads like a plague.
Ramin, I agree with annoying adds. Let me tell you little bit of history about what is happening so you would understand. TH-cam has reduced income by 50% last year. As a content creator, I spend significant amount of time in producing these videos. 10 min video takes me about 7hrs to produce from concept to final upload. If I want to continue making these video for free, I had to look for some other income source. Hopefully that answer your question.
@@Techsithtube Alright, alright, so maybe it's time to move on! Maybe this way of doing business is dead. Making video and publishing them on youtube is not working! Begginers don't learn like this. They need an interactive environment and community to learn for real. TH-cam was a cash grab for too many years. Most of programming channels are misleading and worthless. Students need to know how they could put their knowledge into practice. These videos lead them to nothing. It's time to do something really different for teaching people if you really care.