this post was submitted on 13 Nov 2023
1 points (100.0% liked)

Programming

17008 readers
316 users here now

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



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] catfish@lemmy.ml 0 points 10 months ago (1 children)

Python was always strongly typed. For years there has been optional static typing and - you know - unit tests.

If you're having significant issues due to not knowing what types you're using, the type system may not be your greatest problem...

[โ€“] Knusper@feddit.de 0 points 10 months ago

These exist in theory, but as a whole, I've never seen them working at even the base level of what you get in other languages.

Adding type hints to your code is fucking exhausting, because there is no type inference.
MyPy regularly calls it quits, when any library doesn't have type hints. PyCharm regularly doesn't properly auto-complete, because it doesn't have type information (if it can load your project correctly to begin with).
Unit tests exist, yes, but you need 100% test coverage to make the language properly check all code paths. Without it, even just calling a library isn't guaranteed to work. In no fully statically typed language, would I recommend 100% test coverage, unless you have special correctness requirements.