• dan@upvote.au
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      9 months ago

      That article is over a decade old. A lot of these issues aren’t relevant any more or have been fixed. Some weren’t even PHP issues, for example mysql_real_escape_string is a MySQL API (https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html).

      PHP isn’t the best language, but it’s not as bad as some people claim it to be, especially if you use a good framework like Laravel.

      • xor
        link
        fedilink
        arrow-up
        1
        arrow-down
        7
        ·
        9 months ago

        lol, no… it sucks
        trust me, if you’ve already gotten used to php, you’re smart enough to learn a better language.
        really just use node if you’re going that sorta route…

        • dan@upvote.au
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          JavaScript has a lot of the same issues as PHP. It doesn’t have some of the same core library issues because it doesn’t have a good core library.

          • xor
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            oh and, adding a library isn’t very hard

            • dan@upvote.au
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              9 months ago

              Adding a third-party library in PHP is just as easy. The composer.json file looks very similar to a package.json.

              • xor
                link
                fedilink
                arrow-up
                1
                ·
                9 months ago

                i was responding to your comment about js not have a good core library…
                php having libraries is completely moot

          • xor
            link
            fedilink
            arrow-up
            1
            ·
            9 months ago

            ECMA 6 has had drastic improvements over the past js…
            however node is still infinitely better than php, and since javascript is inexorably a part of web development, it’s a lot more logical to use it on the backend too…

            i don’t mean that node is great, i mean that it’s an easy transition from php, a billion times better, and much more modern and useful… so a very natural transition…

            • dan@upvote.au
              link
              fedilink
              arrow-up
              2
              arrow-down
              1
              ·
              edit-2
              9 months ago

              ECMA 6 has had drastic improvements over the past js…

              Sure, but it still lacks basic built-in features. For example, why do maps and sets not have sort or filter methods? In Node, why is there no built-in way to connect to a database of any sort? Why can Node.js apps only use a single time zone? Requiring libraries for everything is not ideal as the libraries vary wildly in quality and they can end up either abandoned or containing malware (which has happened several times in the Node ecosystem).

              still infinitely better than php

              They each have their pros and cons, depending on use case. Node.js does some things better than PHP, but the opposite is true too.

              • You can build a whole PHP website without using any third-party libraries, and it’ll work on any web host that supports PHP (literally any good web host that exists today). There’s value in having that level of flexibility.
              • You can build a PHP site today and it’ll mostly still be working (maybe with some minor changes) in 5 years, whereas for some of my Node.js sites I have to switch to an older version of Node just to build them. For example https://obviousspoilers.com/ has been practically untouched since 2009.
              • The fact that PHP can run multiple apps in the same FPM process means that you can run thousands of sites on a single server without issues. There’s some non-Node solutions to this (like Cloudflare workers) but they’re mostly proprietary at the moment.
              • There are more PHP than Node.js jobs, and far more sites use PHP. Wordpress uses PHP and powers over 40% of the web, so that means that at least 40% of all websites use PHP.
              • xor
                link
                fedilink
                arrow-up
                1
                arrow-down
                2
                ·
                9 months ago

                wordpress does not power 40% of the web…
                im not going to argue any more than that because this is a humorous type community, and ya’ll are getting too serious.

                i hope you enjoy all of your “programming” with your garbage little “language” and POS word🤢press🤮

                p.s. notice how everyone who argues in favor of php and wordpress ONLY know that language and framework?
                what a curious thing…

                • dan@upvote.au
                  link
                  fedilink
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  edit-2
                  9 months ago

                  i hope you enjoy all of your “programming” with your garbage little “language” and POS word🤢press🤮

                  p.s. notice how everyone who argues in favor of php and wordpress ONLY know that language and framework?

                  lol I don’t use PHP any more… I primarily use C#. I can still see the advantages of PHP without it being a language I use day-to-day.

                  wordpress does not power 40% of the web…

                  Do you have any data that proves otherwise? Because all available data I’ve seen disagrees with you.

                  https://wordpress.org/40-percent-of-web/

                  https://w3techs.com/technologies/details/cm-wordpress

                  It’s not just small sites. A bunch of major publications use WordPress too. Forbes and TechCrunch both use WordPress for example.

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      9 months ago

      That is literally a decade old article with basically 1 complaint that sometimes functions are strpos() and sometimes str_len(). Anything else it’s saying is “I don’t even know how to say it”. Really now? Any of your complaints have been fixed since about a decade ago, so why don’t you give it a try?

      • xor
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        9 months ago

        lol, no…
        also this is a joke sub so stop trying to sea lion me about it.
        also your “summation” of the article is pretty stupid