I think even if you don't have a comsci bachelor's, its definitely super useful to know algorithms. Literally everything the DOM does is some kind of data structure or functions on some algorithm, like loading a page is a stream. I never knew that before and it blows my mind.
Good discussion guys! =) I hope that our community as a whole will soon achieve the same mindset towards professional software (front-end) architecture. I am on a journey to help bring maturity to that field! =)
I have learnt so much from Vaidehi's basecs blog posts on medium on data structures and alogorithm and still learning. I thank her so much for creating it. This discussion was awesome. I hope to be in such a position one day. Thank You
thank you so much for inspiring me. these people are not 'formal' computer scientists. Their love for technology and hard work has brought them here. My own Background is in IT operations: maintaining computer lab infrastructure, helping feature teams with testing environments, etc but now I've been working to get into web development. I have been working full stack with ASP.NET CORE and have written my own websites that include minecraft server management as well as IOT device registration and sensor management, but it can still be lonely, not knowing exactly what to work on or study to match the competition, so this whole talk has given me inspiration that as long as you put your mind to something you enjoy, you shouldn't get discouraged because others may have gone to school specifically for computer science
At 11:40, the speaker is implying two for loops are inefficient. Can someone point me in the direction of some resources explaining why and what are the alternatives?
At the most basic level, a nested for loop in this context means that you're looking at every element of array 2 for every element of array 1 (every element in array 2 is looked at array1.length times). In most cases, you'll be able to refactor code like this to do fewer passes through array 2 (ideally, only checking each value in each array one time). You can look into Big O time complexity for more info :) I haven't watched it in a while, but I remember CS Dojo's video on this topic being pretty good if you'd like a specific recommendation on where to start. Big O just indicates how the performance of an algorithm scales with the size of the input. Hope that helps!
Look into big O notation to understand this. Like others said the operation is inefficient because for every value you are performing a second operation so it takes exponentially longer to complete the task.
Perhaps you already know Big O...and yes O(n^2) or O(mn) is often something you want to avoid. I've been working on algorithm and data structures for a few months now and gone through a few interviews. It's the first time i heard anyone mention it regarding double for-loop in a youtube video, and i've never actually read anywhere that says that a double for-loop are inefficient. But it is true. Try enough questions on hackerrank and leetcode, and if you submit a solution with a double for loop, it often exceeds the time limit. Anytime you notice a double for loop in your solution... it is almost certain that there is a better way, solution can be further optimized, a special trick, or an algorithm that you have not read about that can be used to solve the problem.
Frameworks copying each other? Shit, that happens with languages themselves, and even programming paradigms! oop languages turning more functional/hybrid, static typed languages blending with dynamic, dynamic languages blending with static, python now has integrated optional static typings, php had them even earlier, php 7.4 now having arrow functions... lmao
well, first off... frontend development is Computer science coz you can only do it by using cs only knowledge.. second it's where cs actually makes sense to the rest of the World since backend makes sense only to lonely few developers, simply without it cs will probably be meaningless.. I mean what is it for .. if the rest of the world have no means to interact with an app 🙃