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
▶️ 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
Ah, the PHP, a language that's officially been dead since 1995 according to the super awesome master basement coder gurus on the Internet.
Haha yep!
“There are only two kinds of languages: the ones people complain about and the ones nobody uses.”
― Bjarne Stroustrup
lol
And then there's php, somehow being both kinds at the same time
@@producdevity so you say nobody is using PHP yet they complain about it! Weird.
@@producdevity In what world is PHP not used? Literally a quarter of the internet (if not more) uses it.
@@ivanyosifov2629 yes sir. I complain about it all the time and I don’t use it
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.
yep
"Fuck PHP."
― Bjarne Stroustrup
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
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.
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)
Yes it’s free forever
No.. no.. it’s not
@@georgem9686 Just check in today it still is free.
I love this format, I learned php at school and it is true that we understand it quickly, it is powerful too
Definitely!
You are an amazing storyteller 👌🏼
Thank you!
True
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.
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
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.
Немчинский, я тебя узнал.
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.
nice
short answer: yes
guess you didn't watch the video
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).
Who cares about the criticisms of the language in the past? Are you arguing just to argue?
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
@@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 :)
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.
Ha, you didn't watch the video..did you lol
Thank you Codemy, I appreciate the free course! I had no idea it was possible to create a site quickly with Php! Thank you!
Sure thing...to be clear, you don't NEED php to build a quick website...
Ololo xD
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.
there's 2 types of languages: that everyone hates and that nobody use
@@maxk6655 yes
I think that "Bob" also have static website hosting business.
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
yep
PHP = pretty horrible and pestilent
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.
lol yep!
I care, I am using it for big projects
Every programming language sucks in one way or another.
Not really..
PHP sucks lmao
You speak the same as the guy who does crash course astronomy
I have no idea what that is
Great story. Thanks for the insight
Thanks for watching!
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.
I am comparing the PHP Zend Engine with Chrome V8 Engine it appears PHP is slow compared to Node JS any reason?
That was hilarious!!
:-p
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.
yep
I never understood the hate of php
Me neither
I love PHP. Its easy to use, matured, widely supported and scalable.
Scalable if done right👍
anyone who has coded in PHP should go to jail.
😂😂😂
😂😂😂
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
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.
@@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
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
Ha! I mean, PHP can do that easily, the people who built that software were just idiots.
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.
Yep...in theory :-)
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
Sure thing, though I have videos on querying the database in the playlist already...it's the same thing
what do you think about laravel?
I don't
@@Codemycom can I get a job with just raw php?
@@creativeminds5222 of course
so the conclusion is put comments if working in any department for any programming languages
Ha, something like that...
yes
php 8.1: Am I joke 4 u?
I was searching about Laravel and this video was so cool!
Glad you liked it!
Excellent!!! 😂😂😂 Now I know that Billy has been in the "business" where I am 😱
Haha!
didn't see you for two weeks hhhhh thanks for uploading
Check the community tab for updates
PHP doesn't suck, "most" PHP developers suck.
Haha good point
@@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.
Laravel is better than any other backend framework.
lol no it's not
The problem with php is that it has a lot of inconsistencies
not really...name one.
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.
Thank you John! great gift and amazing yt channel!
You are very welcome!
This guy is my favourite
Thanks!!
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?
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.
@@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.
@@DevlogBill Glad you enjoyed it. Sorry, no courses on Laravel, I don't believe in using frameworks for PHP.
@@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.
Pretty interesting video.
Thanks!
This was exactly what I needed. Thanks again!
Happy to help!
Much needed great advice!
Thanks!
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...
Yes.
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!
Thanks for the heads up!
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.
yeah
YOU ARE A GREAT INSTRUCTOR. THANKS FOR SHARING YOUR KNOWLEDGE
Thanks for watching!
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."
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.
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 😅
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?
nobody uses plain php nowdays try learning laravel symfony and come back again and make video again
Incorrect
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
Stockholm syndrome
@@dorktales254Hell yeah, choke me spank me PHP 8.3
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 .
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