Navigation

    Voting Theory Forum

    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Computer Programming-language Javascript

    Watercooler
    2
    4
    158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jack Waugh last edited by

      . . . not to be confused with a very different programming language Java.

      @rob said

      my favorite language Javascript

      I have been exposed to a number of programming languages, including Lisp, C, Smalltalk, and Ruby, and I wrote about what makes Javascript (JS) different.

      Approval-ordered Llull (letter grades) [10], Score // Llull [9], Score, STAR, Approval, other rated Condorcet [8]; equal-ranked Condorcet [4]; strictly-ranked Condorcet [3]; everything else [0].

      rob 1 Reply Last reply Reply Quote 0
      • rob
        rob Banned @Jack Waugh last edited by rob

        @jack-waugh Just to be clear, JavaScript isn't so much my favorite language because I like the language itself, but it's the language I know best because it is the only one, or at least the most straightforward one, to do things in a browser. And browsers have incredibly rich APIs that allow you to do all kinds of interesting things and don't require users to do any setup beyond going to a web page.

        There are a lot of positives of Typescript, but I hate the fact that you have to go through extra steps to get it to run in a browser and debug it. I don't like that I spend way too much time trying to make Typescript happy. (when designing something , I like to work fast and loose until I know where it is going) It looks like, going forward, I will start most things in Javascript and then use ChatGPT later to up-convert to Typescript, which it does remarkably well. (it is able to infer things from your variable names, it is able to read english language comments, etc, all of which helps it do this well)

        I learned with C over 30 years ago and I've done some C++ along the way. I suppose that influences me in that I like that Javascript has a very C-like syntax.

        J 1 Reply Last reply Reply Quote 0
        • J
          Jack Waugh @rob last edited by

          @rob Yeah, I haven't bothered to learn Typescript (TS). And I suspect it would keep me from doing some things the way I prefer to do them, as it may have arbitrary limitations on types.

          Approval-ordered Llull (letter grades) [10], Score // Llull [9], Score, STAR, Approval, other rated Condorcet [8]; equal-ranked Condorcet [4]; strictly-ranked Condorcet [3]; everything else [0].

          rob 1 Reply Last reply Reply Quote 0
          • rob
            rob Banned @Jack Waugh last edited by

            @jack-waugh I have to use it for work. I don't think it is horrible for "final" code, I just wish it was easier to work in plain old javascript as you build things out without causing all sorts of problems. And I'd like it a lot more if browsers supported it natively without having to deal with source maps and such.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post