Coding Best Practices With Examples | Code Review Best Practices

preview_player
Показать описание
This video goes over bad and better code snippets that showcase some of the coding best practices that can help you become a better programmer. Same guidelines can be used when you are reviewing code written by someone else.
Here is the link of these programming best practices.

Рекомендации по теме
Комментарии
Автор

This guy is literally taught me much more than my professors.. Thanks a lot

darshanabhuyan
Автор

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 :)

soupnoodles
Автор

I loved the 1st one which is use of Sets! Its been so long i have been coding but always underestimated power of sets.

NeedforSpeedGamesforpc
Автор

Awesome tutorial, will have my first code review during my application process in a few days and am currently preparing. Much apprecheated!

FurbnMax
Автор

So glad I discovered this accidently! Really good stuff

jaleeluddin
Автор

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. !!!

raghuvardhansaripalli
Автор

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 ❤️😍

pratikpawar
Автор

what about for i in range(100): return condition_1 and condition_2 and condition_3 and condition_4 ?

kitsurubami
Автор

Really good advices! Plus they are explained in detail! Many thanks.

workflop
Автор

Great content, keeping code simple =)

StyleTrick
Автор

wow, great to see more videos like this.

wryltxw
Автор

Very well discussed and really practical, hats off dear

sumitbabel
Автор

Great video...just what I was looking for. thanks for clubbing all this in a video.

RiyaSharma-gmom
Автор

Excellent job. Thanks for the upload, it really helps.

terrabyte-techy
Автор

Good stuff..Do you have many other similar videos?

jaleeluddin
Автор

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())

davidobber
Автор

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.

atulpatil
Автор

Coding Best Practices vs Code Smell ? Which is the difference? Could you give me both definitions? Thanks

alxx
Автор

Awesome tutorial.. thank you so much it was very helpful

Kingkiyan
Автор

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.

mahanirvaantantra