• Digital Mark@lemmy.ml
    ·
    1 year ago

    Strong typing is for weak minds.

    You absolutely do not need a computer telling you what types you can put in a collection. Put an assert, write some unit tests, if you aren't sure where data sources come from and can't write a one-line comment.

    Dynamic typing makes you fast, it's empowering. Try it and quit being so scared.

    • GaveUp [love/loves]
      ·
      1 year ago

      Hate to be a pedantic nerd but seeing as the subject is coding

      I think you mean static typing, not strong typing

      • GaveUp [love/loves]
        ·
        edit-2
        1 year ago

        It's not just the physical typing

        It's the fact that you can be extremely flexible with data structures and variables

        E.g. you can have a list of strings and ints in Python but not java

        • morrowind@lemmy.ml
          ·
          1 year ago

          This is why union types are great (also sum types are similar I think, never used those)