Why Everyone Hates PHP (and why you should too)

Поділитися
Вставка
  • Опубліковано 2 жов 2024
  • I tell you why everyone hates php and why you should too...
    I'll Help You Make Your Portfolio!: www.enhancecod...
    Contact me here: mehowtobuisness@gmail.com
    VO by Jesse Galena
    //Videos I used:
    • you need to learn BASH... - NetworkChuck
    • PHP will make you poor... - Fireship
    • Laravel in 100 Seconds - Fireship
    This vid might include..
    Your ultimate destination for coding enthusiasts and self-improvement seekers! Whether you're delving into the world of programming or striving for personal growth, EnhanceCode is here to guide you. Join us on a transformative journey as we explore JavaScript, C++, Python, web development, game development, website hosting, and video editing. Discover the best habits to optimize your coding skills and habits and propel your self-improvement journey. Stay ahead of the curve with business ideas to make money online in 2023 and 2024, and gain valuable insights from industry experts like Alex Hormozi and Iman Gadzhi. From how-to tutorials on learning coding for beginners to exploring lucrative side hustles, EnhanceCode is your one-stop resource for everything coding, programming, and self-improvement. Subscribe now to elevate your skills, enhance your coding capabilities with good coding habits, and embark on a fulfilling journey toward success where you might understand if you should learn php and if the programming language is dead in 2024 and the comparaison between php and javascript while php is hated!
    //RELATED VIDEOS
    • How I Would Learn To C... / How I Would Learn To Code (If I Could Start Over) / Namanh Kapur
    • How To Learn Programmi... / How To Learn Programming for BEGINNERS! (2022/2023) / CroatCode
    • This Is How To Make Pa... / This Is How To Make Passive Income In 2023 / Iman Gadzhi
    • How I'd Learn Web Deve... / How I'd Learn Web Development (If I Could Start Over) / Dylan Cole

