Тёмный

PHP - Why Coders Hate... 

Eli the Computer Guy
Подписаться 1,1 млн
Просмотров 56 тыс.
50% 1

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.

Наука

Опубликовано:

 

25 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 274   
@elithecomputerguy
@elithecomputerguy 5 лет назад
Go to www.elithecomputerguy.com to copy/paste code samples
@lemongrapesfilms
@lemongrapesfilms 3 года назад
gettype(), get_class(), isset(), is_null()... beautiful consistency 😍
@xBZZZZyt
@xBZZZZyt 3 года назад
who is naming functions?
@kaelon9170
@kaelon9170 3 года назад
@@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.
@PsychoTaker2305
@PsychoTaker2305 3 года назад
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 года назад
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 года назад
@@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 года назад
I fell sorry dude :/
@PlayEthernia
@PlayEthernia 2 года назад
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?
@gadget00
@gadget00 2 года назад
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 2 года назад
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 лет назад
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 года назад
@@dahohi if you know php then it looks great
@gurung1812
@gurung1812 2 года назад
That's the thing I get tired of hearing about php
@emperoroftheearth3215
@emperoroftheearth3215 3 года назад
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.
@pg1337ful
@pg1337ful 5 лет назад
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 года назад
Told people don't judge, and then immediately judged other people. Make sense.
@pg1337ful
@pg1337ful 4 года назад
@@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 года назад
@@xhotweb I don't see any assumptions in my text, just experiences.
@xhotweb
@xhotweb 4 года назад
@@pg1337ful Yes, reading can be hard sometimes.
@Neodynium.the_permanent_magnet
@Neodynium.the_permanent_magnet 2 года назад
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 года назад
and for this same "ease of programming" , people praise python ! messy world lmao
@gadget00
@gadget00 2 года назад
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
@StarsiteProgrammers
@StarsiteProgrammers 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.
@bernardocarvalho2177
@bernardocarvalho2177 2 года назад
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 года назад
Wait, so which language did you use finally?
@santiagocorrearestrepo6852
@santiagocorrearestrepo6852 2 года назад
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.
@testaccount-ts5nv
@testaccount-ts5nv 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.
@delturge
@delturge 4 года назад
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 😂.
@neptronix
@neptronix 2 года назад
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! :)
@turbulentgazelle6276
@turbulentgazelle6276 5 лет назад
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 года назад
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 года назад
@@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 года назад
@@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.
@dennismatsson9995
@dennismatsson9995 3 года назад
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 года назад
Yeah, now we have OOP and MVC problems instead.
@mmh708
@mmh708 5 лет назад
Thanks for expressing this so well. Definitely my go to video to explain this phenomenon.
@davidbasil2727
@davidbasil2727 4 года назад
Never seen people in real life hating php. Only articles and videos about why people hate php.
@gadget00
@gadget00 2 года назад
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
@franciswillyfernandez5905
@franciswillyfernandez5905 2 года назад
I love PHP it saves my career as a Web Dev
@DublinGreen
@DublinGreen 2 года назад
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. 😉
@coltonwilliams1565
@coltonwilliams1565 5 лет назад
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 лет назад
THERE IS ABSOLUTELY NOTHING WRONG WITH PHP. Bad code can be written in any language. Bad code is what is bad.
@coltonwilliams1565
@coltonwilliams1565 5 лет назад
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 лет назад
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 лет назад
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
@DJ-pn9te
@DJ-pn9te 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.
@flan_02
@flan_02 2 года назад
php lover from Argentina. Good Channel eli. Cheers !
@joydeepbhowmik6181
@joydeepbhowmik6181 Год назад
Your are taking about php in 2010 it's has changed and improved a lot ....a whole lot
@hugoderre3967
@hugoderre3967 2 года назад
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!
@jasper2virtual
@jasper2virtual 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!
@Gandoff2000
@Gandoff2000 5 лет назад
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
@AzaLPs
@AzaLPs 5 лет назад
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.
@jdotsystem
@jdotsystem 4 года назад
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
@ImaginaryNumb3r
@ImaginaryNumb3r 5 лет назад
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 года назад
@@navjotsingh2251 php is faster lol, and now it's a decent oop language
@tedv8323
@tedv8323 Год назад
Welllllll, for a guy who comes from Perl It was a smart thing to do learning PHP a few years back :)
@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!
@Me-vc4sf
@Me-vc4sf 8 месяцев назад
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
@ci7alex1
@ci7alex1 5 лет назад
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.
@brendentorres7319
@brendentorres7319 3 года назад
As an intern learning php specifically for going back through code built years ago, I took offense to this hahaha.
@romany.1322
@romany.1322 5 лет назад
ELI IS BACK!!! Keep it up man, missed your educational videos so much.
@GhazaliGhoussb
@GhazaliGhoussb 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.
@GlennLittleford
@GlennLittleford 5 лет назад
Having spent years working in Classic ASP, I found PHP the easiest language to move to. Messy code works.
@oaxacachaka
@oaxacachaka 5 лет назад
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.
@mirzasisic
@mirzasisic 5 лет назад
PHP 7+ is a lot better then the older versions, faster too.
@Cognitoman
@Cognitoman 5 лет назад
Mirza Sisic yea
@mmh708
@mmh708 5 лет назад
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 лет назад
@@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
@tomiikunxd
@tomiikunxd 3 года назад
whoop de doo, glad I'm not the only one, just got hired on the spot for a PHP developer position 😭😭
@soulmask2781
@soulmask2781 3 года назад
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.
@fatlip8315
@fatlip8315 14 дней назад
Should we call PHP C for the internet?
@bigollie006
@bigollie006 5 лет назад
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 ;)
@gerff01
@gerff01 5 лет назад
It is a problem with documentation, and commenting your code, not the language.
@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.
@adammontgomery7980
@adammontgomery7980 5 лет назад
I think it's more about database design. PHP should just serve as an interface to the DB.
@ojsojs6004
@ojsojs6004 5 лет назад
@Adam Montgomery design? You can write well designed pattern with php. using laravel or symphony is like using java spring or c# at .net.
@Quiestre
@Quiestre Год назад
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.
@armincal9834
@armincal9834 5 лет назад
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 лет назад
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
@AFuller2020
@AFuller2020 3 года назад
Ok so you talking about a system that is ugly and works, what is the other option? Wonderfull and expensive?
@hasanramadan4791
@hasanramadan4791 5 лет назад
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 ?
@codefields
@codefields 2 месяца назад
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.
@EagerEggplant
@EagerEggplant 2 года назад
Wait are you the guy Rossman bad mouths?
@dmitrykim3096
@dmitrykim3096 3 года назад
Maintainability is the most important thing currently
@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 ?
@eldinmujovic8705
@eldinmujovic8705 2 года назад
At the end, it depends on the situation, but a lot of web is PHP written,...
@xBZZZZyt
@xBZZZZyt 3 года назад
PHP: Can't XOR string without lot of appending. Can't disable request array making (a[0]=do&a[1]=not).
@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
@dibraniuk
@dibraniuk 5 лет назад
I thought you left youtube for good! I was really considering joining your other website.
@khaledkachkorian2486
@khaledkachkorian2486 5 лет назад
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 лет назад
@@abdot604 i hated it for the same reason .. will laravel solve this problem!
@abdot604
@abdot604 5 лет назад
@@mohamedasem6523 yeah laravel is clean and easy to understand and it saves you alot of time
@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
@mrzisme
@mrzisme 4 года назад
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.
@morrismunyu9106
@morrismunyu9106 5 лет назад
Good work buddy..keep doing the good work🔥🙏
@ixxgxx
@ixxgxx 3 года назад
Ahh Wordpress must run on c++
@ngreat4390
@ngreat4390 5 лет назад
Thanks for explaining why everyone hates php. I'm new to this...but I'm stunned at how much hate php gets
@thefreshprince-t4m
@thefreshprince-t4m 2 месяца назад
PHP is cool.
@TheRoqco
@TheRoqco 5 лет назад
no mention to Laravel?
@zekeowen1787
@zekeowen1787 2 года назад
Really value these videos
@AshleyMeah
@AshleyMeah 5 лет назад
I feel PHP will be the primary way forward for the current WWW as we know it for some time, and Id personally recommend PHP as a starting point, With some experience in the field you will learn to adapt to new languages quite easily, most job listings seem to be for PHP or ASP.NET
@remoarnoldchestera.2382
@remoarnoldchestera.2382 5 лет назад
Ahm hello I'm just learning PHP few Months ago but I find it difficult coz I don't have any experience about coding I have basic undertanding of html and css then I move up to php, Can you give me an advice to improve my learning? Btw I don't have money to enroll my self in online courses so I find it difficult. Thanks in advance! :)
@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."
@CottonInDerTube
@CottonInDerTube 4 года назад
"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.
@SoundHouseRocks
@SoundHouseRocks 5 лет назад
What you said is absolutely true. My PHP programs have such dirty codes. Hope to get better on this matter
@ojsojs6004
@ojsojs6004 5 лет назад
@John Stuart you can write bad codes with any language. Study design patterns and use php frameworks like laravel or symphony.
@navjotsingh2251
@navjotsingh2251 4 года назад
Study SOLID and OOP principles. Get in the habbit of writing UML diagrams and flowcharts to explain your algorithms, and nodt importantly comment your code each step of the way.
@ipodtouch470
@ipodtouch470 2 года назад
@@navjotsingh2251 to add onto this you should follow up with design patterns
@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.
@smurfisevil
@smurfisevil 5 лет назад
PHP isn't bad first programming language to learn , it's probably one of the easiest to deploy to web as free and inexpensive hosting is widely available. Learn some good design patterns , unit testing for negative and positive testing to catch broken code when refactoring etc ... learning how to use GitHub would also be useful. Having said that , if you are looking for a development job , learn JavaScript/TypeScript , There's QA automation job using protractor , back-end using NodeJS , front-end using Angularjs/React/Vuejs. If you get into a company writing QA automation , its very easy to find a opportunity to move into development role. I should also suggest learning some NoSQL and SQL.
@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.
@saumilsunilshah5663
@saumilsunilshah5663 4 года назад
idk why people hate it , it is such a nice language
@maxbip
@maxbip Год назад
PHP is hated because his flexibility. There are nothing like bad design.
@AshleyMeah
@AshleyMeah 5 лет назад
Iv been using PHP for about 10 years, its the way that was popular when i was getting into web development so maybe I am biased. I feel the reason views of PHP can be like this is not because of any reason listed in this video, its not because PHP is easier than c# or any less secure. Its because the WWW dominates the internet, and PHP dominates web servers - its only logical your most used tools will get blunt right? these are the tools of our generation and we just need to teach people how to sharpen their knifes and not accept the clients word; just like you wouldn't write your employees blank cheques for them to fill in their salary
@hanes2
@hanes2 5 лет назад
I left PHP once Composer was new, it was such a one step forward two step backwards and to this date, PHP still way behind in technologies of what PHP can do.
@AzaLPs
@AzaLPs 5 лет назад
That's usually what PHP developers say. One of the problems however, is that when you're in the little pocket universe that is PHP, particularly for a ridiculously long time, then it can be very difficult to see all the problems with PHP. After a certain point, all the problems become "normal" and if you never interact with anything else, then you assume that the entire world is like that. I almost never run into security issues with other languages. The SQL Injections, the issues with file permissions, the in-built sessions which have problems every now and then, the random number generator which sometimes doesn't work in some versions, the thin layer over C so occasionally someone can slip a null byte through to cause major distress, etc. Did you know that can achieve arbitrary code execution with serialize()? Looots of people use that instead of the more secure JSON, as it's in by default. With PHP, I have to constantly be paranoid about security about just about any innocent thing.
@AshleyMeah
@AshleyMeah 5 лет назад
​@@AzaLPs you obviously dont use anything but PHP then. I use c#, assembly a little bit of python and a little bit of c++ Nothing you said is exact to PHP and can be applied to anything... Tell me one point PHP has thats bad that ASP.net or any other language does not have? Again, like iv said, the www is main use of the internet, so of cource its the main target. Its much easier to exploit a web app vs recompiling and rebuilding software. Programmers dealing with software also have more experience with the bigger picture. Thats the problem, everyone goes to HTML and PHP to learn. So as you see... people are learning.
@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.
@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 года назад
Get better IDE. Have you tried PHPSTORM?
@kelvinotieno4381
@kelvinotieno4381 3 года назад
@@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........
@nachosniegenserio
@nachosniegenserio 4 года назад
You don't hate php code, you hate php coders.
@stef1896
@stef1896 5 лет назад
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.
@akiw.407
@akiw.407 5 лет назад
To be honest, not most coders hate PHP. Usually, those who are not experienced in PHP dislike/hate PHP. So, it becomes a strerotype. On the other hand, experieneced coders/developers may hate PHP due to its performance when compared to NodeJS for fast, real-time web application. In the term of maintainability, and its OOP, PHP has come much more better than what it is used to be.
@AzaLPs
@AzaLPs 5 лет назад
I dislike PHP precisely because I wrote PHP for ten years. I know it and it's flaws very well. And it is slow, although not necessarily in the ways you would expect. A lot of the slowdowns come from it being synchronous and throwing away all the work it did every request rather than the interpreter being slow (which is what people usually think).
@ojsojs6004
@ojsojs6004 5 лет назад
@@AzaLPs php is not slow. Php 7 is 3 times more faster than python. With swoole, php blows out nodejs at asynchronous speed.
@ojsojs6004
@ojsojs6004 5 лет назад
Php swoole blows out node js in terms of speed at realtime applications.
@maxosall6972
@maxosall6972 4 года назад
PHP was my first choice but just hated its syntax, so switched to ASP.NET
@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
@novailoveyou
@novailoveyou 3 года назад
Exactly!
@rogernevez5187
@rogernevez5187 5 лет назад
Is there a clear+concrete example showing why PHP can become a mess while others don't ?????
@nafisishtiaque
@nafisishtiaque 2 года назад
I can debug JavaScript or c# for hours. But php error gives me headache 😜
@ko95
@ko95 5 лет назад
okay in php is easy to break conventions, how to learn the convention?
@A5tr0101
@A5tr0101 4 года назад
Check out Symfony Framework
@wk4240
@wk4240 2 года назад
One Word : Wordpress. Enough Said.
4 года назад
It functions, unless you're dealing with 3rd-layer imports. Import a file in a file that is in a different directory from the file you are executing and your relative code imports start to crumble.
@suzesiviter6083
@suzesiviter6083 5 лет назад
The biggest flaw is allowing peeps to create variables on the fly, besides others such as not enforcing strict variable types, programming in php is like hiring a cowboy builder, might get the job done quick but....
@ojsojs6004
@ojsojs6004 5 лет назад
Suzy Siviter that is open for debate. Some like dynamic langauge and the advantage it can give and some like static language. Php can do type hinting. With php 7.4, it will now have types. Ever heard of laravel.or symphony php frameworks? You can do well designed patterns with php.
@ashishkpoudel
@ashishkpoudel 5 лет назад
So dont use javascript, because its also loosly typed, same dynamic variables
@suzesiviter6083
@suzesiviter6083 5 лет назад
@@ashishkpoudel Javascript is a little tighter than PHP, least you have to predefine variable types, you try setting a variable to zero in php its also the same as null, that is just bad design, I say all this as a PHP developer though, it is a fast language, where as javascript can look very messy in certain situations like object creation.
@suzesiviter6083
@suzesiviter6083 5 лет назад
​@@ojsojs6004 I have, but I havent looked into them yet, but will do so now. Dynamic variable creation is a double edged sword, on one hand its speedy and keeps relevant code together, on the other it can cause lengthed debugging in complex code, I prefer languages a bit 'tighter' but I do come from a C background. Isn't type hinting more down to the text editor than the PHP build?
@mr.RAND5584
@mr.RAND5584 3 года назад
Php framework helps?
@carterdee7084
@carterdee7084 3 года назад
Yes. Laravel helps a lot. As long a you understand oop
@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.
@konstantingeist3587
@konstantingeist3587 5 лет назад
PHP wasn't designed to be "easy to use". Rasmus just threw a bunch of code to make his homepage work, without any forethoughts. As a side effect, it was easy to use, because the culture at the time didn't require you to know any software design theory, just throw a bunch of code to production.
@RashadPrince
@RashadPrince 5 лет назад
I've been told the same thing
@omniversal4739
@omniversal4739 4 года назад
It's just as easy to learn as Javascript.
@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.
@arnelGo-fj7qc
@arnelGo-fj7qc Год назад
ouch!
@rohanbangera1623
@rohanbangera1623 5 лет назад
I'm having a booting problem whenever my computer shuts automatically....I'm too having a Hard Disk problem...Does cleaning my 1TB HDD will make it a new HDD?...Do I will face this problem again in future
Далее
PHP -  What is Needed to Learn...
10:56
Просмотров 11 тыс.
Why do big Companies use Java, and NOT PHP?
12:34
Просмотров 223 тыс.
Spaghetti Code - What is...
7:25
Просмотров 9 тыс.
PHP - Why Learn...
6:30
Просмотров 24 тыс.
Should You Learn PHP? - Pros and Cons
10:56
Просмотров 138 тыс.
What Is PHP?
7:46
Просмотров 152 тыс.
PHP in 100 Seconds
2:21
Просмотров 1,3 млн
PHP - Send Emails - mail()
14:59
Просмотров 10 тыс.
AI and Python - OpenAI API with Python Introduction
1:58:39
Наушники dyson
0:12
Просмотров 410 тыс.
Камера после выхода iPhone 16 Pro
0:11