You are viewing a single thread.
View all comments
36 points

Python is only good for short programs

permalink
report
reply
14 points

Python is only good for short programs

Was Python designed with enterprise applications in mind?

It sounds like some developers have a Python hammer and they can only envision using that hammer to drive any kind of nail, no matter how poorly.

permalink
report
parent
reply
3 points
*

I mean, it’s still a very nice language. I can see someone, marveled by that, would endeavor to make bigger things with it. I just don’t feel it scales that well.

permalink
report
parent
reply
2 points

I agree. The GIL and packaging woes are a good indication that it’s range of applications isn’t as extensive as other tech stacks.

permalink
report
parent
reply
3 points

I feel attacked.

By my own Python hammer.

permalink
report
parent
reply
4 points

Check out home assistant.

permalink
report
parent
reply
17 points

I don’t mean it doesn’t work for larger projects. Just that it’s a pain to understand other’s code when you have almost no type information, making it, to me, a no go for that

permalink
report
parent
reply
8 points
*

Larger projects in Python (like homeassistant) tend to use type-hints and enforce them through linters. Essentially, these linters (with a well-setup IDE) turn programming in large Python projects into a very similar experience to programming a statically typed language, except that Python does not need to be compiled (and type-checked) to run it. So you can still run it before you have satisfied the linters, you just can’t commit or push or whatever (depending on project setup).

And yes, these linters and the Python type system are obviously not as good as something like a Go or Rust compiler. But then again, Python is a generalist language: it can do everything, but excels at nothing.

permalink
report
parent
reply
2 points

Fair enough, I don’t notice a significant overhead but then a lot of information is inferred by patterns , project structures etc etc

permalink
report
parent
reply
3 points

Python should not be used for production environments, or anything facing the user directly. You are only inviting pain and suffering.

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 1

    Monthly active users

  • 555

    Posts

  • 2.8K

    Comments