• dreadgoat@kbin.social
      link
      fedilink
      arrow-up
      141
      arrow-down
      3
      ·
      2 years ago

      used for things it wasn’t created for

      I think Python gets a point here, as it is very good at doing what it was created for.
      Javascript even sucks at its stated goal.

    • MaximumOverflow@lemmy.ca
      link
      fedilink
      arrow-up
      90
      ·
      2 years ago

      You don’t master Javascript, ever. You just become accustomed to the madness and stop caring, while sometimes doing things right.

    • thewebroach
      link
      fedilink
      arrow-up
      19
      arrow-down
      2
      ·
      edit-2
      2 years ago

      Gotta say, ive done magical things in Javascript. NodeJS in particular can do damn near anything you set your mind to, and it doesnt give a damn if you use tab or 4 spaces.

      • redcalcium@lemmy.institute
        link
        fedilink
        arrow-up
        13
        ·
        edit-2
        2 years ago

        Back in the day before enforcing code formatting via linting tools become commonplace, many programmers often ignore formatting at all and do whatever they please, mixing tabs and spaces in the same file, not indenting their code blocks, mixing camel case and snake case, and a whole lot of other formatting eyesores. One day Guido van Rossum decided enough is enough and created a programming language where such programmers are forced to behave, else their program wouldn’t run. He named it Python because he often hiss at those annoying programmers during code reviews.

      • PeWu@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        For real, you really can do anything there, sometimes sacrificing efficiency, but still.

      • Bye
        link
        fedilink
        English
        arrow-up
        21
        ·
        2 years ago

        That’s the joke

        It’s implying js isn’t a programming language because web stuff isn’t real programming

          • Bye
            link
            fedilink
            English
            arrow-up
            14
            ·
            2 years ago

            Don’t get mad at me I’m just explaining it

          • Aceticon
            link
            fedilink
            arrow-up
            8
            ·
            2 years ago

            Not even close.

            Most software out there is not consumer facing (there is a huge amount of custom stuff inside companies of all sizes) and even in the consumer space most software nowadays resides in … smartphones.

            Unless, of course, you count HTML (literally a Markup Language, so data formatting for display not code) as programming, in which case I’ll leave you to enjoy your fantasy world.

          • SloppyPuppy
            link
            fedilink
            arrow-up
            4
            ·
            2 years ago

            You kinda forget that for each front end you see theres at least 4 times more backend to support it.

            Also there are ton of non fron facing software.

            Anyway its not really a competition. No one will be offended if you are wrong or not.

            • SokathHisEyesOpen@lemmy.ml
              link
              fedilink
              arrow-up
              3
              ·
              2 years ago

              The back-end functionality is still web functionality. Just because a user doesn’t see all the server stuff doesn’t mean it’s not necessary to support a website. There are billions of websites across the world, and they almost all use some combination of back-end, front-end, database, and server code.

      • Shaded Cosmos
        link
        fedilink
        English
        arrow-up
        12
        ·
        2 years ago

        I think they meant javascript is to web dev as python is to software dev

        • Vilian@lemmy.ca
          link
          fedilink
          arrow-up
          23
          arrow-down
          4
          ·
          2 years ago

          it’s a 4chan post, they don’t “think” they are lawless animals, deprived from any sense of rationality

        • Aceticon
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          I read it as them both being loose-typed interpreted and widelly used languages.

      • CheezyWeezle
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        2 years ago

        They do share a significant commonality, though; they are both interpreted languages, rather than compiled. Sure, you can compile them, but they are meant to be run interpreted so you can quickly and easily tweak and change things and not have to wait for compilation to see the results. In that regard they are very comparable.

  • mvirts
    link
    fedilink
    arrow-up
    110
    ·
    2 years ago

    Because JavaScript isn’t a programming language, it’s a compilation target 😅

  • BetterNotBigger
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    1
    ·
    2 years ago

    This one triggers the entire spectrum of human emotion.

  • garyyo
    link
    fedilink
    arrow-up
    52
    arrow-down
    2
    ·
    2 years ago

    Python is the connective tissue holding together library calls and some of our most advanced AI research is reliant on that. mildly concerning

      • Aceticon
        link
        fedilink
        arrow-up
        10
        ·
        2 years ago

        Pretty much all online service APIs (Google APIs, Facebook and so on) out there are text-based.

        Granted, JSON formatted text, but still absolutelly human readable text.

        The reason for that is because it’s agnostic of the machine architectures (stuff like endianess) on both sides.

        The really crazy stuff in banking are the old binary protocols (like EDF) from the time when bandwidth was way less than now (so, the early 90s and earlier).

        • grue@lemmy.ml
          link
          fedilink
          arrow-up
          9
          ·
          2 years ago

          (Nobody tell him about the Cobol batch jobs that still run overnight.)

        • PsychedSy
          link
          fedilink
          arrow-up
          8
          ·
          2 years ago

          You don’t want to know how bad it is. A good friend is a consultant/business analyst for some salesforce-based loan software. Shit’s terrifying.

          • funkless
            link
            fedilink
            English
            arrow-up
            4
            ·
            2 years ago

            SFDC itself is written in Java but uses Javascript-esque APEX for whitelabel development?

            • PsychedSy
              link
              fedilink
              arrow-up
              2
              ·
              2 years ago

              I mostly meant the base level shit with text files and ridiculous APIs. Converting from one servicing system to another sounds kind of fun, though. I’ve always enjoyed doing horrible things to data. The most recent one I heard is there’s a drag and drop visual coding tool that I’m told can’t export to apex - just make calls to it.

        • unsavory
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 years ago

          Many banking systems sync with one another with txt files.

  • PeteZ
    link
    fedilink
    arrow-up
    30
    arrow-down
    3
    ·
    2 years ago

    I had to do a project once with JavaScript. I did not enjoy the experience. In my opinion, a language where you need a reference to tell true from false is a bad language. So maybe JavaScript is the JavaScript of languages.

      • Skymt
        link
        fedilink
        arrow-up
        16
        ·
        2 years ago

        It’s only JavaScript if it is from the ECMA region in Europe. Otherwise it’s just sparkling java…

    • Liz@midwest.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      I’m not a programmer but I took a class in JavaScript. Unless I’m misunderstanding what you mean by reference, I don’t recall that feature of the language. Can you explain?

      • PeteZ
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        A language reference (a manual). It’s not a language feature.

      • EatBorekYouWreck
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        What I think he meant is that in JS every object is a reference or a pointer. This means that instead of the variable be the place in memory where the data is, the variable holds the address of where the data lives. This helps languages like JS and Python have variables that changes their types (you can assign a=true and later a=3 and everything will be fine). A non reference variable, as you can find in languages like C and Rust, is defined by its memory size statically, and the program can just pre-allocate a continuous block of memory that is enough for all the needed variables. This helps your cpu cache and access variables more efficiently. In reference types, memory can end up anywhere on your memory because it is allocated dynamically at runtime, so you access whatever memory that is free and available at the moment. Also the extra step of following a pointer just to get to a block containing a boolean (literally just one bit of memory) compounds and adds up to be actually noticeable in long calculations.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 years ago

      That’s not even good rage bait.

      Rage bait would be for example if you said “they could fix everything that’s wrong with PHP but Python already exists”.