Does PHP Suck?! - The Answer May Surprise You!

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Does PHP SUCK?! Most programmers will tell you it does....but does it?!
    We'll get to the bottom of it in this video today. The answer may just surprise you and change your life forever!
    My PHP Course: codemy.com/php...
    Coupon Code: phpfree
    Get The Course Free: bit.ly/3AYBzbU

Комментарии • 143

  • @Codemycom
    @Codemycom  2 года назад +3

    ▶️ Get The PHP Course For Free ✅ Subscribe To My RUclips Channel:
    bit.ly/3AYBzbU bit.ly/2IGzvOR
    ▶️ See More At: ✅ Join My Facebook Group:
    Codemy.com bit.ly/2GFmOBz
    ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
    Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN

  • @kyouhyung
    @kyouhyung 2 года назад +27

    Ah, the PHP, a language that's officially been dead since 1995 according to the super awesome master basement coder gurus on the Internet.

  • @ivanyosifov2629
    @ivanyosifov2629 2 года назад +67

    “There are only two kinds of languages: the ones people complain about and the ones nobody uses.”
    ― Bjarne Stroustrup

    • @Codemycom
      @Codemycom  2 года назад

      lol

    • @producdevity
      @producdevity Год назад +2

      And then there's php, somehow being both kinds at the same time

    • @ivanyosifov2629
      @ivanyosifov2629 Год назад +1

      @@producdevity so you say nobody is using PHP yet they complain about it! Weird.

    • @MK-dl4qk
      @MK-dl4qk Год назад

      @@producdevity In what world is PHP not used? Literally a quarter of the internet (if not more) uses it.

    • @producdevity
      @producdevity Год назад +1

      @@ivanyosifov2629 yes sir. I complain about it all the time and I don’t use it

  • @Ravekx
    @Ravekx 2 года назад +5

    PHP is the most acessible, easy to learn programming language at all time for web development. You can get rich with that nice tool with almost nothing. People hate PHP, because their favorite language do half of the PHP does, with dozens of line of code. Look for JS for example, they have to change the language(typescript for OOP, frameworks every week, broken package manager) to do half of what PHP does natively.

  • @marksmod
    @marksmod 2 года назад +2

    "Fuck PHP."
    ― Bjarne Stroustrup

  • @Ibraheem_ElAnsari
    @Ibraheem_ElAnsari 2 года назад +5

    Haha This was so fun to watch ! Thank you John, and I agree. A simple website with a landing page is faster to build and host with php than Django for ex, but as it gets bigger Naah

    • @Codemycom
      @Codemycom  2 года назад +4

      Refer back to my story that I owned 6,000 php web sites with hundreds of millions of web pages...size isn't relevant, php handled them all perfectly easily.

  • @TheGroup1
    @TheGroup1 2 года назад +7

    Thank you very much for the free php course even though you worked hard for these videos you still make this course free. Btw is this course free forever (Sorry for bad english)

    • @Codemycom
      @Codemycom  2 года назад +1

      Yes it’s free forever

    • @georgem9686
      @georgem9686 2 года назад

      No.. no.. it’s not

    • @patytrico
      @patytrico 2 года назад

      @@georgem9686 Just check in today it still is free.

  • @Tijan1
    @Tijan1 2 года назад +4

    I love this format, I learned php at school and it is true that we understand it quickly, it is powerful too

  • @abdullahalsaeed8686
    @abdullahalsaeed8686 2 года назад +18

    You are an amazing storyteller 👌🏼

  • @laughingvampire7555
    @laughingvampire7555 Год назад +1

    I discounted PHP when I was a newbie back in 1999 and I had my first experience with PHP. and the main reason why people rejected PHP back then is because it was a template language and is still a template language, just a pathetic copy of ASP2.0.
    after 24 years in programming I still hate PHP as strongly as I hate Java.

  • @laughingvampire7555
    @laughingvampire7555 Год назад

    bullshit argument, because javascript has even less barrier of entry because javascript runs not only in every host provider, javascript runs in every desktop/laptop/smartphone/tablet

  • @DaVyze
    @DaVyze Год назад +1

    I've used many languages over the years for websites. Starting with PHP, trying Python and NodeJS.
    I did quite a bit of PHP myself. Today, I dislike PHP. I had to fix other mistakes, yes.
    But that's not the reason why I dislike it.
    I recently had to write a new software in PHP. I knew that PHP got WAY better. And I used the new advantages.
    It had to fetch and then process some data and present it to the frontend. Work was going at snails pace.
    Not because of my inferior skill. But data processing in PHP was such a hassle.
    In the end, I got frustrated with PHP. So much in fact, I hated going to work.
    I managed to convince my boss that it might be a better idea to write the API in a different language (Go) since it's better at handling the data.
    Endresult? The API in Go was done in a couple of days instead of the weeks I spend with PHP.
    Also: Even with the network delay, the Go/PHP-Hybrid solution was way faster.
    In summary: To say "PHP sucks because 'real programmers' have to clean up after the mess of 'newbs'" isn't correct.
    No sane programmer should fault the language if they can help it.
    But for what it's worth: We maintain WordPress pages. A customer had to update his PHP version. All of a sudden, the page refused to work.
    The reason were 2 (paid aka "Pro") Plugins. They declared a variable as a string and used it as an array. Like:
    $result = "";
    $result[] = "Yea";
    The newer version didn't allow this anymore. I wasn't sure what was worse: The fact that PHP allowed this or the fact that only the paid plugins did this, while the free ones were unaffected.
    A simple
    $result = [];
    was all it needed to fix this.

  • @АскерТахмазов-ж6г
    @АскерТахмазов-ж6г Год назад +1

    Немчинский, я тебя узнал.

  • @smashing_data4292
    @smashing_data4292 3 месяца назад

    My code base after 2 years also sucked. So I refactored the entire project by building out a Model View Framework and almost the entire project is now based on Object Oriented Programming.

  • @Caldaron
    @Caldaron Год назад +1

    short answer: yes

    • @Codemycom
      @Codemycom  Год назад

      guess you didn't watch the video

  • @a1r592
    @a1r592 2 года назад +5

    While it's undeniable that PHP has served a lot of websites, i feel like you're dismissing the criticisms of the language itself. When you look at it in respect to other languages you find that there have been a ton of poor design choices made over the (many) years. There's a reason it's in the top 5 most dreaded languages and it's not just because of interns without coding standards. With PHP 8 it seems like it's finally taking a turn for the better (after ~20 years).

    • @Codemycom
      @Codemycom  2 года назад +1

      Who cares about the criticisms of the language in the past? Are you arguing just to argue?

    • @saintseer8214
      @saintseer8214 Год назад

      if hate php u might like android studio or any other js frameworks. install 1,000,000,000,000 dependencies, hack together unusable libraries, then reinstall npm and force update/remove cuz u realize this dependency ver doesnt work, then yeah u spend 2hrs on a project to start over repeat and rinse, repeat and rinse again and again. install 1billion versions of this gradle and that gradle and u cant write a basic hello world. php has yet to fail me, it may needs improvements but it works

    • @tubeincompetence
      @tubeincompetence Год назад

      @@Codemycom What kind of answer is that? It's not that strange that the history of a language affects how we think of it.
      Can't say I hate the language but it wasn't great. But it was an easy option to get started.
      Maybe it is great nowadays, but that doesn't change memories of the language :)

  • @oogaftw
    @oogaftw 2 года назад +1

    I'm a senior full-stack developer at a large e-commerce agency in the UK and I make very decent money while working fully remotely, building online stores with Magento and Woocommerce.
    There are jobs literally begging to be filled by people who know just enough php, just enough js and are basically compentent with a linux terminal. They pay decently, and offer a fantastic platform to a great career in web development. I should know.

    • @Codemycom
      @Codemycom  2 года назад

      Ha, you didn't watch the video..did you lol

  • @DevlogBill
    @DevlogBill 2 года назад +2

    Thank you Codemy, I appreciate the free course! I had no idea it was possible to create a site quickly with Php! Thank you!

    • @Codemycom
      @Codemycom  2 года назад +1

      Sure thing...to be clear, you don't NEED php to build a quick website...

  • @tarasmavdryk2340
    @tarasmavdryk2340 2 года назад +2

    Ololo xD

  • @aakash.pradhan
    @aakash.pradhan 6 месяцев назад

    Some people hate PHP, some hate JavaScript, others hate C++, Python etc. Then what do they like? These hate videos are just stupid and confusing.

    • @maxk6655
      @maxk6655 Месяц назад +1

      there's 2 types of languages: that everyone hates and that nobody use

    • @aakash.pradhan
      @aakash.pradhan Месяц назад

      @@maxk6655 yes

  • @amigaworkbench720
    @amigaworkbench720 2 года назад +1

    I think that "Bob" also have static website hosting business.

  • @erictheawesomest
    @erictheawesomest Год назад

    I use php to handle my form submissions. I don't like it, but its what runs on the hosting and im cheap, so meh

  • @laughingvampire7555
    @laughingvampire7555 Год назад

    PHP = pretty horrible and pestilent

  • @anthonymcevans8191
    @anthonymcevans8191 2 года назад +1

    Billy can read it, cuz he just wrote it. Ahahaha, that’s me. 2-3 days pass, I don’t touch my code and there’s no comments whatsoever, I’m totally lost.

  • @vardhiro
    @vardhiro 2 года назад +1

    I care, I am using it for big projects

  • @cbbcbb6803
    @cbbcbb6803 Год назад

    Every programming language sucks in one way or another.

  • @dorktales254
    @dorktales254 Год назад

    PHP sucks lmao

  • @TayambaMwanza
    @TayambaMwanza Год назад

    You speak the same as the guy who does crash course astronomy

    • @Codemycom
      @Codemycom  Год назад

      I have no idea what that is

  • @mampiisaotaku
    @mampiisaotaku 2 года назад +2

    Great story. Thanks for the insight

    • @Codemycom
      @Codemycom  2 года назад

      Thanks for watching!

  • @mpciv88
    @mpciv88 Год назад

    I originally learned webdev stuff
    with php. It was the language I was using when things started to click for me and I still remember how excited I was when I learned how to start serving dynamic content.
    What pushed me away was an official tutorial video from laravel about getting started with the framework. I wanted to learn more about REST apis and had a more complex version of an existing app I wanted to build. Had heard really great things about laravel. While trying to get it set up I was missing some of the prerequisites, like using composer and other boilerplate stuff. I was struggling with that and the guy in the video was like “if you’re having trouble at this point, you’re not ready yet.” No resources available about what composer was or what I should learn about to get a framework environment working. At that point I had done a lot with the language itself but had less experience with CLI stuff and had never needed a package manager. Going back to practice more php wouldn’t have helped me there.
    Frustrated with “not being ready” and already aware of the language having a bad reputation, I decided to check out node js and very quickly had a server spun up locally serving an html file. Then found my way to express and learned about routing and handling dynamic endpoints from the many learning resources available for it. I don’t necessarily advocate for node as a backend language because of it’s limitations with performance and how much is abstracted away in 3rd party dependencies, but in my experience it was so much easier to get started for learning more about backend and building rest apis. Great experience for a beginner wanting to level up. Nowadays I’m a big fan of go, also been curious about rust.
    I doubt a lot of people share my experience, but I think the attitude from the laravel learning resources was a turn off for me.

  • @agengo1
    @agengo1 2 года назад

    I am comparing the PHP Zend Engine with Chrome V8 Engine it appears PHP is slow compared to Node JS any reason?

  • @EDC.EveryDayCode
    @EDC.EveryDayCode 2 года назад +1

    That was hilarious!!

  • @neptronix
    @neptronix 11 месяцев назад

    As a PHP developer of 14 years; i've looked at every other programming language on the market and can't give up PHP because of how damn productive you are in it.
    There's huge swaths of conveniences and functionality missing in all these other langs that were adapted for web after the fact, instead of being built for web since day 1 like PHP.

  • @mohab2018
    @mohab2018 Год назад

    I never understood the hate of php

  • @zugdsbtngizudsgbnudsdsoiu
    @zugdsbtngizudsgbnudsdsoiu 2 года назад +9

    I love PHP. Its easy to use, matured, widely supported and scalable.

    • @Twst3628
      @Twst3628 Год назад

      Scalable if done right👍

  • @laughingvampire7555
    @laughingvampire7555 Год назад

    anyone who has coded in PHP should go to jail.

  • @Rudxain
    @Rudxain 2 года назад +7

    I don't know enough PHP, but the only feature I hate (currently) is type juggling, which is just context-based temporary type-coercion.
    Fun fact: Its syntax, and the fact that it has type juggling, resembles shell langs a lot

    • @mrfeynman42
      @mrfeynman42 Год назад +1

      Do you mean dynamic typing?
      If so, php is far from being alone.
      JS and python have it as well, and they are being praised in general
      Also, with each version php advances to strict typing
      You can specify types of class fields, function arguments and what shall it return.
      And it’s done natively, not by some external superset like typescript.

    • @Rudxain
      @Rudxain Год назад

      @@mrfeynman42 Dyn-typing and type-juggling are different things. Python doesn't do it much, but JS `==` does it a lot. PHP TJ takes DT *even further,* that's why I don't like it.
      About the native type system, that's really nice! I wish JS did that too. The closest we got is JSDoc type-annotations plus TS

  • @hakuna_matata_hakuna
    @hakuna_matata_hakuna 2 года назад

    Yeah but my hatred for PHP materialized when this property management place i worked at got a property management system written in PHP and boy was it funny behaving , in JavaScript you don't think twice when you submit a form multiple times without refreshing the browser . Guess who had to reenter stuff because the site needed you to reload the page after every form submission, so as you can see my hatred is valid , maybe don't build web apps with languages that can't run on the browser

    • @Codemycom
      @Codemycom  2 года назад

      Ha! I mean, PHP can do that easily, the people who built that software were just idiots.

  • @patytrico
    @patytrico 2 года назад

    That a lang is easy to use is not excuse to use bad programming habits. If you have good fundation you could make wonders with any language... And not freake out each time there is an update.

  • @Kennethlumor
    @Kennethlumor 2 года назад

    Sir please please and please help me do a video on how to add a search 🔎 systems to the flask app... Please I'm final year student and watch ur video and use it to develop E-learning systems as my project work but can't add search 🔎 systems

    • @Codemycom
      @Codemycom  2 года назад

      Sure thing, though I have videos on querying the database in the playlist already...it's the same thing

  • @creativeminds5222
    @creativeminds5222 2 года назад

    what do you think about laravel?

  • @mohmadhafiz1675
    @mohmadhafiz1675 2 года назад

    so the conclusion is put comments if working in any department for any programming languages

    • @Codemycom
      @Codemycom  2 года назад +1

      Ha, something like that...

  • @ayoubrayanemesbah8845
    @ayoubrayanemesbah8845 2 года назад

    yes

  • @ahmadusmanov5678
    @ahmadusmanov5678 2 года назад

    php 8.1: Am I joke 4 u?

  • @vouneo
    @vouneo Год назад

    I was searching about Laravel and this video was so cool!

  • @laurentreynaud4404
    @laurentreynaud4404 2 года назад

    Excellent!!! 😂😂😂 Now I know that Billy has been in the "business" where I am 😱

  • @labialkosta261
    @labialkosta261 2 года назад

    didn't see you for two weeks hhhhh thanks for uploading

    • @Codemycom
      @Codemycom  2 года назад

      Check the community tab for updates

  • @kotimara8711
    @kotimara8711 2 года назад

    PHP doesn't suck, "most" PHP developers suck.

    • @Codemycom
      @Codemycom  2 года назад +1

      Haha good point

    • @kotimara8711
      @kotimara8711 2 года назад

      @@Codemycom also here in India, the cheapest developers one can hire are PHP developers. Monthly salary of PHP developers can be as low as $350. Once I've got to read codebase of a financing company. The backend was written in PHP and the portal was developed by some cheap developers. After reading a few lines, I wanted to shoot myself 😷
      The lack of good developers is the reason why startups in india switch from PHP to node or django after mvp is validated.

  • @dan23233
    @dan23233 2 года назад

    Laravel is better than any other backend framework.

  • @nathnolt
    @nathnolt Год назад

    The problem with php is that it has a lot of inconsistencies

    • @Codemycom
      @Codemycom  Год назад

      not really...name one.

    • @304nokia
      @304nokia Год назад

      Two different types of errors that are returned and handled separately. You can never be sure you're safe even if you do catch throwable.

  • @ovidioe.cabeza4750
    @ovidioe.cabeza4750 2 года назад

    Thank you John! great gift and amazing yt channel!

    • @Codemycom
      @Codemycom  2 года назад +1

      You are very welcome!

  • @eesakamaldien1917
    @eesakamaldien1917 2 года назад

    This guy is my favourite

  • @DevlogBill
    @DevlogBill 2 года назад

    Hi Codemy, so in order to make your own site the tools you'll need are JavaScript, Php, CSS, HTML and SQL? Or is there anything else I hadn't considered?

    • @Codemycom
      @Codemycom  2 года назад

      It depends entirely on the site you're creating and what you want to do. You need HTML, that's it. If you want it to look nicer, you'll need CSS too. If you want it to have dropdown menus and stuff like that, you'll need Javascript. If you want it to save user data, you'll need some sort of database.

    • @DevlogBill
      @DevlogBill 2 года назад

      @@Codemycom Thank Codemy, after I watched your video and took most of your tutorial. I am now independently using MAMP learning how to integrate HTML, CSS, JavaScript and PHP files. I will return to the last bit of your course after I finish this one project I am working on at the moment, very interesting stuff PHP. I am really enjoying the language. I was strongly under the impression that PHP was a horrible language due to the negative hype. But thanks to your video and some others I am now focused on PHP.
      Also, I noticed everyone from RUclips, Twitter, LinkedIn. Everyone seems to be focused on the MERN stack, very few are working on the LAMP stack. My thoughts are if everyone is learning the MERN stack I will run the other direction. Thank you for this video, it was what changed my focus from the MERN stack to the LAMP stack.
      P.S. haven't checked all your other courses but if by any chance you had a course for Laravel I would love to purchase this course for PHP, thank you.

    • @Codemycom
      @Codemycom  2 года назад +1

      @@DevlogBill Glad you enjoyed it. Sorry, no courses on Laravel, I don't believe in using frameworks for PHP.

    • @DevlogBill
      @DevlogBill 2 года назад

      @@Codemycom I would have loved to just keep it simple using only PHP, but I see lots of jobs asking for Laravel, which is why I am looking for it, thank you once again.

  • @danielalegriasallo5551
    @danielalegriasallo5551 2 года назад

    Pretty interesting video.

  • @DerekStevens
    @DerekStevens 2 года назад

    This was exactly what I needed. Thanks again!

  • @procode6881
    @procode6881 2 года назад

    Much needed great advice!

  • @HugoBecerra
    @HugoBecerra 2 года назад +2

    I´ve seen the very same story for many other programming languages, and everytime the old programmer is blamed for the awful code they left behind and no blame on the language. The langauge has nothing to do with the lack of knowledge or skills of the programmer. Whatever the language doesn´t matter, the fault is on the programmer not the language.
    But everytime PHP is involved always get blamed instead of the programmer... it just has become a meme, and that´s sad...

  • @MatthewKennedyUK
    @MatthewKennedyUK 9 месяцев назад

    Yes.

  • @aditya_asundi
    @aditya_asundi 2 года назад +1

    hi there is a typo in the description
    you say The answer may just *surprises* you and change your life forever!
    but it should be The answer may just *surprise* you and change your life forever!

    • @Codemycom
      @Codemycom  2 года назад +2

      Thanks for the heads up!

  • @vardhiro
    @vardhiro 2 года назад +1

    PHP is good, you can even use hierarchy , or not, and it provides a lot of options, unlike Java, where your code is rigid, and difficult to host.

  • @rakibulhasanasif2120
    @rakibulhasanasif2120 2 года назад +1

    YOU ARE A GREAT INSTRUCTOR. THANKS FOR SHARING YOUR KNOWLEDGE

    • @Codemycom
      @Codemycom  2 года назад +1

      Thanks for watching!

  • @Louisianish
    @Louisianish Год назад

    1. Did Billy leave his internship before it was over? Because I wouldn’t want to hire him if he’s willing to leave a job before the contract is over.
    2. Did Bob not take a look at Billy’s code when the entire company was raving about how effing badass Billy apparently was?? It can’t be Bob didn’t hear about this supposed "prodigy" intern programmer and say "Hey, I should probably check out this kid’s code and possibly get him on my team."

    • @Codemycom
      @Codemycom  Год назад +1

      Yeah none of that is how things work in the real world. Bob is busy doing his job. And internships aren't contractual. You entirely miss the point to nitpick irrelevancies.

  • @jasper2virtual
    @jasper2virtual 2 года назад

    PHP is not suck. I can say it's The Best.
    It's survive since 1990s. It replaced cgi server side programming. It used by many big and small projects. It keeps actively evolving today. If It's suck then why you use it!?
    I think the main reason people hate is .
    👍PHP is too good and production proven
    👍Also too easy to learn
    👎So too much PHP developers around, the salary pay then too low.
    People not hating PHP actually. They hate themselves that why i got such a low paid 😅

    • @producdevity
      @producdevity Год назад +1

      No, and that's where you are wrong. PHP is too easy to get STARTED with and build shit. Building software and understanding software is not the same thing, trust me on this one. and you're not getting a low paying job because other php devs hate themself, who are you kidding?

  • @iqm1957
    @iqm1957 2 года назад

    nobody uses plain php nowdays try learning laravel symfony and come back again and make video again

  • @MiguelVallejoPwnz
    @MiguelVallejoPwnz 2 года назад

    Take it from someone using it for over 20 years(since PHP3). I can do ANYTHING with PHP on a Linux/Unix box. Like with any language, you have fanboys who are going to hate, in general, the argument from self-absorbed non-binary bald biker-looking h@ckers with pink goatees is always syntax... whatever that means. PHP is a great language, better than using server-side languages that expose your code like nodeJS/(JS). The other argument is always security, specifically, SQL injection, which any experienced programmer will tell can happen in any language server-side language with poor security/sanitation practices aka U-S-E-R error. This was for the most part resolved with PDO and bindings. Using Frameworks is lazy programming, learn to build your own for security, imagine a bank vault that open-sourced its vault design... daf. Thanks for the video, PHP does not suck w00t! #php #php4life

  • @IvanChepanovvankata87
    @IvanChepanovvankata87 Год назад

    PHP have quite well structured frameworks and codings standards, performance has been drastically improved with version 7 and 8 and benchmarks show it even surpasses Java, Node.js and Python for requests per second, it has a lot and very flexible and powerfull features, it's easy to write, for a lot of things it takes a minimal amount of code to achieve something while in other languages you have to write tons of code for the same things. It has all OOP features and types like any other language. It has hundreds of tons of information, materials and tutorials, you can never get lost in PHP. If it gives you freedom to write bad code, doesn't mean you have to do it . I don't agree that PHP sucks. If you suck at PHP you would suck at any other language as the principles are pretty much the same. It's always the developer who sucks not the language .

    • @laughingvampire7555
      @laughingvampire7555 Год назад

      spoken like a true ignorant. PHP sucks, its own creator acknowledges that it sucks and it is a shame he created and he has apologizes in every conference I have listen him talk for doing it.
      PHP sucks because is full of people like, idiots who have no idea how to code that make spaghetti code all the time.
      "If it gives you freedom to write bad code, doesn't mean you have to do it" 🤦🤦the problem is that this is the 99% of PHP code out there, even the creator says it, he said that with PHP7 he tried to correct it by making it more efficient for good code and motivate people to write good code but no one did it because 99.99% of PHP developers find their intelligence and skills outside of software development. So the creator gave up and then for PHP8 optimize it for bad code.
      So even if today you think you are one of the good programmers in PHP and you know how to use frameworks and OOP well the joke is on you.
      PHP syntax is horrible, excessive verbose and stupid, PHP is equally stupid to Java and that is why both languages are so popular. Even PERL is better than PHP