КОМЕНТАРІ • 371

  • @Maxsword3
    @Maxsword3 8 місяців тому +41

    Loved contributing to the video! Keep it up

    • @eulmdev
      @eulmdev 4 місяці тому

      underrated yter go brr
      this man should have more subs

  • @gonzo191
    @gonzo191 4 місяці тому +105

    Conclusion of the video: Skill Issue!

    • @thefreshprince-t4m
      @thefreshprince-t4m Місяць тому

      These days you can take a scrambled egg looking code, and with the help of AI, you may refine that code into a more legible piece of code for the program to run.

    • @thefreshprince-t4m
      @thefreshprince-t4m Місяць тому

      I love php, php is so cool.

  • @eptic-c
    @eptic-c 8 місяців тому +420

    Saying that php code is not readable because you write your logic in a php file that contains both logic and presentational layer is the same as writing your javascript on the event handlers of html elements. ( like onclick="" )

    • @RealDevastatia
      @RealDevastatia 8 місяців тому

      Right? I guess addEventListener is too hard for some people.

    • @sven_527
      @sven_527 8 місяців тому +8

      It's still terrible without that.

    • @ob34915
      @ob34915 8 місяців тому +44

      You should see nextjs with react server component you can write sql query in react its basically php early days.

    • @trashhater9304
      @trashhater9304 5 місяців тому

      ​@@ob34915please, this is innovation, future of programming, not some crappy blue elephant code from early 00s.

    • @Leonhart_93
      @Leonhart_93 4 місяці тому +13

      Yeah, 98% of the PHP code I write is hundreds and thousands of lines in controllers, services and repositories. Very little in views.

  • @ripplesr5655
    @ripplesr5655 4 місяці тому +138

    Just so you know, the entire web development kind of cycled back to the good old PHP way of doing things. PHP is an incredible language.

  • @dgxo
    @dgxo 4 місяці тому +77

    “and as you can see”, shows the code for half a second while scrolling randomly so nothing is visible, “this code is hard to read”

    • @COArSe_D1RTxxx
      @COArSe_D1RTxxx 4 місяці тому

      if you pause, the code isn't even hard to read lol

    • @novac1
      @novac1 Місяць тому

      true

  • @MrRaitiz
    @MrRaitiz 8 місяців тому +86

    What an awful conclusion ahahaha.
    Then you have Theo from t3 who hates CORS, because the fkin JS backend framework (Next.js) does not handle the simple flow of CORS elegantly. While PHP frameworks have this functionality built in. PHP frameworks are so much more mature than ANYTHING on the JS side for backend.

  • @VectorM
    @VectorM 8 місяців тому +192

    Php is awesome 💯🔥

  • @supersambat7989
    @supersambat7989 4 місяці тому +28

    they can say anything to PHP, but with PHP I made living

  • @happykc79
    @happykc79 5 місяців тому +114

    php hater means that they are newbies. PHP is a language you must know if you are a web developer. Almost 80% of websites online are built with php.

    • @KX36
      @KX36 4 місяці тому +6

      20 years ago, you would be right.

    • @jf3518
      @jf3518 4 місяці тому +10

      @@KX36 he i still correct. Most websites use Wordpress, which runs on PHP.

    • @TheThirdWorldCitizen
      @TheThirdWorldCitizen 4 місяці тому +4

      Almost all forums and CMS use PHP, it’s still a very popular language for the web.

    • @pangzlab
      @pangzlab 4 місяці тому +3

      PHP is the grandfather of CMS.

    • @_____1826
      @_____1826 3 місяці тому

      ​@@KX36 have you check it twice????

  • @JustKatoh
    @JustKatoh 8 місяців тому +146

    I really don't think a language made of a thing should be hated.
    Everyone hates php because they do not use it properly, it's actually one of the most efficient languages out there, as long as it's 7.4+
    Why don't people hate on python? It's unironically slower than php, much slower, but people still write whole stacks in Flask, why? It's a language made for cobbling shit together so that you can test it quickly and prototype not put up in production...
    Idiots keep complaining about php when they're using php lower than 7 and try and make stupid stuff such as games in it.
    Idiots love python, even though it's slower than php and use it in production??
    What has this world come to? I have 10 years experience in php, java and in the last few years golang... and the only people that like python and hate on php are complete beginners or do programming as a job only and have no passion for it.

    • @edu_z123
      @edu_z123 8 місяців тому +28

      and there's the thing that they always compare vanilla PHP with frameworks, e.g flask,spring....
      apples to oranges

    • @minhnhatnguyen8200
      @minhnhatnguyen8200 8 місяців тому +4

      yeah I hate python , it's syntax overly brief

    • @asdfghyter
      @asdfghyter 8 місяців тому +3

      i don't get what you mean with "made of a thing"?
      i would rather say that i hate it because it _encourages_ people to not use it properly. it is filled to the brim with footguns, which you just need to learn to avoid if you don't want to shoot yourself in the foot. one of my favorite "features" is the implementation of references in combination with silly scoping rules, which makes this snippet:
      $a = array('a', 'b', 'c', 'd');
      foreach ($a as &$v) { }
      foreach ($a as $v) { }
      print_r($a);
      give the intuitive answer: a, b, c, c
      we ran into this issue at my previous job and had an issue in production that went unnoticed for over a month where the last item on a piece of user data was replaced by the second to last item 😅
      this also reminds me of the frankly insane decision to not differentiate between ordinary arrays and hashmaps, which is just generally confusing and can also lead to some strange bugs
      yes, python can be bad in many ways, but it doesn't have nearly as many footguns as php does

    • @asdfghyter
      @asdfghyter 8 місяців тому +1

      @yestechguy-fj9tm at least ts actually has a proper type system. php’s doc-comment types can’t even do proper generics

    • @MrSMGun
      @MrSMGun 5 місяців тому

      ​@@asdfghyterelaborate

  • @lucasvillani5484
    @lucasvillani5484 4 місяці тому +9

    PHP has a function for almost everything, is such a mature language

  • @n4botz
    @n4botz 8 місяців тому +34

    PHP is not really or no longer terrible if you stick to the latest versions. And this is said by someone who, over two decades ago, wanted nothing to do with programming at all.
    Plot twist: The same guy, me, now earns his living as a full-stack dev. 🤷‍♂A bit like the Cookie Monster from Sesame Street: languages, languages, more languages please.
    But yes, PHP, like any other language, can be terrible if you only have a rudimentary understanding of it. Nonetheless, an entertaining video and a like from me.

    • @EnhanceCode
      @EnhanceCode  8 місяців тому +3

      Thank you, brother for your constructive comment. I appreciate that you caught onto the humor in the video. I acknowledge that the language used might be a bit strong, but I made a conscious effort to discuss Laravel and its positive aspects in specific situations.

  • @iVirtuall
    @iVirtuall 8 місяців тому +39

    this man told a lie in the first sentence y'all haters

  • @hellodefhellow
    @hellodefhellow 6 місяців тому +45

    Lol im tired of javascript dependencies so might switch to something like php or rails

  • @ExtraNullByte
    @ExtraNullByte 8 місяців тому +18

    I can get so much done with 10 lines of php code that other languages can only dream of, no compile, no hastle, no binary, just works.
    does it have downsides? yes, debugging is one of those, but devs debug in prod, so it's all good. Jokes aside, PHP has its downfalls but it doesn't make it any less of a language compared to others, real programmers see it as another tool to get the job done and we pick tools best of the job and sometimes it's PHP. People that hate the language are script kiddies that don't know how to use it, slapping it in HTML and then finding it confusing and then end up hating it, if you have time to complain about a language then you are not doing your job correctly =D

  • @meme_me
    @meme_me 4 місяці тому +12

    bro are you living in 2012 ? also who uses Native PHP for full-stack like the example you showed well unless its for a simple small project

  • @DEBUGENTITY
    @DEBUGENTITY 5 місяців тому +12

    PHP is the best.. Even next js now using php type routing

  • @motivar.e.sucesso
    @motivar.e.sucesso 7 місяців тому +17

    A language is just a tool. If you can solve problems with it, than it's good. There's no sense to me in loving or hating a programming language. It's like "I love my hammer, but I hate my screwdriver"

    • @kieronwiltshire1701
      @kieronwiltshire1701 4 місяці тому +1

      I can't re-use your analogy, but when you have two languages, one with much better performance and achieves the same results, why would you opt to choose a less performant one? Not to mention something like NestJS/Typescript/JS/NPM has a much larger eco-system and community than PHP nowadays.

    • @DoctorMGL
      @DoctorMGL 4 місяці тому

      ​@@kieronwiltshire1701
      here come the lazy glue engineer, the guy who glue " javascript libraries " together and call himself a programmer LMAO
      I ship 3 php projects by the time you struggle to solve your npm dependency nightmare to get some library working that should exist in the default language. and your not even the person who create those libraries , using other people sweat .
      get better glue engineer . there still hope for you .
      PHP is only as good as the developer.
      If you think it sucks, it's a (( skill issue )).

  • @oRhstore-cl8wc
    @oRhstore-cl8wc 8 місяців тому +17

    nobody coding in php like you showed, noob. php now more better in backend than python or nodejs. It has much feature like java or c# and fast, fastest than python or js. php8.3 is great for your projects and close 99% working needs. So, your opinion is to low

    • @harshitraheja
      @harshitraheja 8 місяців тому

      these gays don't know how to code

    • @iVirtuall
      @iVirtuall 8 місяців тому +1

      based comment

    • @arjix8738
      @arjix8738 8 місяців тому +1

      Please improve your English sir.
      Although I'd like to agree, (I've even made a similar comment), but PHP is not better than nodejs for backend.
      It may be easier, but that doesn't make it better.

    • @dawidgrden2227
      @dawidgrden2227 8 місяців тому

      The only thing that php lacks is async, there is an async framework called PHPswole but I don't know it's reliability, although if php 9 integrates async it will be nuts and everyone will start using laravel or symphony

    • @tanzimibthesam5861
      @tanzimibthesam5861 8 місяців тому

      @@dawidgrden2227 there is reactphp Xframework

  • @JAUSCR
    @JAUSCR 4 місяці тому +4

    more than 70% of all internet. PHP the King!

  • @Ed.E
    @Ed.E 8 місяців тому +11

    PHP is goated when you use it right frfr. It's suprisingly powerful

  • @LarryGarfieldCrell
    @LarryGarfieldCrell 26 днів тому +2

    If you write a big pile of mixed HTML and PHP like that, it's obvious you're not a PHP programmer. Seriously, no one even remotely competent does that anymore, and hasn't for 20 years. You may as well write a C++ program using 100% global variables and then whine that C++ has poor state management. It would be about as meaningful and accurate of a statement.

  • @AnuragMohan-y6i
    @AnuragMohan-y6i 2 місяці тому +1

    Having worked as a PHP developer for more than seven years, I believe that PHP is an outstanding language at present.

  • @RicardoSilva-hk2er
    @RicardoSilva-hk2er 8 місяців тому +8

    I just have something to say: "No longer deprecated"

  • @chrisalexthomas
    @chrisalexthomas 8 місяців тому +5

    Everything in this video comes down to two words "skill issue". Shit programmers are gonna write shit code ¯\_(ツ)_/¯

  • @Code_Capital
    @Code_Capital 8 місяців тому +25

    All my homies love PHP (we only write code via Artisan commands)

    • @sirjaf2010
      @sirjaf2010 8 місяців тому +1

      From what you wrote, you don't have a clue of how PHP works. Educate yourself first.

    • @Code_Capital
      @Code_Capital 8 місяців тому +19

      @@sirjaf2010 From what you wrote, you have no sense of humour whatsoever. Respectfully, a full-time PHP developer.

    • @purplevanilla
      @purplevanilla 8 місяців тому

      @@Code_Capital bro really made him taste his own medicine

    • @xldplx
      @xldplx 4 місяці тому

      @@Code_Capital lmaooooooo

    • @mosti72
      @mosti72 4 місяці тому

      Love Tinker ngl

  • @arjix8738
    @arjix8738 8 місяців тому +26

    Ok, lets be honest here, PHP 8.1 and above is great, i got no complaints there
    But when most websites written in it use PHP 7.3 and below, or even PHP 5, things start to get hard.
    Also, you dont need laravel to make easy to read/maintain + dynamic code for a website, you just need experience in PHP, just like with any language, you need experience if you want to skip the use of any library.

    • @someverycool4552
      @someverycool4552 8 місяців тому +3

      Even with experience though, consider how much value Laravel and things built on top of it add on.
      I would say that about NodeJS frameworks, that they are a real cluster*uck, but Laravel is invaluable in terms of what it provides out of the box. Database migrations, auth, simple auth views, task scheduling etc, etc.
      There's no framework for NodeJS that is as of high quality as Laravel is. And I would say that Laravel is highest quality of all frameworks for all languages. E.g. Laravel > Django and definitely above anything that is for Java and others.
      NodeJS things just get outdated too quickly and don't seem to have that level of care, and it's like they have no idea what they are doing so running back and forth between different paradigms.
      But your point was that you can still write maintainable code without Laravel, which I agree with, so my tangent is probably not against what you actually wanted to say.

    • @fayenotfaye
      @fayenotfaye 8 місяців тому +2

      Anyone who says it’s hard to understand kinda has a skill issue, there’s barely any abstraction and everything kinda just does what it says

    • @arjix8738
      @arjix8738 8 місяців тому

      @@someverycool4552 I haven't had the chance to use Laravel myself, I got into PHP because I had to make wordpress plugins for the company I work for
      And I had to write entire backends with WordPress' REST API extensibility.
      I had to write data validation, data parsing and some other stuff from scratch. (not recommended)
      All that in PHP 7.1 which doesn't have strict type checking.
      After a year we finally migrated to PHP 8.1 and it felt so good that I could finally enforce types.

    • @RealDevastatia
      @RealDevastatia 8 місяців тому +2

      @@fayenotfaye Yep. I still use only native PHP and JavaScript with no frameworks. Still using PHP 7.4 too. Never had an issue with it. I saw bugs in early PHP 8 releases that made me back out of it. I want to get things done, not work around issues somebody else created.

    • @commandstring
      @commandstring 8 місяців тому

      Exactly this. 8.0+ is amazing. But once I see the version dip below 7.4, I begin to worry for my sanity.

  • @Leonhart_93
    @Leonhart_93 4 місяці тому +6

    Oh really? Then why is PHP8 + Laravel thriving right now? An excellent language for web servers while also not lacking anything specifically. I never had any issue implementing any kind of logic in it.

  • @VitorZonho
    @VitorZonho 4 місяці тому +5

    Oh no, give me a bicycle with training wheels, with a helmet, elbow pads and a track made out of a pillow so I don't get hurt when I fall, all because I don't know how to pedal properly and I need devices to stop me from messing up. Please php is very bad because it allows you to create jerry-rig improvisation code, I don't like this I'm going to cry, mom, give me an IDE that will let me know I'm doing it right!! I want warnings please warnings

  • @entx8491
    @entx8491 3 місяці тому +2

    When I want to watch something really dumb I watch this video.

  • @hamzameski3297
    @hamzameski3297 3 місяці тому +2

    Man Are you sure! You are a programmer? Form template and code logic at the same file. Wtf

    • @komrander7497
      @komrander7497 27 днів тому

      he doesnt even know how to use a join in sql apparenlty 😭

  • @bdenix1997
    @bdenix1997 4 місяці тому +4

    back then like 2008 or so youtube and facebook all had .php on the url so i thought php was the ultimate language for websites :D

    • @abhishekbhagat9313
      @abhishekbhagat9313 4 місяці тому +2

      Facebook still has it they just have their own version of it.

    • @mosti72
      @mosti72 4 місяці тому +2

      People hide it nowadays, especially if you use a framework like Laravel

  • @Abdullah-zd5rz
    @Abdullah-zd5rz Місяць тому +1

    Things made me love PHP:
    1- Easy to understand
    2- Huge community helps you in any problem
    3-Easy to install and free to use
    4- No fkin CORS problems with node.js
    5-Jobs on demand locally and internationally

  • @fcnealvillangca7943
    @fcnealvillangca7943 6 місяців тому +4

    The hate for php feels more like trolling sensitive dev nothing to do with php itself

    • @DoctorMGL
      @DoctorMGL 4 місяці тому

      i'll tell you why they hate it ,
      php haters are a lazy ( glue engineers ) , we give them this name because they don't actually ( program ) .
      they glue " javascript libraries " together and call themselves " programmers " LMAO
      PHP is only as good as the developer.
      If they think it sucks, it's a (( skill issue )).

  • @andyhinkle
    @andyhinkle 4 місяці тому +2

    This video is clearly done by someone who hasn't used PHP in 10 years.

  • @randrianantenainanambinint9686
    @randrianantenainanambinint9686 2 місяці тому +1

    This is the worst UA-cam channel about tech that I have come across. He just enjoys speaking poorly about the language without really knowing its capabilities. Moreover, he doesn't have any concrete conclusions. Pfff.

  • @vcc_pdr
    @vcc_pdr 4 місяці тому +1

    Wow! The amount of wrong, or better said stupid, in this video is truly mesmerizing. Blaming the language for incompetent developers stuck in 2012, or saying that JS is better... fascinating! It looks like video representation of some bad article written at least a decade ago.
    If someone wants to see modern PHP: ua-cam.com/video/ZRV3pBuPxEQ/v-deo.html And no; Laravel is not a good framework. It is good for beginners, but the big guy is Symfony. Plenty of examples of Laravel apps moved to Symfony, but very few (or none) vice versa.

  • @DinoCrys
    @DinoCrys 4 місяці тому +1

    I think this guy need to get a real job and get experience.. or back to school.. maybe some courses...
    Like wtf... next video will be how assembler for x86 is bad, linux bad, android bad?
    Learn more about the topic and don't get some random unknown guy from upwork or fiverr as example.
    Hope no one will use your services for now as you obviously don't know your stuff. Not about php, not about other languages and programming in general. Will just damage the person trying to learn!

  • @dvanwyk9187
    @dvanwyk9187 4 місяці тому +1

    I have worked with PHP professionally for around 16 years. It looks like you know little to nothing about PHP since your generic arguments are based on what junior devs would have done in PHP 4 over 20 years ago. PHP 8 is better than a lot of modern programming languages in 2024.

  • @aaronza7218
    @aaronza7218 5 місяців тому +2

    The language that many years ago and to this day many are saying it is dead. But still kicking. Why is PHP so popular?

  • @christophergruendell8089
    @christophergruendell8089 8 місяців тому +3

    It just sounds like you’re bad at php. I learned a bit about php my first couple years of college, and it definitely gets too much hate. All the tools and techniques to make your code easy to read, maintainable, and secure are there. I’m graduated now and work with many languages, but php will always be held in good regard in my opinion.

  • @MrAndreaGero
    @MrAndreaGero 4 місяці тому +1

    I just use PHP because of Laravel, if the creators of Laravel move to another language, I'll probably follow them

  • @work-yh5sw
    @work-yh5sw 8 місяців тому +5

    love from indai🥰

  • @joeyboli
    @joeyboli 4 місяці тому +4

    1:28 why use a js screenshot ?

  • @zayne-sarutobi
    @zayne-sarutobi 8 місяців тому +2

    Never laughed this hard at programming humour since Fireship!😂😂
    Definitely here before this channel blows up🌝

  • @Bchicken2
    @Bchicken2 4 місяці тому +1

    Conclusion. Don't learn PHP, learn Laravel :D

  • @Flinsch77
    @Flinsch77 4 місяці тому +1

    When I talk to other people about programming languages, it's actually only the less experienced who complain about certain programming languages ​​(e.g. PHP). Experienced programmers rarely do that. Everyone has their preferences and aversions, of course, but with PHP in particular, I feel like it's mostly just "copycats" who criticize it. May I ask, how experienced are you with (different) programming languages ​​and software development in general, video creator?

  • @piadas804
    @piadas804 4 дні тому

    Companies are not looking for PHP developers? What?

  • @orcofnbu
    @orcofnbu 8 місяців тому +8

    most of php haters, hate from old php.
    but things changed after 7th version of language.
    it is more strict then js right now.
    php is best way to develop modern web apps.
    more strict and clean then js.
    cheaper to host than everything.
    modern enough to work with modern frontend frameworks.
    it has wide enough userbase to employ coders for it

    • @dawidgrden2227
      @dawidgrden2227 8 місяців тому +1

      Exactly a lot of people miss this concept, really cheap hosting, you could host a blog for a client on a shared hosting for 60$ a year, plus you have to start somewhere, php is not much different than other OOP languages except for the lack of async which is managed in a different way, Node is indeed scalable but requires proportional amounts of hardware power for scaling.

    • @GLT-fk7bg
      @GLT-fk7bg 5 місяців тому

      and they never coded in php more than what w3 school provides

  • @MB-up3mh
    @MB-up3mh 8 місяців тому +10

    Use framework like symfony which is pretty much like spring in Java. Same principles applies.

  • @arsvi123
    @arsvi123 8 місяців тому +19

    I have a soft spot for PHP as it was the first language I learned. It's not a good language, it's general lack of structure and strong convention lets it down a lot. Doing things the 'right' way is often unintuitive when compared with doing things the inefficient, insecure way. Combine that with often inexperienced developers (of whom I was one, I must admit) and you get some really awful code. However it does deserve credit in that our modern web would likely not exist in it's current form without it, PHP has been 'dying' for as long as I remember, and while it is certainly in it's sunset phase it's longevity is a testatement of it's value. For a long time there was no good alternative, and for all it's faults (of which there are many) it did get a few things right, such as keeping your HTML code close to your rendering logic (one of the main reasons behind success of React imo) allowing for easier development. While I would not go back to working in PHP and it's certainly an outdated language that should be allowed to `die()`, it's importance and is often under-appreciated.

    • @Leonhart_93
      @Leonhart_93 4 місяці тому +1

      What do you mean lack of general structure? It is a very complete language. It's my job to write thousands and thousands of lines of it, and I would have never made it if its ability to structure large pieces of code wasn't good.
      It realistically lacks nothing. It can be structured in an OOP way or purely functional or both. Everything is just so easy to use and the performance these days is actually really great. I would say definitely better than nodejs.

  • @aakash.pradhan
    @aakash.pradhan 6 місяців тому +1

    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.

  • @irdi3176
    @irdi3176 5 місяців тому +1

    bad video

  • @AudaiAlFandi
    @AudaiAlFandi 4 місяці тому

    I moved from PHP to JavaScript about four years ago, though I still maintain legacy PHP code at work. JS is definitely superior currently for web development due to its versatility and powerful frameworks and great support from the community.
    Many new developers don't understand how impactful PHP was at its peak, which is why PHP developers passionately defend it. I see that PHP has evolved a lot lately, but I don't think I'm leaving JS anytime soon.

  • @mastermindinclude7198
    @mastermindinclude7198 9 днів тому

    I work with PHP, i love the language.
    The mix of PHP and HTML got me confusing
    So what did i do? I used PHP to, make a framework that suited me and my development process.
    PHP being almost base level, meaning i was able to fix almost any issues i faced but just coding it... i packaged it and i have my very own, personalized; Component Based Modular Dynamically Routable Framework.

  • @piadas804
    @piadas804 4 дні тому

    The main reason I want to learn PHP is because my school requires it.

  • @houseandhobby6971
    @houseandhobby6971 5 місяців тому +3

    Python is not good about protection of bugs thanks to its reliance on indentation to dictate code block scope and associated execution. It is a huge mistake to not go with explicit code block terminators as are found/used in php and js and C and C derivatives. One little backspace or tab and you have a surprise to come and possibly a hard time fixing the bug if you did not notice the keystroke quite quickly. Also, try scrolling upward in Python code and having a sense of where you are in the code block hierarchy. Its so true that people love to dogpack hate on something while turning blind eyes to ugliness where its uncool to complain.

    • @JohnSmith-yl2fh
      @JohnSmith-yl2fh 4 місяці тому

      Have you heard of linters and formatters?)))

    • @aoeu256
      @aoeu256 3 місяці тому

      idendentation is only a problem for people who haven't coded in python...

  • @shahkey279
    @shahkey279 4 дні тому

    Clean organised code and logical scaffolding could be any language strong point. A tool is a tool depends in the skilled hand of the user so I am done with haters and lovers.

  • @MarcelRiegler
    @MarcelRiegler 8 місяців тому +3

    As someone having to "DevOps-ify" PHP applications, building a good CI/CD pipeline for it is an absolute shitshow. Dockerizing a web app, for example, is huge pain.
    The language itself (at least the newest version) is actually pretty nice.

    • @LuisEduardo-ik3ex
      @LuisEduardo-ik3ex 6 місяців тому

      I agree with everything you said. PHP is good as long as you only focus on the development part, when we start scaling or dockerizing a PHP application it's really shitty to do that.

  • @neatkefe
    @neatkefe 28 днів тому

    The biggest problem PHP ever had is that it's too easy to get started with it. That made a lot of wide spread open source code bases, frankly, shit. Wordpress, I'm looking at you. However, actually working with it full-time, and having tried to use Python, JS/TS and even Rust, I've gotta say that PHP is the perfect blend between simplicity and power. It does not protect you from writing bad looking code, but it gives you the power to build really powerful web apps if you know what your doing.
    I think the hate of PHP really comes from the fact that it runs differently than Node or Java apps do. Is it better? Depends. But you do need to think about the app in a different way when using php.

  • @MarcoKretz
    @MarcoKretz 4 місяці тому

    Yeah, telling people not to learn a modern language (PHP8.1+) with fantastic and well-proven frameworks like Symfony and Laravel and instead learn the most horrendous language (js should really just stay in the browser, cmon) is just a bad advice. The "examples" you showed are PHP from the 2000's. Today we use strict typing, dependency injection, templating with Twig, an actual good dependency manager and much more where JS is far away from. Tell me one framework with the power of Symfony.
    I don't want to flame here but you should really inform yourself before making such a statement. If you want to be a web developer you don't need to learn a specific language, learn what you like the most, let it be PHP, C#, Java/Kotlin, Python etc. You def. need JS, not necessarily a 'big' framework right from the start, htmx+alpinejs are fine too. And learn one lower level-ish language like Go, Rust, etc. if you encounter a scenario where you really need big performance.

  • @Foguest
    @Foguest 4 дні тому

    A programação e como dirigir, dependem do piloto
    .

  • @3VERone
    @3VERone 3 місяці тому +1

    Modern PHP can be written using classes, traits, abstract functions, or interfaces. In conclusion, C#, C++, Java, etc., are not ideal; just replace everything with JavaScript to distort this language even further from its original intent.

  • @YouHaveTrouble
    @YouHaveTrouble 4 місяці тому

    PHP is bad. Just as JS is bad. That's why you get frameworks that make things easier and give things structure.
    The entire argument you have is "PHP bad cause I can't read code", while looking at most vanilla php ever. If yo write equivalent js code it will be as bad.
    I'm not a fan of PHP, but I do happen to work with it on a regular basis and it's not as most people paint it to be, especially the latest versions which literally added enforceable type system.

  • @El_Bartto
    @El_Bartto Місяць тому

    Never! Php 8.3 and Laravel are doing amazing things

  • @YungGudGalaxy
    @YungGudGalaxy 4 місяці тому

    It amazes me how out of touch this guy is. Clearly doesn't know shit and is simply jumping on the old "PHP BAD" bandwagon when it's clearly a solid language now.

  • @yexiugamingmuarchangelsea8892
    @yexiugamingmuarchangelsea8892 3 місяці тому

    Writing clean code depends not on the language but on the person behind the keyboard. I've been a developer for 20 years, and yes, there are services we write with PHP 8. It's fast and straightforward. You can certainly code it like the example in the video where you're mixing HTML with PHP, but you also have the capability to make it clean. Instead, you can use React and HTML on the front end and send an HTTP request to your PHP-powered backend service, where you can implement highly robust and clean code with all the bells and whistles of today's most modern programming languages. I don't understand the example in the video; it is biased towards a poorly implemented architecture that existed 10 years ago.
    That said, I've also written apps in Java and Python and I can confidently says that no language can automatically fix if you're a terrible developer.

  • @abdmaster
    @abdmaster 4 місяці тому +1

    Intentionally showing bad PHP code to prove your point won't make it bad...
    Compare with PHP8 and a good Laravel project ...

  • @KX36
    @KX36 4 місяці тому

    PHP was fine for the time but it's aged poorly. Nobody complains about its rival, ASP because ASP had the decency to die in 2003 when PHP should have done the same.

  • @levett_
    @levett_ 4 місяці тому

    I'm mainly a JS dev and I don't see how you can find the code at 1:56 any harder to read than React. If you know HTML you can see the structure, even if you don't know PHP at all, if you are a programmer you can surely read the conditionals, loops, you can pick out the SQL which is very human readable...
    It's not well written but you should be able to read it fairly easily if you have any programming experience.
    But sure if you zoom right into the page and only show it for a few seconds while scrolling then it is hard to read. You can write bad code in any language. If you take a look at the structure of Laravel it's really well-written PHP that sticks to a strict standard and most PHP developers are using it these days.

  • @VitorF7
    @VitorF7 4 місяці тому

    This video was quite biased to be honest. Whether it was done on purpose and as a joke is probably another thing for another day.
    However, the notion that PHP code is difficult to write and you show (very fast and scrolling a lot so people do not notice too much) very legacy code that I have not seen or written since I first started working as a software engineer over 13 years ago is pretty telling of the arguments to follow. PHP nowadays can have strict typing, return types, and even generics for goodness sake (and this is all I could remember as I have not been doing much PHP in the last 3-4 years).
    Then you have someone coming in who spends a few seconds saying that PHP is no longer bad but if you want more money then go for JS or Java and you conclude: "I was right, PHP sucks".
    As I said, EXTREMELY biased video and totally wrong conclusion, you started your argument with a lot of bias, and loads of presuppositions that you just assumed were true and finished on a really bad note. If this video was done to be a total bad take as a trolling video, then you are a genius, otherwise, sorry mate but that was a bad take.

  • @trashhater9304
    @trashhater9304 5 місяців тому

    >use python instead
    >fireship
    >use js
    >sql queries just in html template
    Bruh... You just cringe overdosed me

  • @sergeliatko
    @sergeliatko 3 місяці тому

    Conclusion of the video: if you don't know what PHP is, better learn it before making such videos 😅

  • @СэрШпинат
    @СэрШпинат 2 місяці тому

    erm... you can use python as cgi and not separate logic and presentation as well as in php, since php works as cgo out of the box. or you can use C language to write cgi. what is he point))? Are you sure you are web developer? are you aware of pho frameworks and composer)))? pathetic....

  • @Gregorius421
    @Gregorius421 4 місяці тому

    2:00 nobody writes php like that, that's an antipattern. Don't write business logic into templates. Any other templating lang would be unreadable if used like that.
    Bad argument, but doesn't affect the outcome: php is a language built from shit, it's shitpile, even if by now it runs with reasonable performance.

  • @DanKxxx
    @DanKxxx 4 місяці тому

    javascript can be used for backends. Yeah it can, but in an ideal world it wouldn't be, just like using php.

  • @timebroua
    @timebroua 4 місяці тому

    Making video about PHP 5.4 in 2024 hardly considered funny.

  • @GeneraluStelaru
    @GeneraluStelaru 3 місяці тому

    JavaScript is just as "bad" and unstructured, if not more -- needing the support of frameworks and libraries to bake a half decent web app.

  • @olhoTron
    @olhoTron 4 місяці тому

    Php is bad on purpose! True story: someone wrote a RFC to bring block scoped variables to the language and they rejected it saying it would incentivise longer functions and make code unreadable (wtf?)
    they also said they dont want to bring new keywords, meanwhile they add a lot of new keywords with every release just to try and imitate java's OO while neglecting the small things the make a big difference

  • @pangzlab
    @pangzlab 4 місяці тому

    Said by someone who never really done a "professional development" using PHP.

  • @cookiebinary
    @cookiebinary 4 місяці тому

    This video confuses me. Is this a weird way of sarcasm? :D Or is the author really just a simpler individual? I really don't know ..

  • @redhairshanksa
    @redhairshanksa 4 місяці тому

    PHP is useless thats why wordpress its one of CMS has large share in market for for websites . Its really terrible that its CMS Magento Adobe Commerce is one leading in e-commerce for many brands like Lacoste. Its really bad .

  • @computeroid6162
    @computeroid6162 8 місяців тому +1

    Nice editing but please, less moving things, too many transitions, it makes me feel like a mindless tiktok child 😂

    • @EnhanceCode
      @EnhanceCode  8 місяців тому

      Do you find the editing on my last video better?

    • @computeroid6162
      @computeroid6162 8 місяців тому +1

      @@EnhanceCode seems pretty much the same, high quality but too much going on at once which takes away from what you are saying in the vid

    • @EnhanceCode
      @EnhanceCode  8 місяців тому

      @@computeroid6162 Thank you for the feedback brother

  • @naspy971
    @naspy971 4 місяці тому

    The code example used to illustrate php is a piece of s****. That's spaghetti code. Php is mostly used in OOP contexts nowadays

  • @williamkyaw516
    @williamkyaw516 8 місяців тому +2

    I actually agree. I pretty much failed my web dev module in my first year of university. In my second year, we had a team projects module to make a (project management) web app. I thought I was going to stuggle hard time but it wasn't too bad since my friend's used Laravel which was actually very eloquent and quite beginner friendly, at least in my opinion. Tbf my friends helped me out and I did use GPT so I might be a bit biased

    • @xelspeth
      @xelspeth 4 місяці тому

      While yes you are biased (you are sharing your experience afterall) this is a quite common standpoint on bigger php frameworks (like laravel, symfony etc).
      This is mainly because they simply have the best documentation

  • @komismo
    @komismo 2 місяці тому

    I custom compile PHP, its fast if you know what you're doing.

  • @kylebarvel
    @kylebarvel 4 місяці тому

    I would buy a JavaScript course for 20 dollars over a php course for 20 php

  • @simeonovs4443
    @simeonovs4443 7 місяців тому +1

    Python sucks

    • @Yarkanlaki
      @Yarkanlaki 6 місяців тому

      PHP sucks. Try run server without apache mf

  • @animatedredo
    @animatedredo Місяць тому

    Conclusion of the video, never subscribe !!!!

  • @marcorademan8433
    @marcorademan8433 4 місяці тому

    Php is just is a tool, altough a blunt one. Bad code is bad code. It's the cheapest option for hosting websites. Stop the hate! There is nothing wrong with adding to your language skill set.

  •  4 місяці тому

    I'm proud PHP/laravel dev, and proud react hater. THO i use laravel just as API, so models and controllers, and vue.js at front - i think this is best combination of both worlds! For years i hear hate for php and php is dead - but i'm still waiting for it.

  • @just2genders668
    @just2genders668 2 місяці тому

    People who hate php suck at coding in php, anyone else either dgaf about php or look like they love it but in reality are just defending it from haters.

  • @GelX
    @GelX 3 місяці тому

    the code is hard to read? how did you read that simple php login code? from upside down monitor? come on.

  • @AlexIsTripping
    @AlexIsTripping 4 місяці тому +1

    I don't really get the hate on PHP. Its a fast but simple object oriented language that doesn't suck unlike python

  • @razvanSfat19
    @razvanSfat19 4 місяці тому

    do you want to have many views? make a video where you say how bad php is. it doesn't matter that you don't know what you're talking about, that you haven't seen code written in php more than a hello world. put php in the title and success is guaranteed. what language gives food both to those who use it and to those who hate it?

  • @Tony_Sol
    @Tony_Sol 3 місяці тому

    I'm sure you know nothing about php since 5.6

  • @meletisflevarakis40
    @meletisflevarakis40 4 місяці тому

    Did you pick this sample code on purpose or because of pure ignorance? Your video is just poorly researched.

  • @megablademe4930
    @megablademe4930 4 місяці тому

    PHP is better than anything alse. Your opinion just sucks.

  • @RazvanTSibiu
    @RazvanTSibiu 8 місяців тому +3

    As most of PHP is WordPress and Laravel, Python is mostly for AI (PyTorch and Tensorflow) two complete different fields. When you compare it for Web Development, Python with PHP you should compare Django to Laravel then you'll see that bot are almost the same.

    • @fdssd1736
      @fdssd1736 8 місяців тому

      Nodejs or golang are simply are better alternatives to php.

    • @RazvanTSibiu
      @RazvanTSibiu 8 місяців тому

      @@fdssd1736 also better alternative to python but the final cost will be enormous. Try do an mvp in golang or nodejs then you'll realise at the end it cost u a lot more. In php you can create faster and performant applications that can handle 1000+ users on a decent server.
      Nodejs and golang are not mature enought for fast development.

    • @RazvanTSibiu
      @RazvanTSibiu 8 місяців тому

      @@fdssd1736 Also you can have PHP extensions written in golang for more performance.

    • @Leonhart_93
      @Leonhart_93 4 місяці тому

      @@fdssd1736 NodeJS has absolutely no perks compared to PHP. Not even the performance. And don't get me started on the bloated node_modules, that PHP pretty much completely side-steps by having an incredible STD library.

    • @RazvanTSibiu
      @RazvanTSibiu 4 місяці тому

      ​@@fdssd1736 I used NodeJS too with a ton of frameworks, it's not even close to PHP.
      I started a project with a team in NodeJS and In 2 months we decided to switch to Laravel because NodeJS was too limited, bad documented with poor examples. PHP on the other side has a bit weird syntax but for me it doesn't matter. Taylor Otwell took care of absolutely everything to be made easy.

  • @innerbytes
    @innerbytes 4 місяці тому

    Maybe php is ok. It's just not used by programmers.