python | Unsorted

Telegram-канал python - Python

135201

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

Subscribe to a channel

Python

PostgreSQL, docker, API's

Читать полностью…

Python

You can look for FastAPI course, i don't know anyone in english.

Читать полностью…

Python

Can anyone recommend free course on backend development with python

Читать полностью…

Python

It's not for backend development

Читать полностью…

Python

Anyone here guide me to learn backend development with python

Читать полностью…

Python

https://wiki.python.org/moin/BeginnersGuide/NonProgrammers

Читать полностью…

Python

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!

Читать полностью…

Python

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?

Читать полностью…

Python

So I can clarify any doubt here?

Читать полностью…

Python

@notfromcambrigde

That makes sense. But what about when it comes to debugging? Are lambda functions more difficult to debug because they're anonymous?

Читать полностью…

Python

@notfromcambrigde Thanks it helped me to clarifiy the doubt

Читать полностью…

Python

If you're unsure, use a normal function. Lambdas are mostly used for single-line functions that are consumed where they are created.

Читать полностью…

Python

Because most of my friends are surprised how he does not forget some things with the passage of time

Читать полностью…

Python

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

Читать полностью…

Python

@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?

Читать полностью…

Python

But you can study the base of backend man

Читать полностью…

Python

Are you looking for content about it? see it on YouTube, it is basic! And practice a loot !

Читать полностью…

Python

Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.

Читать полностью…

Python

I will be learn with python book named python crash course

Читать полностью…

Python

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.

Читать полностью…

Python

Hey i am new here and wanna learn python any good people can help me??

Читать полностью…

Python

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.

Читать полностью…

Python

Wasn't that what we've been doing?

Читать полностью…

Python

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.

Читать полностью…

Python

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.

Читать полностью…

Python

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.

Читать полностью…

Python

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?

Читать полностью…

Python

I have a question now when studying Methode or something similar like Methode Dictionary is it normal to forget

Читать полностью…

Python

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

Читать полностью…

Python

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.

Читать полностью…
Subscribe to a channel