8

When I first began with Python I really missed the static typed checking from Java, I barely know anything about a returned object from a method and have to read the API extensively for every new library.

After a while I finally understand why Python is so powerful, the combination of dynamic typed language and rich default methods make the language unbeatable for your productivity.

While Java's Object only has toString(), hashCode(), equals() or clone(), Python's basic Class has every fucking method for every scenario I could ever image. No wonder that libraries like numpy or pandas work so well and fluidly.

Comments
  • 0
    @irene Is available with type annotations and linters like mypy.
  • 0
    is that the story how you became @AI-Overlord ?
  • 1
    @heyheni you are absolutey right
  • 0
    @irene Pycharm (no idea if Ultimate only) does type checking while typing. While still not enforced, it does its job very well.
  • 0
    @sbiewald many methods can not be detected by Pycharm and usually I have to use an extra Jupyter Notebook to dir a variable to see which methods it can
  • 0
    This is why I use python for all my small tools, utilities, any kind of rapid prototyping and POCs
  • 0
    @AI-Overlord That's a bit strange... Even the default IDLE can sense all attributes, after the code has run at least once.
    I actually never had problems with missing attributes in PyCharm, but I get the professional edition for free as I am a student.
  • 0
    Py is lub.
Add Comment