Stop comparing programming languages

  • Python is versatile
  • JavaScript is powerful
  • Ruby is elegant
  • C is essential
  • C++
  • Java is robust
  • SatouKazuma@programming.dev
    link
    fedilink
    arrow-up
    84
    arrow-down
    1
    ·
    6 months ago

    Mfw Rustaceans don’t exist :(

    Also, JavaScript…why are you the way you are? Does anyone have advice for learning it so it makes sense? I can’t even get tutorial projects to run properly…

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      17
      ·
      6 months ago

      The mantra that got me through JavaScript was “almost nothing we do here is able to be synchronous”.

      Everything about the language makes more sense, with that context.

    • magic_lobster_party@kbin.run
      link
      fedilink
      arrow-up
      16
      ·
      6 months ago

      I like Douglas Crockford’s talks about the “good parts” of JavaScript. They’re old and probably a bit outdated, but he explain quite well the history and why JavaScript is the way like it is.

      It clicked for me when I saw them the first time. Still hate JavaScript though.

      • wreel@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        9
        ·
        6 months ago

        What Crockford did was enable a lot of devs to realize there was a viable development platform built into the most prolific and open network client in the world. For that he should be commended but it should have never been taken as “this is a viable general purpose language”.

        • magic_lobster_party@kbin.run
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          He also showed that JavaScript has more resemblance to functional programming languages rather than object oriented ones. If you try to treat it as an object oriented language like Java (like the seem to imply), you will have a bad time.

          This has changed with TypeScript though.

    • repungnant_canary@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      6 months ago

      Can it even make sense tho? To me JS is an example of a not too good thing that people started too eagerly so now they’re trying to make it make sense.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

      Start simple.

      And that probably requires not going with a tutorial. Because the JS ecosystem scorns at “simple”. Just make some HTML scaffold and use MDN to understand the DOM.