Тёмный

Coding Best Practices With Examples | Code Review Best Practices 

codebasics
Подписаться 1,1 млн
Просмотров 52 тыс.
50% 1

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.
github.com/cod...
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
Website: codebasics.io/
Facebook: / codebasicshub
Twitter: / codebasicshub

Опубликовано:

 

13 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@codebasics
@codebasics 2 года назад
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
@darshanabhuyan5896
@darshanabhuyan5896 2 года назад
This guy is literally taught me much more than my professors.. Thanks a lot
@soupnoodles
@soupnoodles 2 года назад
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 :)
@NeedforSpeedGamesforpc
@NeedforSpeedGamesforpc 2 года назад
I loved the 1st one which is use of Sets! Its been so long i have been coding but always underestimated power of sets.
@Dakshita-cd4yo
@Dakshita-cd4yo 19 дней назад
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)
@FurbnMax
@FurbnMax 3 года назад
Awesome tutorial, will have my first code review during my application process in a few days and am currently preparing. Much apprecheated!
@codebasics
@codebasics 3 года назад
Glad it helped!
@jaleeluddin9223
@jaleeluddin9223 2 года назад
So glad I discovered this accidently! Really good stuff
@raghuvardhansaripalli9636
@raghuvardhansaripalli9636 4 года назад
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. !!!
@codebasics
@codebasics 4 года назад
Great to hear raghu!
@pratikpawar05
@pratikpawar05 4 года назад
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 ❤️😍
@codebasics
@codebasics 4 года назад
Sure pratik. I am going to upload a tutorial on queue data structure in next few days. Stay tuned.
@atulpatil2289
@atulpatil2289 3 года назад
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.
@jaleeluddin9223
@jaleeluddin9223 2 года назад
Good stuff..Do you have many other similar videos?
@workflop4117
@workflop4117 4 года назад
Really good advices! Plus they are explained in detail! Many thanks.
@codebasics
@codebasics 4 года назад
Glad it was helpful!
@terrabyte-techy
@terrabyte-techy Год назад
Excellent job. Thanks for the upload, it really helps.
@codebasics
@codebasics Год назад
Glad it helped!
@user-wr4yl7tx3w
@user-wr4yl7tx3w Год назад
wow, great to see more videos like this.
@sumitbabel5415
@sumitbabel5415 3 года назад
Very well discussed and really practical, hats off dear
@codebasics
@codebasics 3 года назад
Glad you enjoyed it
@StyleTrick
@StyleTrick 4 года назад
Great content, keeping code simple =)
@codebasics
@codebasics 4 года назад
Always!
@kitsurubami
@kitsurubami 2 года назад
what about for i in range(100): return condition_1 and condition_2 and condition_3 and condition_4 ?
@GameMakerRob
@GameMakerRob Год назад
This was pretty good info
@RiyaSharma-gm5om
@RiyaSharma-gm5om 3 года назад
Great video...just what I was looking for. thanks for clubbing all this in a video.
@codebasics
@codebasics 3 года назад
👍☺️
@davidobber6788
@davidobber6788 2 года назад
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())
@codebasics
@codebasics 2 года назад
Got it, I also use the same technique to avoid train wagons.
@tagorerahul
@tagorerahul 4 месяца назад
Really good vedio on code review
@alxx736
@alxx736 4 года назад
Coding Best Practices vs Code Smell ? Which is the difference? Could you give me both definitions? Thanks
@joelbrighton2819
@joelbrighton2819 10 месяцев назад
"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!
@mahanirvaantantra
@mahanirvaantantra 2 года назад
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
@joelbrighton2819 10 месяцев назад
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). 🙂
@pabloestrada9114
@pabloestrada9114 3 года назад
Gracias! Muy bueno!
@Kingkiyan24
@Kingkiyan24 3 года назад
Awesome tutorial.. thank you so much it was very helpful
@codebasics
@codebasics 3 года назад
You're welcome!
@nmana9759
@nmana9759 4 года назад
Very good explanation! Thank you!
@codebasics
@codebasics 4 года назад
Glad you enjoyed it!
@mdjohir9996
@mdjohir9996 3 года назад
@@codebasicsyou
@user-wc7em8kf9d
@user-wc7em8kf9d 4 года назад
Thanks. Superb content!!!
@codebasics
@codebasics 4 года назад
My pleasure!
@MadForCs16
@MadForCs16 3 года назад
very helpful. thank you.
@codebasics
@codebasics 3 года назад
Glad it was helpful!
@bloodylyons
@bloodylyons 3 месяца назад
Compact code does not always mean it is more readable
@ashutoshpatra440
@ashutoshpatra440 4 года назад
Thank you sir.....
@codebasics
@codebasics 4 года назад
Most welcome
@savansanghavi7465
@savansanghavi7465 4 года назад
Now this was cool
@codebasics
@codebasics 4 года назад
I am happy this was helpful to you.
@sauravadhikari8842
@sauravadhikari8842 2 года назад
10:03 you can do nothing in java without class and object
@akashbadgujar5825
@akashbadgujar5825 Месяц назад
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.
Далее
How to Do Code Reviews Like a Human
22:49
Просмотров 42 тыс.
Junior Developer Sent Me Another PR For Review
15:44
Просмотров 104 тыс.
Мои нет в ЛАПКЕРАХ
00:11
Просмотров 322 тыс.
ОНА БЫЛА ПЕВИЦЕЙ🤪
3:13:12
Просмотров 1,1 млн
How principled coders outperform the competition
11:11
The 3 Laws of Writing Readable Code
5:28
Просмотров 625 тыс.
Naming Things in Code
7:25
Просмотров 2,2 млн
Tips to improve programming skills
10:00
Просмотров 15 тыс.
Best practices for coding in .NET
8:06
Просмотров 28 тыс.
Software Engineering "Best Practices"
6:02
Просмотров 405 тыс.
How Senior Programmers ACTUALLY Write Code
13:37
Просмотров 1,5 млн
Mindset of Successful Programmers
4:56
Просмотров 1,1 млн