• DacoTaco@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      42
      ·
      edit-2
      1 year ago

      Python is considered a programming language? I still classify it as scripting lol

      That said, i’d personally use good old c/c++ or even c#/.net over python lol

      • BeigeAgenda@lemmy.ca
        link
        fedilink
        arrow-up
        18
        arrow-down
        1
        ·
        1 year ago

        Yes Python is definitely a programming language, I write in C/C++/C#/Python/Bash each language has its areas where they are best.

        I prefer Python for DevOps related code and writing smaller programs/tools. You just get so much handed to you with Python’s toolbox, it just makes things easier, you can use it as a scripting language or write a modular object oriented program.

        I use C/C++ when performance matters and I want things to be Done right TM, and make sure to use all the help the compilers and static code checkers can give.

      • xmunk@sh.itjust.works
        link
        fedilink
        arrow-up
        13
        ·
        1 year ago

        Bash is a programming language… honestly it’s like rectangles and squares - all scripting languages are programming languages but not all programming languages are flexible enough to be commonly considered scripting languages.

      • Xabis@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        C# “compiles” to intermediary bytecode, then ran in a vm. Same as Java. I’d say that’s no better than a “scripting” language with a JIT.

        • DacoTaco@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I wouldnt say a vm (as there is no emulated hardware layer around the running code ) , but sure you made a valid point a actually!

      • 30p87@feddit.de
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        1 year ago

        Python is a scripting language, but it’s generally called a programming language, because there are no key differences in their features or workings. Just as C# and Java, Python is first compiled to .pyc files and then executed with a special program, eg. Mono for C#, OpenJRE for the second and just python for the latter, except for Python it’s more hidden. C# supports Classes, Python does, but C does not (officially) … so wouldn’t C be less of a programming language then?
        In the end, scripting languages are just defined as one by being easier and faster to run by all/most implementations as the “gcc main.c” and “./a.out” method of “real” programming languages, by just using “python main.py” or “node main.js” for your program. Therefore, they can be changed on the fly and added to another script.
        What IS generally called a scripting language is eg. Bash, as it’s not compiled, supports few features and is not that cross compatible (except maybe with eg. WSL).

        I’m a huge C/C++ fan, but some tasks just aren’t suitable for them. Parsing HTML/XML in C++? It’s possible, but a pain in the ass. I know it, I did it. Having parsed plans, tables and xml responses in C++, I can tell you Python is more suited for this job. The extra few milliseconds you save aren’t worth the hassle of verbose exception handling, non standard libraries which need different systems to stay up to date (some don’t support your make system of choice) and harder integrated extension support (you can’t just throw in a .py script for support of other providers, but need to explicitly integrate eg. lua support), especially if the bottleneck is not your code, with ~10 ms runtime, but some random ass server with ~100 ms ping.