Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
@darshanabhuyan58962 жыл бұрын
This guy is literally taught me much more than my professors.. Thanks a lot
@Dakshita-cd4yo2 ай бұрын
1. Use the right data structure 2. Don’t use unnecessary variables 3. Write more compact code 4. Come up with a good variable names (avoid abbreviations) 5. Don’t over complicate your code 6. Don’t nest your code too much 7. Be consistent with your naming conventions (stick to either snake/camel case)
@soupnoodles2 жыл бұрын
Excellent video, I rarely see videos covering the importance of best practices & efficiency, which is crucial for a slower programming language such as Python. 0:59 Regarding this, sets don't exactly implement the `append` method, instead, you could do a set comprehension like so: `unique_countries = {customer['country'] for customer in customers}` 6:11 This is true, Altho, the `even_squares` method would be better of being a generator object, since it is only being iterated over once per function call. It is more memory efficient & faster `even_squares = (i*i for i in input if i % 2 == 0)` Using tuple parenthesis creates a generator object Great video overall, the first time I'm seeing a video from this channel, makes me want to check out more :)
@FurbnMax3 жыл бұрын
Awesome tutorial, will have my first code review during my application process in a few days and am currently preparing. Much apprecheated!
@codebasics3 жыл бұрын
Glad it helped!
@NeedforSpeedGamesforpc3 жыл бұрын
I loved the 1st one which is use of Sets! Its been so long i have been coding but always underestimated power of sets.
@raghuvardhansaripalli96364 жыл бұрын
Thanks Brother and it really helps me during the interviews. This video helps every developer and Sr. management as well. Now a days this is a common question in all the interviews from developer to Senior Engineering managers level. God bless you. !!!
@codebasics4 жыл бұрын
Great to hear raghu!
@jaleeluddin92232 жыл бұрын
So glad I discovered this accidently! Really good stuff
@workflop41174 жыл бұрын
Really good advices! Plus they are explained in detail! Many thanks.
@codebasics4 жыл бұрын
Glad it was helpful!
@user-wr4yl7tx3w Жыл бұрын
wow, great to see more videos like this.
@terrabyte-techy Жыл бұрын
Excellent job. Thanks for the upload, it really helps.
@codebasics Жыл бұрын
Glad it helped!
@sumitbabel54153 жыл бұрын
Very well discussed and really practical, hats off dear
@codebasics3 жыл бұрын
Glad you enjoyed it
@kitsurubami2 жыл бұрын
what about for i in range(100): return condition_1 and condition_2 and condition_3 and condition_4 ?
@StyleTrick4 жыл бұрын
Great content, keeping code simple =)
@codebasics4 жыл бұрын
Always!
@jaleeluddin92232 жыл бұрын
Good stuff..Do you have many other similar videos?
@pratikpawar054 жыл бұрын
Sir plz complete the data structure series as soon as possible. Because it is helping me a lot to learn data structure in better way. Also thank you for being such a nice teacher ❤️😍
@codebasics4 жыл бұрын
Sure pratik. I am going to upload a tutorial on queue data structure in next few days. Stay tuned.
@RiyaSharma-gm5om3 жыл бұрын
Great video...just what I was looking for. thanks for clubbing all this in a video.
@codebasics3 жыл бұрын
👍☺️
@tagorerahul7 ай бұрын
Really good vedio on code review
@joelbrighton2819 Жыл бұрын
"Write compact code" (1:10) This is questionable advice. We should write code that meets functional/non-functional requirements but is easy to read. Do you want to spend 2 minutes trying to understand 1 line of code or 15 seconds understanding 5 lines of code? (This is actually discussed later in the video). "phone_info is not used in multiple places" (2:55) Correct, but it **is** used when stepping through code (which is generally a good idea). You can't see what's in phone_info if you return it directly. For the sake of one temporary variable you make debugging easier without having to re-write the code. The other advice is great!
@GameMakerRob Жыл бұрын
This was pretty good info
@nmana97594 жыл бұрын
Very good explanation! Thank you!
@codebasics4 жыл бұрын
Glad you enjoyed it!
@mdjohir99964 жыл бұрын
@@codebasicsyou
@Kingkiyan243 жыл бұрын
Awesome tutorial.. thank you so much it was very helpful
@codebasics3 жыл бұрын
You're welcome!
@davidobber67882 жыл бұрын
Nice video, more or less this is written in the wonderful Clean Code (by Robert Martin). But sometimes I prefer to store the output of a function on a variable just for debugging purposes, or to store something on a temporary variable to avoid train wagons (i.e. multiple rows with getA().getB().get(C).setXXX(), I prefer to declare C c = getA().getB())
@codebasics2 жыл бұрын
Got it, I also use the same technique to avoid train wagons.
@user-wc7em8kf9d4 жыл бұрын
Thanks. Superb content!!!
@codebasics4 жыл бұрын
My pleasure!
@mahanirvaantantra3 жыл бұрын
I slightly disagree with the process_numbers function review. I would prefer list and dict compression, for they improve the performance of code. Please let me know if someone disagrees with me. Along with their explanation.
@joelbrighton2819 Жыл бұрын
My view... use whatever approach meets the performance requirements of the application and is understandable and readable by other Developers (including yourself in 6 months)! When considering making a performance related change always ask whether the benefits are _really_ needed by the end users (or whether you just want to make the application a little bit faster for no tangible user benefit). 🙂
@atulpatil22893 жыл бұрын
Thank you sir... Sir, can you plz tell which resource or anything I can follow to improve my coding practices?....as I'm learning everything alone so don't have anyone to review my code.
@alxx7364 жыл бұрын
Coding Best Practices vs Code Smell ? Which is the difference? Could you give me both definitions? Thanks
@pabloestrada91143 жыл бұрын
Gracias! Muy bueno!
@MadForCs164 жыл бұрын
very helpful. thank you.
@codebasics4 жыл бұрын
Glad it was helpful!
@sauravadhikari88422 жыл бұрын
10:03 you can do nothing in java without class and object
@akashbadgujar58254 ай бұрын
What he meant is you can keep multiple methods in the same class. Why always create new classes when not needed. Using SOLID without understanding can be harmful.
@ashutoshpatra4404 жыл бұрын
Thank you sir.....
@codebasics4 жыл бұрын
Most welcome
@savansanghavi74654 жыл бұрын
Now this was cool
@codebasics4 жыл бұрын
I am happy this was helpful to you.
@bloodylyons5 ай бұрын
Compact code does not always mean it is more readable