I JUST WANNA HAVE INTERFACES IN MY PROJECT, I GOTTA USE PYTHON SINCE I'M SCRIPTING FOR ITERM2, WHAT DO YOU MEAN I HAVE TO IMPORT THE ABILITY TO INTERFACE :kitty-cri-screm:

  • WhyEssEff [she/her]
    hexagon
    ·
    edit-2
    1 year ago

    I love how even if you go out of your way to type hint variables the runtime won't even tell you if it's not according to your type hints :blob-no-thoughts:

    they're like 'type hints? oh, fancy comments' :blob-no-thoughts:

      • WhyEssEff [she/her]
        hexagon
        ·
        1 year ago

        I LOVE DYNAMIC TYPING :hypersus: I LOVE DEBUGGING RUNTIME ERRORS :torment:

        • save_vs_death [they/them]
          ·
          1 year ago

          you have two choices:

          1. the compiler goes "good job dipshit, you fucked it" for 2 hours until it allows you to run code
          2. the interpreter goes "looks good to me" and then immediately explodes for 2 hours until you figure it out
          • WhyEssEff [she/her]
            hexagon
            ·
            edit-2
            1 year ago

            9/10 times i vastly prefer the former because when my computer yells at me for being a stupid fuck it's because i'm being a stupid fuck and that's valid to yell at me about :blob-no-thoughts:

            and the 1/10 times i'm just scripting and don't really care if I'm fucking shit up because i'm only telling it to modify, like, my clipboard or something. but, like, that's what bash is for

          • facow [he/him, any]
            ·
            1 year ago

            Nah if it takes you 2 hours just to get your code to compile, I promise you it'll take at least 4 to get it running correctly in an interpreted language. And you better hope that your test cases cover all paths and you don't have any runtime errors lurking that you just didn't notice.

            • save_vs_death [they/them]
              ·
              1 year ago

              with "for 2 hours" i meant that you continually recompile until it works, not that it takes you 2 hours to compile it

              • daisy
                ·
                1 year ago

                not that it takes you 2 hours to compile it

                Insert your favourite C++ joke here.

    • Changeling [it/its]
      ·
      1 year ago

      I use dataclasses and NamedTuples a lot because they actually do runtime type checking

    • aaro [they/them, she/her]
      ·
      1 year ago

      I know "just add another tool to your toolchain" isn't a great solution but mypy slaps and has IDE/editor plugins