No offence

  • lowleveldata@programming.dev
    link
    fedilink
    arrow-up
    28
    arrow-down
    3
    ·
    2 years ago

    ah yes programming languages are jokes themselves, and not the programmers using the wrong tools for the wrong job

    • Kryomaani@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      9
      ·
      2 years ago

      While true, there are some languages that are the wrong tool for every job. JS is one of them. I’ve dreamt of a future where web frontends switched to something sane but instead we got stuff like typescript which is like trying to erect steel beams in quicksand. For web frontends I can understand that historical reasons have lead to this but whoever came up with node thinking JS would be a great backend language has a lot of explaining to do.

      • lorgo_numputz@beehaw.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        I’ve commented to my cow-orkers that “Typescript is the bag they put over Javascript’s face so you don’t have to look at it anymore.”

      • ParsnipWitch@feddit.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        I am also interested if anyone can tell me the exact time in our history when JavaScript turned from “Don’t you ever use that anywhere on your websites!” into “It’s basically every website”.

        • abraxas@lemmy.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          It was when better sandboxing came out and the only valid complaints about javascript became invalid.

          I was there. It was a good time.

    • pazukaza@lemmy.ml
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      2 years ago

      Come on, Javascript is pretty nasty. Trying to read that shit always gives me brain tumors. Why do they need to wrap every fucking thing in a function inside a function inside a function that is passed as a parameter to a function inside another function?

      Like, bro, you know people are meant to understand what you just wrote?

      It just gives too much freedom and people forget they need to write code that is easy to read for people who aren’t totally familiar with the code base.

      They even bring that shit into typescript. Like they are already using a language that is meant to fix that shit and they are like, nope, let me create 5 nested functions just because.

      • NotSteve_@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 years ago

        Can you give an example of the multi nested functions? I was a TS dev for a while and don’t remember anything like that. Unless you mean the promise callback functions. Those were a mess but luckily we’ve mostly moved away from those

        • pazukaza@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          People creating functions as objects inside of other functions. A few days ago saw a person create a function with two object functions inside, then passed one of the functions as an argument to the other function. Then returned the second function.

          It’s hard to find such a mess in other languages. Yeha, functions as objects are cool. Closures are also cool… But why abuse that shit?

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

            Ahh I remember that sort of JS programming from way back. Do people still do that?? You can just create a class now

    • Redrum714@lemm.ee
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      2 years ago

      Glad C++ will be the one step on it cause it deserves it. I’d take PHP over that shit any day

      • vrighter@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        it is a horribly slow, ugly language, with the most braindead scoping rules (apart from js, of course). The only fast parts of it are libraries written in other languages, because python itself is not up to the task for anything more than glueing code from other, better languages together.

    • maltroth@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      It’s an easily accessible language, I started to learn with JavaScript as well. Easy to teach the basics.

  • Rooki@lemmy.ml
    link
    fedilink
    arrow-up
    8
    arrow-down
    20
    ·
    2 years ago

    Python is rather the clown. As it is more Scratch than a programming language

      • Valmond@lemmy.ml
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        2 years ago

        He mixed up spaces and tabs, threw the keyboard out the window.

        Python is nice.

      • masterspace@lemmy.ca
        link
        fedilink
        arrow-up
        3
        arrow-down
        3
        ·
        edit-2
        2 years ago

        One of us has spent the last three months trying to help their client untangle their massive python monolith that makes all their in house engineers quit.

        Python is a good language for writing a data processing script, not for building a large piece of software.

        • Solumbran@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Python is an overall robust language that allows you to do basically whatever you want, and does it pretty well. You can even use C extensions if you want to get peak performance.

          The two domains that I believe Python cannot easily work with, are IoT where the interpreter would be a bit too cumbersome for a low-power system, and web programming, where it would still underperform Javascript and Webassembly (even though I am guessing that with a better webassembly support of the browsers, it would be possible to reach a rather efficient interpreter in-browser that would at least reach performances similar to javascript, if not better. And even if slower, the better syntax and lack of absurd rules would be a clear advantage on JavaScript).

          • abraxas@lemmy.ml
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            even though I am guessing that with a better webassembly support of the browsers

            Considering V8 overcame python in benchmarks nearly a decade ago, I’m not sure even some miraculous webassembly environment would put python faster than javascript in the browser of all places.

            V8 does not quite compete with the big guns in the space (C, Rust, Go), but now that it’s only 2-4x slower than C++, it’s created this niche of “almost hardcore fast” for javascript that is just unlikely to be dethroned any time soon.

            People fail to quite get how many leaps and bounds V8 has taken in the last 10-12 years. Javascript’s reputation of being “scripting language slow” is simply no longer the case and hasn’t been for an entire Era in software terms. Reasonably-written Javascript is now often faster than heavily-tuned Python, and well-written javascript is faster than reasonably-written C++. It’s not necessarily fair (like comparing modern solar to nuclear, with the absurd amount of money that’s gone into solar research), but I don’t see it changing any time soon.

          • masterspace@lemmy.ca
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            2 years ago

            better syntax

            Lol I was listening and intently considering what you had to say until this 
              point.
            
              • masterspace@lemmy.ca
                link
                fedilink
                arrow-up
                2
                arrow-down
                1
                ·
                edit-2
                2 years ago

                Is it perfect? No. Is it inherently better than a language that mistakenly thinks that whitespace is more readable than braces? Yes.

                White space delimiting is awful and near impossible to scan in yaml config files, let alone a real programming language.

    • darcy@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      arrow-down
      4
      ·
      2 years ago

      dont listen to them my friend. python sucks. the only reason to use it is the libraries. otherwise use lua if you want a similar scripting language that doesnt care if you forget a space key

      • Solumbran@lemmy.world
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        2 years ago

        “Use lua if you want a language that allows you to code in a crappy way” is a good argument

        • darcy@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          2 years ago

          sure, but for small simple things (eg. something otherwise done in shell scripting), it is convenient and very simple, with consistent syntax. dont get me wrong: i love compiled languages