PHP - Why Coders Hate...

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • PHP is great for being able to easily create web apps that work. The problem is that it also easy to create code with major vulnerabilities that is a mess to read and try to audit. Many times PHP is used by desktop support technicians to create apps to track department inventory, or work orders that after a few years get coopted by the rest of the company and are being used at a scale never envisioned when the technician was copy/ pasting from a dummies book to make the code work.

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

  • @elithecomputerguy
    @elithecomputerguy  5 лет назад +11

    Go to www.elithecomputerguy.com to copy/paste code samples

  • @PsychoTaker2305
    @PsychoTaker2305 3 года назад +98

    I was evading php for years as student. My first job offer was php, I declined I wanted to do backend with python or c#. Guess what, I'm currently interviewing for php position lmao

    • @CloudXIl
      @CloudXIl 3 года назад +10

      Dude, I’m in the same position, I somehow got brainwashed by everyone hating php so I’m a strong support of everything but no PHP. Well, after all that said, here we are me getting selected in the job interview and now starting in a few weeks as a trainee for a position that uses PHP…

    • @AFuller2020
      @AFuller2020 3 года назад +7

      @@CloudXIl It's like my Toyota, it's just keeps running. Let the haters use Java and Django on Docker, it will crash.

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

      I fell sorry dude :/

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

      It’s a great language. It was a bit rough pre php 4. It’s a really solid language as of 7-8.
      I make over 200k as a php engineer. Check out Laravel. It will be a great framework to keep your code clean and well maintained

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

      @@PlayEthernia 200k with how much experience?

  • @lemongrapesfilms
    @lemongrapesfilms 4 года назад +82

    gettype(), get_class(), isset(), is_null()... beautiful consistency 😍

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

      who is naming functions?

    • @kaelon9170
      @kaelon9170 3 года назад +7

      @@xBZZZZyt Over php's history, contributors to the language did, with each following their own standards rather than php having a predefined naming standard. PHP is probably the most 'evolved' language rather than designed language and things like consistency are a mess due to that.

    • @AFuller2020
      @AFuller2020 3 года назад

      ​@@kaelon9170 I deploy CRUD admins on Linux VM's all the time, up scale to the main server when ready, best thing ever.

  • @gadget00
    @gadget00 2 года назад +43

    Every time a magic combo of "easy/productive" programming language comes up and gets pretty popular, all the "professional developers" that take pride in making "good" software "the hard way" belittle it and start a campaign of badmouthing that can last for decades and kill entire tech stacks
    There is a whole history of perpetual developer snobbery: COBOL guys dismissing PL/1, PL/1 dismissing C, C-shell dismissing bash, emacs dismissing vi, vi dismissing nano, dBase dismissing FoxPro, C++ dismissing VB6, Java dismissing C#, Flash/Silverlight dismissing HTML5, CORBA dismissing SOAP, then SOAP dismissing REST, native mobile devs laughing at html5 mobile apps, and so on.
    History doesn't repeat itself, but it rhymes over and over again, as if us developers can't stand to not feel like a "genius", so when an easier approach comes up and gets popular, the first step is to belittle as much as they can to keep feeling special for managing their behemoth of a toolkit that "only us" can understand. PHP has suffered from this for many years, but keeps getting stronger and more popular as well LOL

  • @delnoth
    @delnoth 3 года назад +30

    I am currently that "intern" that is learning PHP to slap together an inventory management system for my department. We already have other departments wanting to add their data to ours. I was giggling the whole time relating to the story.

  • @leonardopinzon1320
    @leonardopinzon1320 5 лет назад +18

    You can write horrible code in whatever language of your choice, I mean, that argument at least is not very solid.

    • @dahohi
      @dahohi 3 года назад

      True, but Python still looks good xD

    • @Shiv-vb1re
      @Shiv-vb1re 3 года назад +1

      @@dahohi if you know php then it looks great

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

      That's the thing I get tired of hearing about php

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

    How do you blame PHP for the programmer's mistake? For the web PHP is king but my advice is do you, there is space of all programmer and you can always learn another language. 😉

  • @Gandoff2000
    @Gandoff2000 5 лет назад +20

    Thank you Eli! I watch a lot of youtube. Your teaching videos make me smarter. Honestly, a lot of youtube videos that I watch make me dumber. Lol

  • @emperoroftheearth3215
    @emperoroftheearth3215 3 года назад +15

    Php is great language for web development ... and love it.

    • @nymez6968
      @nymez6968 5 месяцев назад

      Php isn‘t a great language for anything. Literally no matter what you do there are better alternatives.

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

    PHP is good.
    Chinese has a slang.
    黑貓,白貓,會捉老鼠就是好貓!
    Mean,no matter white cat or black cat, if can catch mouse, it's a good cat!

  • @Neodynium.the_permanent_magnet
    @Neodynium.the_permanent_magnet 2 года назад +9

    The apparent ease of programming in PHP gives the impression that anyone can develop. This is the problem.

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

      I think literally anyone can develop, though. Especially web development, it's not rocket science.

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

      and for this same "ease of programming" , people praise python ! messy world lmao

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

      thats not a problem actually. Its like Rattatouile, "everybody can cook". Well, with the right tool ANYBODY can be a developer. For some ASM was enough in the 50s, and for others they had to wait until COBOL/Lisp/Basic/dBase/foxPro/C/C++/Java/C#/PHP/Silverlight/React Native/Access/MS PowerApps/Bubble.is/etc existed to get in and "be" a developer from then on

  • @pg1337ful
    @pg1337ful 5 лет назад +52

    Writing php apps using Symfony or Laravel is almost the same as writing Java apps with Spring or C# with Asp.NET .. everyone saying PHP looks bad has never written it using a framework..a REST Api nearly looks identical from design pattern point of view and the corresponding code. And I've written all three for 5-10 years now... so please dear hobby programmers , don't judge what you don't know. This especially refers to the nodejs World, where front end js devs think they know anything about Software Engineering and Development..

    • @xhotweb
      @xhotweb 4 года назад +7

      Told people don't judge, and then immediately judged other people. Make sense.

    • @pg1337ful
      @pg1337ful 4 года назад +3

      @@xhotweb don't judge _what you don't know_. I know, reading can be hard sometimes *gg

    • @xhotweb
      @xhotweb 4 года назад

      pg1337ful That’s exactly what I’m saying. You made a lot of assumptions, which then made your argument fundamentally flawed.

    • @pg1337ful
      @pg1337ful 4 года назад +1

      @@xhotweb I don't see any assumptions in my text, just experiences.

    • @xhotweb
      @xhotweb 4 года назад +1

      @@pg1337ful Yes, reading can be hard sometimes.

  • @davidbasil2727
    @davidbasil2727 4 года назад +7

    Never seen people in real life hating php. Only articles and videos about why people hate php.

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

      thats so true; I've meet people that do code in other languages and they cherish the 'good ole days' when they could code in PHP. "is like going back to your mother's house; you feel cozy at home again" a friend of mine once said while working on a massive J2EE project back in the early 2010s, how he hated the whole 'java beans counting' nonsense he had to deal with LOL

  • @DJ-pn9te
    @DJ-pn9te 2 года назад +2

    You only described bad programmers, not the language itself. Actually it is one of the most logical languages with oop.
    Keep in mind it is server side as well.
    Python I find is a pure scripting mess with no logical flow.

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

    I'm exactly the guy you spoke about in the video. I am currently moving to a small company to work in a education management system and the guy before me said in my interview that the code base was really messed up and it was easier to write another one from zero using another language than php. However, the CEO agreeded in creating the system with another language after implementing the new feature the system needs, so I'm quite happy
    Edit: if I wrote something wrong, please tell me. English is not my mother language. Thank you

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

      Wait, so which language did you use finally?

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

    PHP is a valuable language and the low entry point is a massive asset to it! you just need to know what you're doing when you accidentally start a dev shop with it! :)

  • @testaccount-ts5nv
    @testaccount-ts5nv 2 года назад +2

    I love PHP. Writing readable code is a problem caused by the writer of the code, not the language. I can write unreadable code in Python too. Someone shouldnt blame the language for writing bad code. I will use the language for web development as long as it is supported.

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

      dont worry php not going anywhere, all hate and videos are just trying to showoff that its old and time to throw it for no reason.

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

    php lover from Argentina. Good Channel eli. Cheers !

  • @turbulentgazelle6276
    @turbulentgazelle6276 5 лет назад +42

    If it's the right tool for the job and you can write code well, then your PHP will be good. If you can't write good code, writing it in Java, Python etc. won't make it any better.

    • @leaper7808
      @leaper7808 4 года назад +4

      That is not true, PhP syntax alone allows for errors and security holes that are inherent to the language itself. PhP is a vulnerable language by default, that is something exclusive to PhP when compared to other languages.

    • @mrzisme
      @mrzisme 4 года назад +6

      @@leaper7808 That's not true at all. Especially with version 7.0 onward. Any web-based form app in any language faces the same security holes that makes it up to the developer to cover on their own. No language automatically stops javascript being shoved in the field, or sql injection being shoved into the field, you have to be mindful of all these possibities in all languages and build around that problem. PHP even goes the extra mile to have frameworks like Laravel to automatically snuff those security problems out without any second thought.

    • @humann5682
      @humann5682 4 года назад +1

      @@leaper7808 I've seen some terrifyingly vulnerable Java and Python in my day. Coders are the security vulnerability most of the time with code, not necessarily the language.

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

    i really dont appreciate the condescension. "even a secretary can use it" "lower level professionals"
    I do webdesign and this year looked into php because I need it for back end stuff for our website. Barely anyone at my company knows how to use php and I work in an IT company. To on one hand shit on PHP saying it is so easy, yet basically none of our devs use it (they do C# and python for example) but on the other hand say "dumb people like secretaries can use it" is also fucking shitty.

  • @santiagocorrearestrepo6852
    @santiagocorrearestrepo6852 3 года назад +5

    Hi Eli. My relation with PHP has been as a roller coaster, sometimes I'm glad to work and study it but sometimes the language is not neat and prone to making mistakes in my case. I tried to understand more structured languages to apply similar concepts with PHP and I'm glad to say it has been working. Despite of PHP has been condemned by developers, it is widely required by small or medium-sized corporations and its maturity turn into an important technology that even ranks the most important positions among surveys.

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

    Old PHP code is disgusting, that's true.
    But today, modern PHP has in my opinion nothing to envy to other object oriented languages since it is itself object oriented and structured, with the arrival of composer project, modern frameworks like Symfony or Laravel in their latest versions, and PHP 8. The readability of the code has nothing to do with that of the time, as long as conventions and good practices are applied.
    But yes, there are still many small and medium-sized companies that continue to use old-fashioned PHP, and this will surely cause the disappointment of future developers who will have to take over this code, I give them all my strength!

  • @delturge
    @delturge 4 года назад +5

    PHP is the beginning of a journey for many people. PHP is fun. PHP is something that is accessible and can be explored. That being said, new PHP developers typically do not see the long term problem with mixing the bulk of their logic with their views. Newer PHP coders tend to not be software engineers. They do not have the benefit of thinking "maintaining code like this will be harder if it's all mixed together." PHP has a results based culture that over time has tried to put more attention on best practices (OOP, PDO, etc ...), but this has not stopped many from making single page, procedural, SQL/HTML/PHP code mixed together, websites (that work!).
    Someone that knows the ropes does not architect their projects like this. Architecture and modeling is what's missing from the results based PHP culture. This has been outsourced to MVCish frameworks.

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

      My first PHP project started off with just a few dozen lines then my manager wanted more features on the page. I ended up approaching 1000 lines of mixed PHP, HTML and CSS. Finding anything was a nightmare and it took ages to break it all apart into more manageable parts because I couldn't remember what did what 😂.

  • @mmh708
    @mmh708 5 лет назад +8

    Thanks for expressing this so well. Definitely my go to video to explain this phenomenon.

  • @brendentorres7319
    @brendentorres7319 3 года назад +4

    As an intern learning php specifically for going back through code built years ago, I took offense to this hahaha.

  • @dennismatsson9995
    @dennismatsson9995 3 года назад +25

    A lot of the problems you described with PHP are actually fixed thanks to PHP adopting OOP programing and most big applications using the MVC structure.

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

      Yeah, now we have OOP and MVC problems instead.

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

    It is one of issues
    You don't know most of service developed without document making in Japan
    And Japanese PHP engineers not sure deference between each php version well
    So it is have to upgrade latest version from older one as PHP5
    PHP is end of contents however fixed the security holes

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

    I learned to program about 6 years ago from your unity videos. I still remember how amazing it was to have those first games run. Since then I have learned more than 20 languages and even though I have drifted away from unity and game development, and more into node and backend web dev, game development will always have a special place in my heart. Thank you for making these awesome tutorials years later for new people to try and experience the same thing that I did.

  • @CottonInDerTube
    @CottonInDerTube 4 года назад +1

    "something cooler".
    I dont give a fuck if its cool. It must do the job. I must do the job.
    And if i dont get paid for a low level language then i use high level language.
    You get what you pay for.
    But the example of the growing company was pretty good. But imo that does not depend on the language.
    This can happen in any language.

  • @ci7alex1
    @ci7alex1 5 лет назад +3

    Quite strange that a desktop technician would go as far as coding a PHP database app rather than knocking up an Access file with forms and reports over couple of days. :) That is what we see far too many times... but yes, PHP can be hard to follow if someone else wrote it. However most CMSes now are still in PHP, somehow...

    • @navjotsingh2251
      @navjotsingh2251 4 года назад

      Yeah, languages like PHP can be written in any style. This is why I prefer languags with strict style guidlines that everyone has to obey, so that you can read their code.

  • @GhazaliGhoussb
    @GhazaliGhoussb 5 лет назад +5

    Hey Eli could you please start a php 7 tutorial from noob to a level where one can create applications such as the ones you talked about in the video. But with clean code adhering to best practices and taking care of the security .

    • @cla1814
      @cla1814 5 лет назад

      My advice is
      start with www.lynda.com/learning-paths/Web/php-developer
      Then search for traversymedia and codecourse.com
      Then laracast.com Leave Laracast for last since is very complex and difficult to keep up, unless you used to PHP and programming.

  • @mirzasisic
    @mirzasisic 5 лет назад +32

    PHP 7+ is a lot better then the older versions, faster too.

    • @Cognitoman
      @Cognitoman 5 лет назад +1

      Mirza Sisic yea

    • @mmh708
      @mmh708 5 лет назад +3

      Yes, but it's still just as easy to make a mess 😉

    • @aseel1024
      @aseel1024 5 лет назад

      what's the difference of using php 5.3 and 7 ! is they have the same syntax ?

    • @ojsojs6004
      @ojsojs6004 5 лет назад +1

      @@aseel1024 no. Php 7 added new syntax and capabilities. It is also faster.

    • @A5tr0101
      @A5tr0101 4 года назад

      People should look at PHP-DI and using Symfony or Slim 4 with MVC structure and using Symfony Forms and DTO

  • @AzaLPs
    @AzaLPs 5 лет назад +19

    Here's some more food for thought.
    It's not even just the language or the culture of newbies which throw people off, but the core people behind it. The core developers practice a very toxic brand of office politics with people plotting and scheming and trying to twist people's arms to get features in and suppressing features until other factions kowtow to their faction to add what they want or to otherwise compromise.
    Other languages on the other hand tend to be led by skilled professionals who know what people want, never take compromises, and generally speaking, you know exactly what to expect from them.
    With PHP, sometimes you see really high profile people who really worked hard and fought to modernise the language resign in a rage, rant on a blog, and then, eventually return to the language because of how toxic the core community is.
    The toxic people will hold critical features hostage two weeks before feature freeze with the next opportunity to fold those features in without the changes they want being five years away. It's like dealing with the government.

  • @thefreshprince-t4m
    @thefreshprince-t4m 2 месяца назад +1

    PHP is cool.

  • @HerbertsChannel
    @HerbertsChannel Месяц назад

    If you are building websites for small companies.. try to convince them that they need a Kubernetes cluster, when the other developer can install wordpress on a 3 € (per month) webspace. There is more to look at, than the language itself.

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

    Ahh Wordpress must run on c++

  • @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.

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

    I love PHP it saves my career as a Web Dev

  • @Me-vc4sf
    @Me-vc4sf 9 месяцев назад

    Because of the big community and it's easy to learn... there's so many unprofessional tutorials and inconsistency in function naming...I also don't like how the process starts from Zero for each request....but if you know what's you're doing it's really a ready to go language and honestly looks very organised

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

    Pretty sure people will say exactly the same about Python some years from now. I think the hate of php started by frontend developers and the rise of Node, that brought them the illusion they can do backend without learning anything else.

  • @svenkarlsen2702
    @svenkarlsen2702 3 года назад

    Bad arguments IMHO.
    Do you blame every tool that an idiot easily can pick up for that idiot's mess?
    Do you blame Ford or Chevrolet when idiots crash or run over other people in their cars?

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

    Even if it was 2019, you talked about issues of php from early nineties. Please make yourself more up to date next time 😄, and by the way, an ugly code can be written in any language.

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

    Your are taking about php in 2010 it's has changed and improved a lot ....a whole lot

  • @divinaxito
    @divinaxito 4 года назад +1

    You don't hate php code, you hate php coders.

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

    Can anyone suggest me any in depth php free or paid tutorial from udemy or any platform... Recently i went through programming with gio n his videos are ok2 n its hard to grap his teaching

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

    programing language only seem to matter for coders, a programmer doesn't care about the language because it can be anything as long as it performs and suits the tasks that are required for the specific application or program or even an entire OS

  • @andyos-music
    @andyos-music 2 года назад

    Videos like this don't age well in fairness, considering where PHP is now as a language in 2022 thanks to 8.1

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

    Welllllll, for a guy who comes from Perl It was a smart thing to do learning PHP a few years back :)

  • @tomiikunxd
    @tomiikunxd 3 года назад +1

    whoop de doo, glad I'm not the only one, just got hired on the spot for a PHP developer position 😭😭

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

    PHP is hated because his flexibility. There are nothing like bad design.

  • @gerff01
    @gerff01 5 лет назад +5

    It is a problem with documentation, and commenting your code, not the language.

  • @adammontgomery7980
    @adammontgomery7980 5 лет назад +2

    I think it's more about database design. PHP should just serve as an interface to the DB.

    • @ojsojs6004
      @ojsojs6004 5 лет назад +2

      @Adam Montgomery design? You can write well designed pattern with php. using laravel or symphony is like using java spring or c# at .net.

  • @thefreshprince-t4m
    @thefreshprince-t4m 2 месяца назад

    So really, you just gotta get good at reverse engineering code and you’ll be laughing. The real skill set is in the reverse engineering of another person’s program.

    • @thefreshprince-t4m
      @thefreshprince-t4m 2 месяца назад

      Working out the logic that another person has used to write their code and working out the logic used by the previous programmer for their program to implement your own programming and coding logic that aligns with the functionality.

  • @fatlip8315
    @fatlip8315 19 дней назад

    Should we call PHP C for the internet?

  • @soulmask2781
    @soulmask2781 3 года назад +1

    Hey I was a desktop technician and I could code, knew higher mathematics(double integrals, or what about different kinds of infinities?), have a better sense of humor and of course more creative than the vast majority of paid coders out there. But also, I would never have put a huge file with 1000 lines of code, thats like the basics of making your code readable. And then 90% of people dont really follow a "coding standard convention" they just make sure their code is readable, and explain parts with comments while dividing classes into different files etc... ie basic documentation, which ISNT really standardized company to company contrary to what the person in this video implies.

  • @dibraniuk
    @dibraniuk 5 лет назад +2

    I thought you left youtube for good! I was really considering joining your other website.

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

    One Word : Wordpress. Enough Said.

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

    Wait are you the guy Rossman bad mouths?

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

    "Ugly code that works" yeh..

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

    You can write bad and ugly code in every language. Just go to stack overflow. You´ll find some ugly snippets in every language (incl python, java, javascript, c#). All these languages are seen as ´the best´. Php is evolving and php 8 has many good options to give you the possibility to write cleaner, less error prone code. The idea that php is ´bad´ comes from the pre php-7 times. And the haters... probably never tried to program php in a decent way.

  • @science_trip
    @science_trip 3 года назад

    There are som many mistakes!!!! The people that they are juging languges like: you are not writing clean code there etc are people that they are not able to write applications with vanilla code, but only with frameworks. The only programming language that forcing you to write a stractural code is Pascal!!! I found shity code in PHP, in Java, in Javascript, In C, in C++, in Visul Basic, in C#, in Python etc. the problem is not the the languages! the problem is the people that they didn't learn the programming basics (algoryms, data stractures and design patterns). If you know how to write a good code, you can write it also in PHP and you can have a clean code too. Laravel, Django, Express.js all thease are frameworks not the language.

  • @armincal9834
    @armincal9834 5 лет назад +6

    i don't think there is a better programming language for web development than PHP, i mean Javascript is being used for backend these days but it doesen't have all the neat built-in functions that PHP has, like communicating with the DB or creating/openning files so if your goal is to JUST learn web development i think u have to know both javascript and php but if you want to be a programmer in general who builds software for different operating systems then by all means learn Python or c#. at the momment i want to get a job as a web developer so im just learning PHP and Javascript(i'm more focused on backend) and i don't need to learn an entire language like python which is way more complicated than PHP or JS, JUST to build websites using Django which has a very different syntax by the way.

    • @cla1814
      @cla1814 5 лет назад +1

      Actually PHP is more complex than Python. Python is a lot simpler and easier to read that is why many newbies prefer it.
      My advice is move to laravel as soon as possible and learn vue.js as well. You can learn at laracast.com

  • @coltonwilliams1565
    @coltonwilliams1565 5 лет назад +11

    I appreciate this video. I just started a new job right outta college writing PHP websites. and I love PHP! Seems easy and straightforward like your saying. But I would like to learn more about why people say it’s bad thanks.

    • @samachema
      @samachema 5 лет назад +8

      THERE IS ABSOLUTELY NOTHING WRONG WITH PHP.
      Bad code can be written in any language. Bad code is what is bad.

    • @coltonwilliams1565
      @coltonwilliams1565 5 лет назад +2

      Enemaku Achema yeah for sure. I can tell php is great. We use the Laravel framework and it makes everything easy. But I’m also open-minded and would like to try using different languages for back end and front end integration to see the advantages of all of them.

    • @Cognitoman
      @Cognitoman 5 лет назад +12

      It’s not really bad anymore...it just people repeating what they hear from old school web devs

    • @AzaLPs
      @AzaLPs 5 лет назад

      @@coltonwilliams1565 If you want to try out other ecosystems, then Python, Go (I personally really like Go), C# (although, people don't really like Microsoft, but there's probably plenty of jobs for it), Node.js, etc. would be good places to look.

    • @AshleyMeah
      @AshleyMeah 5 лет назад +1

      The bad rep comes from LFI, SQL injection and even the blame for XSS and every other type of attack. PHP has made itself more prone to developers who have no idea of security by implementing measures such as with PDO today, you bind values by data type.
      PHP allows access to call shell scripts and stuff too what's useful when it comes to automation like provisioning web hosting to clients, but it's a security risk if you just host a few wordpress installations with badly written wordpress plugins. I don't own your site, I own your whole server.
      It's up to you to configure everything for your scenario. If you are provisioning web hosting or working with clusters, you don't want to be putting rubbish code with your companies critical infrastructure

  • @ImaginaryNumb3r
    @ImaginaryNumb3r 5 лет назад +1

    PHP is awesome. As long as you don't need async requests, any sort of paralellism, reasonably high performance, memory leak free programs or want to enjoy higher level constructs (lambda functions, function pointers, stream processing, etc.).

    • @navjotsingh2251
      @navjotsingh2251 4 года назад

      Where PHP lacks, python succeeds. For example, i use python to manage the async stuff on my site rather than PHP but i use PHP for templating, databases, hashing/encryption etc

    • @mrzisme
      @mrzisme 4 года назад

      PHP 7.0+ has ternary operators which are basically the same as pythons lambda functions
      For example instead of writing- if condition=true, then value else other value, you can just write $new_value = condition ? $value1 : $value2. =?: quickly separating values. lambda is great, but its mostly used as a shortcut if else statement which php has with ternary operators now. PHP is fully object oriented now.

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

      @@navjotsingh2251 php is faster lol, and now it's a decent oop language

  • @besllu8116
    @besllu8116 4 года назад

    PHP, JS, JAVA, Python it is all easy in the manner to say it is easy to run for just 100feets, I never understand the hype with Python, boring language. Can say whatever about PHP, but Python will not teach you web tech as PHP.

  • @bigollie006
    @bigollie006 5 лет назад +2

    I personally LOVE PHP. All the languages are pretty fun. There are just different learning curves. Its all good stuff if you can take it....bit by bit ;)

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

    no one hates php except for noobs

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

    So if I got this right, if you have a non-coder make a mess of PHP code, it may become a problem way down the line? That's true of every programming language ever created. The truth of PHP is, it gets the job done. Version 7.0+ has all the security features and is much faster than Java at run time and Python thanks to be anchored in C, and lets be honest, to the people saying PHP is old and you should use python or Java... Python, Java and PHP were all created in the early 90's, yes each of them, there's no old grandpa in this mix, only incorrect assumptions and incorrect perceptions. If you want to build web apps, python is a major pain in the ass to get going. The amount of effort it takes to setup the web server for python and the amount of effort it takes to learn django on top of python is so much greater than simply using php for the job in any web app. 80% of all websites that use server-side code are PHP. Some of that is because wordpress is such a ridiculous market presence but a lot of that marketshare is because PHP was made for this purpose. It goes hand in hand with HTML and doesn't require a bunch of third party bullshit to get up and running. It's a core tech.

  • @AFuller2020
    @AFuller2020 3 года назад

    Ok so you talking about a system that is ugly and works, what is the other option? Wonderfull and expensive?

  • @obamascock2169
    @obamascock2169 3 года назад

    I feel like people who talk shit about php still are thinking its like php 5 and thing you still use mysql_real_escape for every user input. But its nothing like that nowadays and its a lot cleaner to read using pdo and prepared statements, and oop.

  • @abdoben833
    @abdoben833 3 года назад

    69 dislikes

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

    I can debug JavaScript or c# for hours. But php error gives me headache 😜

  • @fatcat3513
    @fatcat3513 3 года назад

    Php = ssshhhiiittt

  • @Rssks
    @Rssks 3 года назад

    If you really try: you can write bad code in any language ;)

  • @arnelGo-fj7qc
    @arnelGo-fj7qc Год назад

    ouch!

  • @AdrianDucao
    @AdrianDucao 5 лет назад

    i don't care if you use tabs over spaces or spaces over tabs, the most important thing is that can you code efficiently? and also i don't care if they do OOP or POP the important thing that i ask them is that can you get the job done in time?, i don't care if they use whatever kind of programming languages as long as they can deliver. If i heard them arguing about tabs and spaces war i always say "Talk is cheap show me the code by Linus Torvalds."

  • @gateteallan
    @gateteallan 5 лет назад +1

    Ugly code that works.... HAahahahahaha... Thanks @Eli #GreatWork

  • @stef1896
    @stef1896 5 лет назад +3

    Generation X IT folks should stop talking about PHP 3 once and for all. That's a history for god sake! If someone don't know OO programming, PDO, etc. he/she is NOT PHP developer! PHP is still the King when it comes to back-end programming and PHP 7+ is stable, secure, reliable and, by the way, faster than Python. Generation X ignorants and hipsters on Node.js and Python hype should start listen reasonable people and stop whining about how PHP is bad. It's not and it doesn't going anywhere! Laravel (just one of many prominent PHP frameworks) is taking over Django and Express.js (the main competitors of Python and Node on server side), while Ruby on Rails is sinking slowly but surely. Should you learn PHP first? I don't see why you should learn anything else before PHP for server side purposes.

    • @ojsojs6004
      @ojsojs6004 5 лет назад

      Well said. I don't see any reason to use nodejs over php 7. In terms of asynchronous speed, php swoole is faster than nodejs. Reactphp is also good for realtime apps. In tes of design pattern, php 7 is better than nodejs.

  • @eldinmujovic8705
    @eldinmujovic8705 3 года назад

    At the end, it depends on the situation, but a lot of web is PHP written,...

  • @dmitrykim3096
    @dmitrykim3096 3 года назад

    Maintainability is the most important thing currently

  • @JLP25
    @JLP25 3 года назад +1

    i like perl

    • @JLP25
      @JLP25 3 года назад +1

      Im not boomer

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

    i told myself i would never be a php developer when i started learning to code. first job: PHP Developer, didnt have much of a choice since i couldn't get anything else without experience. i had to learn quick and fix so much bad php code i developed health issues from all the stress from deadlines and lack of rest. now work at a different place and hope to never work with it again

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

      These experience as PHP developer helped you to get your second job ?

  • @oaxacachaka
    @oaxacachaka 5 лет назад +2

    I am far from being an expert but as a tinkerer, I like PHP. It's fairly easy to understand and write all of your own functions... so in that sense you really get to see how websites/apps work. There are also plenty of frameworks for PHP which will aid in understanding things like Django or ROR and also can be used to make secure and nice, readable code. PHP will also make you appreciate Python or Java or whatever language you use "for real" more. If you were given a Mercedes as your first car you might not appreciate it or even come to understand how it works. Better to start off with a beater where you have to replace brake pads and change the oil yourself. PHP builds character, hahaha....but Python is actually pretty great from what I can tell as a non expert.

    • @ojsojs6004
      @ojsojs6004 5 лет назад

      Php is 3 times more faster than Python.

  • @GlennLittleford
    @GlennLittleford 5 лет назад +6

    Having spent years working in Classic ASP, I found PHP the easiest language to move to. Messy code works.

  • @xBZZZZyt
    @xBZZZZyt 3 года назад

    PHP:
    Can't XOR string without lot of appending.
    Can't disable request array making (a[0]=do&a[1]=not).

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

    Really value these videos

  • @HilaryOsborne
    @HilaryOsborne 5 лет назад

    As a PHP dev for 10+ years I would say that there would probably be more sense in investing in NodeJS with a flavour of typing such as typescript or flow. PHP is a server side scripting language and really is only useful if you intend on developing ONLY server side rendered apps. Most employers/clients want devs who can do both front end and backend nowadays. At least that is what the job market is indicating. By investing in NodeJS you only have to maintain your skills in one language but have the ability to develop for both front and back end. To all the people who say NodeJS sucks... well good luck to you with that attitude. Just shows your unprofessional side. NodeJS is a lot like PHP in the sense that the technology itself is great but the community, the fan bois and the haters talk up or sling mud making it hard to be objective. This is so, so unfortunate for people just looking to find the right tools for them.

  • @hasanramadan4791
    @hasanramadan4791 5 лет назад +1

    Good afternoon mr Eli, i just have a question which i really wish u answer it directly if u may , when you talk about a topic in ur videos like now, are u reading ur words out of a board or something?...or its just right from ur head..?

    • @nachomuchacho1640
      @nachomuchacho1640 5 лет назад

      Seems like there is no written script. But in order to keep it short to Eli standards, Eli clearly knows beforehand what he is going to say.

    • @oaxacachaka
      @oaxacachaka 5 лет назад

      What do you think the headset is for? I mean, he’s a smart guy but not some sort of savant. The iq it would take to spout these pearls of wisdom off the cuff would be off the chart and he would be in a cage in the NSA working on decrypting quasar signals of that was the case.

    • @Cognitoman
      @Cognitoman 5 лет назад

      @@oaxacachaka lol wtf. Have you ever watched his live videos ?

  • @TheRoqco
    @TheRoqco 5 лет назад +1

    no mention to Laravel?

  • @saumilsunilshah5663
    @saumilsunilshah5663 4 года назад

    idk why people hate it , it is such a nice language

  • @JaseyStudios
    @JaseyStudios 3 года назад

    php is fun

  • @nickscurvy8635
    @nickscurvy8635 3 года назад

    Learning php is very valuable. But php is a terrible language that people should NOT voluntarily choose to initiate a project with.

    • @nickscurvy8635
      @nickscurvy8635 3 года назад

      @VinceAlmighty because theres almost certainly a more well suited language for whatever you would want to do.

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

      Why is it terrible? Why don’t you explain why it’s terrible instead of just saying it? Saying it doesn’t make it so.

  • @aryeahzenter4378
    @aryeahzenter4378 5 лет назад +2

    Coding PHP on a Mac? Basic.

    • @taylorsmith9629
      @taylorsmith9629 3 года назад

      You have to start somewhere

    • @AFuller2020
      @AFuller2020 3 года назад

      I set up a simple LAMP stack on a VMware module with a !0 GB image, I port these out all day on a free VMplayer, add some CRUD and bootstrap, people love it. An yes I use a Mac, and yes all of the software is open source.

  • @khaledkachkorian2486
    @khaledkachkorian2486 5 лет назад +1

    ok, understood. Does using a php framework, reduce writing dirty code?

    • @abdot604
      @abdot604 5 лет назад

      yes very much ,i hated php and even its syntax, but after using laravel it like another thing

    • @mohamedasem6523
      @mohamedasem6523 5 лет назад +1

      @@abdot604 i hated it for the same reason .. will laravel solve this problem!

    • @abdot604
      @abdot604 5 лет назад +1

      @@mohamedasem6523 yeah laravel is clean and easy to understand and it saves you alot of time

  • @CViniciusSDias
    @CViniciusSDias 5 лет назад

    Why don't you never give real life examples. You say: it's very easy to write unsafe code with php.
    Which unsafe code is easy to write in php but not in other languages?

    • @aristidisbarlos6391
      @aristidisbarlos6391 4 года назад

      Reputation is everything.Unfortunately PHP has a bad rep although it is safe imo as any other language anymore.

  • @RashadPrince
    @RashadPrince 5 лет назад +1

    I've been told the same thing

  • @morrismunyu9106
    @morrismunyu9106 5 лет назад +1

    Good work buddy..keep doing the good work🔥🙏

  • @novailoveyou
    @novailoveyou 3 года назад

    Exactly!

  • @brucethomas1720
    @brucethomas1720 4 года назад

    I'm happy to see that you're still around! I used to watch your very first videos in that basement with the train as background noise :-D (When emojis looked like that, too)... I had some doubts with php and remembered you, I'm happy that you found a way to monetise your content and that you're still creating it!

  • @kelvinotieno4381
    @kelvinotieno4381 3 года назад

    That's exactly the kind of situation I am trying to deal with right now...been given php code to edit, I can't even right click on a function and go to its definition coz I guess it has been imported from some other file.......Maan really frustrating. But it's a job so just have to figure it out....

    • @nowieszco868
      @nowieszco868 3 года назад +3

      Get better IDE. Have you tried PHPSTORM?

    • @kelvinotieno4381
      @kelvinotieno4381 3 года назад +1

      @@nowieszco868 Thanks for the response. I was using vscode but I finally managed to crack it using a few php extensions. I guess I was just frustrated at that time. Thanks........