Decorators in Python: The Complete Guide

  Рет қаралды 4,643

Code with Josh

Code with Josh

Күн бұрын

Пікірлер: 31
@codewithjoshoffical
@codewithjoshoffical 23 күн бұрын
👉 Join my Python Newsletter ~ www.thenerdnook.io 🎯 Join our Discord Community ~ discord.gg/dvrcpXSwyc 👉 Get my Python Courses, Free ~ zerotoknowing.gumroad.com
@adityapatel6617
@adityapatel6617 19 күн бұрын
Hey Josh! thnkxx for the video , it really provides value in a coders life , the best part of the video was the use cases/real world probs and the examples used were top notch 💙 from India
@codewithjoshoffical
@codewithjoshoffical 18 күн бұрын
I’m glad you’re getting value, thanks for being here! 😁
@user-vy3ed4gu5l
@user-vy3ed4gu5l 3 күн бұрын
I really enjoyed this video, it helped me understand Python that i write for work better. It isn't trivial or overly bogged down with details, well done! : ) This is the second video I have watched from you and I think I am going to watch everything about python you have. Liked&Subbed
@codewithjoshoffical
@codewithjoshoffical 2 күн бұрын
This can be a tough topic at times. Glad I could help, thank you for being here! 😁
@davidlu1003
@davidlu1003 21 күн бұрын
💗💗💗to support your channel. I learn from you. And actually, I always use the extensions as you do.😁😁😁100% support, and love you.😁😁😁
@codewithjoshoffical
@codewithjoshoffical 21 күн бұрын
I’m glad you’re getting value 😁
@KeyserTheRedBeard
@KeyserTheRedBeard 22 күн бұрын
Great video, Code with Josh. Eager to see your next upload from you. I hit the thumbs up icon on your content. Keep up the awesome work! Your practical examples of decorators were really enlightening. How do you recommend handling edge cases when using decorators in larger applications?
@davidlu1003
@davidlu1003 21 күн бұрын
Happy New Year, bro.😁😁😁I learn from you.
@codewithjoshoffical
@codewithjoshoffical 21 күн бұрын
Happy new year to you too!
@lucietee2296
@lucietee2296 21 күн бұрын
Nice video, one question. How can I create a decorator that takes arguments? Thanks. Strange that the audio is fine to me, not sure what was going on with other comments about low volume.
@codewithjoshoffical
@codewithjoshoffical 21 күн бұрын
I’m glad it’s working for you! Also this is why we can give *args and **kwargs, to allow for this. Check out the last decorator I have in the video, it should help 😁
@wombaat211
@wombaat211 22 күн бұрын
Thanks sir, can you explain more the differences between class-based and function-based decorators?
@codewithjoshoffical
@codewithjoshoffical 22 күн бұрын
Function-based ones are simpler and usually don’t maintain state, so they’re good for quick tasks Now class-based decorators can store information and handle more complex logic, making them more reusable and better at keeping state
@999_zgaming
@999_zgaming 22 күн бұрын
Sir love you ❤
@codewithjoshoffical
@codewithjoshoffical 22 күн бұрын
Thanks for being here! 😁
@TheAdventureOfLife
@TheAdventureOfLife 23 күн бұрын
Can these be chained together?
@codewithjoshoffical
@codewithjoshoffical 23 күн бұрын
Sure can! But be sure not to over do it, too much of anything isn’t good 😁
@pradeeppardeep1943
@pradeeppardeep1943 23 күн бұрын
Sir, what is the need of creating virtual environment when doing projects. Why can't we do normally
@A4O_TSL
@A4O_TSL 23 күн бұрын
my english its not really good but i will try to explain, you can do it normally running all in your normal enviroment of your computer yeah...BUT, if you have a several number of projects who several that manage several library dependencies, there is the possibility that system inconsistencies will be found due to compatibilities and different versions where one project manages one version and another a more current one, or an older one.
@codewithjoshoffical
@codewithjoshoffical 23 күн бұрын
Creating a virtual environment means you don’t need to install all the packages on your local system. They take up too much space. Making a venv is better for this and you can make a requirements file so other devs know what they need to work with your code. venv’s are standard Python practice 😄
@codewithjoshoffical
@codewithjoshoffical 23 күн бұрын
@@A4O_TSL Your English is great! And good enough to help others, thanks for sharing 😊
@pradeeppardeep1943
@pradeeppardeep1943 23 күн бұрын
@@A4O_TSL Thanks for your explanation..
@julianvillaquira4127
@julianvillaquira4127 21 күн бұрын
​@@codewithjoshoffical They will still be in your storage device 🙄.
@MD-Rocker
@MD-Rocker 22 күн бұрын
Sir I am from india, Iam discuss with you about wires in python. How to creat
@codewithjoshoffical
@codewithjoshoffical 22 күн бұрын
It’s great to hear from you, if you're referring to wiring, that can mean different things. What would you like to know?
@brucea9871
@brucea9871 21 күн бұрын
Would you please increase the volume on your videos? I could barely make out what you were saying. I had to increase the volume to almost the maximum.
@codewithjoshoffical
@codewithjoshoffical 21 күн бұрын
Yes noted, will be doing this for you!
@davidlu1003
@davidlu1003 21 күн бұрын
The sound is a little bit low, I suggest you turn up the sound next time.😁😁😁
@codewithjoshoffical
@codewithjoshoffical 21 күн бұрын
Alright, I’ll note that. Thanks
@tejasj5485
@tejasj5485 20 күн бұрын
sucks... its all copied from other website..
5 Best Python Habits for Better Code
20:32
Code with Josh
Рет қаралды 2 М.
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 112 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Every Decorator in Python Needs THIS: @wraps
6:46
Indently
Рет қаралды 14 М.
PLEASE Learn This Underrated Python Feature...
14:30
Tech With Tim
Рет қаралды 19 М.
13 Python List Tricks Every Programmer Should Know
7:32
Coding Together
Рет қаралды 910
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 459 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 129 М.
Python Machine Learning for Dummies: Scikit-Learn Tutorial for Beginners
37:35
Please Master This MAGIC Python Feature... 🪄
25:10
Tech With Tim
Рет қаралды 146 М.
The True Power of "ChainMap" in Python
13:04
Indently
Рет қаралды 34 М.
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 88 М.
PyVisual - A new GUI Builder for Python
9:27
Murtaza's Workshop - Robotics and AI
Рет қаралды 55 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН