You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
You can look for FastAPI course, i don't know anyone in english.
Читать полностью…Can anyone recommend free course on backend development with python
Читать полностью…Anyone here guide me to learn backend development with python
Читать полностью…https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…That makes total sense. So, static methods are like utility functions that belong to the class, but don't rely on any instance-specific state. Got it!
Читать полностью…I'm trying to understand the difference between static methods and instance methods in classes. When should I use static methods versus instance methods? Is it just about whether the method uses instance variables or not?
Читать полностью…@notfromcambrigde
That makes sense. But what about when it comes to debugging? Are lambda functions more difficult to debug because they're anonymous?
@notfromcambrigde Thanks it helped me to clarifiy the doubt
Читать полностью…If you're unsure, use a normal function. Lambdas are mostly used for single-line functions that are consumed where they are created.
Читать полностью…Because most of my friends are surprised how he does not forget some things with the passage of time
Читать полностью…@Visceros
Exactly! I think I get it now. Thanks for breaking it down for me. So, it's really about choosing the right tool for the job, right? If the project's gonna stay small, keep it simple with functions. But if it's gonna grow, classes are the way to go. Appreciate the insight!
@Visceros That's a great point!
Fair enough! I guess it makes sense that classes are better for larger projects where you need to manage complexity and scale. But, at the same time, isn't it possible to write maintainable code with functions too, as long as you're organized and follow good practices?
Or, if you want to play devil's advocate:
But doesn't using classes everywhere just add unnecessary overhead for small projects?
What do you think?
Are you looking for content about it? see it on YouTube, it is basic! And practice a loot !Читать полностью…
Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Читать полностью…I will be learn with python book named python crash course
Читать полностью…It's safe to assume that static methods could be avoided almost always. Python does not need utility classes because it has bare functions and modules to organize them.
Читать полностью…Hey i am new here and wanna learn python any good people can help me??
Читать полностью…Yes and it makes a big difference whether you have to instantiate a class or can simply use a static (or class) method without doing so.
Читать полностью…Just right the message and click or tap "Reply". Then write the message without any user names.
They probably are, but with only using them for simple functions the likelihood of having to debug a lambda is quite low.
We prefer when people reply to message instead of writing messages out-of-context but mentioning a person. Which has the added benefit of being viewable in a thread.
Читать полностью…Classes can have fields. Functions usually wouldn't have them. So, if you need a structure that should not be as limitless as a list or a dict, you'd go with a class.
Читать полностью…I'm working on a project and I'm not sure when to use a lambda function versus a regular function. Like, what's the threshold for deciding when something's simple enough for a lambda and when it's better to define a full-fledged function?
Читать полностью…I have a question now when studying Methode or something similar like Methode Dictionary is it normal to forget
Читать полностью…that's precisely why I said that if you intend your project to stay small and specific - you don't really need to make a class for every object
Читать полностью…Usually, it's a question of personal preferences. But If you intend your project to be small and specific - you can easily roll with funcitons.
But if there's a perspective of scaling, horizontally or vertically - classes will save you a lot of time.