Agree.. keep it simple.. in old times you just installed apache and php and mysql and you good to go.. nowadays.. devs try to understand why code does not work with many shity frameworks.. the best is keep mostly vanilla
@nickvledderКүн бұрын
Big thanks! I still love the combination of PHP and vanilla JS to play with. Especially making good use of AJAX make the webportals I create stand out. Oldfashioned? Probably yes! 😀
@lionelthetechlead88395 сағат бұрын
Nope. It's stable and it works. Focus on the problem you are solving not so much the how.
@davidspot191Күн бұрын
Thanks.
@darcvm771624 күн бұрын
It is always the same, one simple opinion becomes five kilometers of debate!! He is just expressing his point of view in the form of an advice!! He is not rounding up people to be publicly shamed if not in accord with him!! This is programming, at the end of the day each one will end up using the tools best suited for their project.
@yahya-d3yАй бұрын
laravel is slow.
@rudythorns84112 ай бұрын
actually sir i am learning php right now thursday /24/2024 started learning it since monday lookinf forward to learning mysql too. i chose to learn it because it seems i cannot find jr dev job for js dev environment while i look on the job postings and it seems i am able to find jr dev job that require php,sql/mysql etc so it did sparked some interest for me wish me luck
@lionelthetechlead88392 ай бұрын
JS seems to be slowing down. People realize that it's no efficient to do JS and not many people need front and back. PHP remains a big market player
@yamix-tr2 ай бұрын
we can all agree that looking at this sucks <?php foreach ($products as $product): ?> <li class="product"> <h3><?php echo $product['name']; ?></h3> <p>Price: $<?php echo number_format($product['price'], 2); ?></p> <?php if ($product['in_stock']): ?> <p>Status: <span class="in-stock">In Stock</span></p> <?php else: ?> <p>Status: <span class="out-of-stock">Out of Stock</span></p> <?php endif; ?> </li> <?php endforeach; ?> but this doesn't : @foreach ($products as $product) <li class="product"> <h3>{{ $product['name'] }}</h3> <p>Price: ${{ number_format($product['price'], 2) }}</p> @if ($product['in_stock']) <p>Status: <span class="in-stock">In Stock</span></p> @else <p>Status: <span class="out-of-stock">Out of Stock</span></p> @endif </li> @endforeach readable, easy on the eye & we can make reusable components without echo a bunch of HTML Lines on a function to render it LOL
@DaDaBIK2 ай бұрын
No, actually I think almost every (non-biased) person would say that we're just talking about very very small syntax differences. Also, you can improve the first version by using <?= instead of <?php echo. So unless you're afraid of question marks for some reason, I don't see how the second approach is that much more aesthetically pleasing than the first :)
@yamix-tr2 ай бұрын
@@DaDaBIK maybe Gen whatever before Z like old stuff, Who knows ? i'm sure they are not biased too ... if wasting more 15 minutes total a day trying to make my eyes relax to read an if statement where everything starts with < inside an html template was worth it i would agree with you
@DaDaBIK2 ай бұрын
@@yamix-tr I wouldn’t rely on the overused "Gen-Z vs. the rest of the world" argument to justify this, especially considering that template engines are a very old concept in the PHP worlds, with systems like Smarty dating back to 2001.
@chrislopezzz3 ай бұрын
Came across the "Smarty TE" years back in the early 2000s and never quite understood the point of it, plus the added performance overload. Finally a video that confirms this! thanks.
@lionelthetechlead88393 ай бұрын
Right you are!
@vitaliejalbu82063 ай бұрын
can you do also a video statamic cms vs craftcms?
@lionelthetechlead88393 ай бұрын
would like to, but I just don't use statamic so it wouldn't be fair to do a comparison
@macverishe34804 ай бұрын
Has anyone seen a non-trivial/real-world python application? It's so messy and horrible with just indentations, its like spaghetti code if it is a ton of lines, don't get me wrong I do not dislike Python (it has its place in simple apps) , but PHP is way more readable to me.
@lionelthetechlead88394 ай бұрын
The variables don't have any identifier and the tabs without brackets do make it harder to read. But a major issue is just how you include files
@carlo78004 ай бұрын
Just paused to say fu with your nokia 3210 The. Wtf dude
@KomentarSaya4 ай бұрын
why i came here, typing "php or javascript first ?" AI generated by google
@saadideas36024 ай бұрын
We can create plugins if we want and customize everything, even changing core of wp
@nickvledder5 ай бұрын
Of course PHP is good. It's not only the language, but the whole ecosystem is great, Just do some projects in Python with its "virtual environment" and incompatible versions and you realize why Python is absolutely crap.
@TheKaunter5 ай бұрын
Start to learn Java or C++ these are languages
@budiardjo66106 ай бұрын
thanks for advocate this.
@IK-vf4js6 ай бұрын
Was Du sagst hat bestand! Wenn ich es richtig verstanden habe den Html Code direct in der Ausgabe von PHP zu integrieren. Ja das Rendering in Framworks ist ein Lebenszeit-Räuber ;)
@KoShuFW6 ай бұрын
Yes. Except this clown makes light of a complex issue. Some people pointed out scenarios where his statement is not true. Also no one is stopping you from having extremely simple template where backend is doing 90% of the labor. I did not code in many years, but I see what technology has to offer and nothing changed fundamentally in the last 20 years. I would still use Smarty today and I would still write my own framework from scratch. But if I was doing something very simple where it is possible to use an off the shelf product I would pay someone else to do it. I rather go fishing.
@hosterplus6 ай бұрын
Sehr interessantes Video, Lionel! 👏 Deine Ausführungen zur Flexibilität und Modernität von PHP sind sehr aufschlussreich. Besonders die Beispiele zur Verbesserung der Lesbarkeit und zur Verwendung von Blöcken statt geschweifter Klammern zeigen, wie vielseitig PHP sein kann. Eine Frage hätte ich: Wie siehst du die Zukunft von PHP im Vergleich zu anderen modernen Programmiersprachen? Glaubst du, dass PHP seine Relevanz behalten wird, oder siehst du andere Sprachen auf dem Vormarsch? 🤔 Freue mich auf deine Antwort und weitere spannende Videos! 😊
@elmyrockers6 ай бұрын
template engines will save a lot of development time.... template engine will generate php version.... in production, it will only render generated version... which is in real php code... u should compare its benchmark first....
@AlistairGrahamuk6 ай бұрын
You hit the nail on the head ( dev for 17 years )
@mnchabel84026 ай бұрын
honestly, PHP was the easiest programming language to learn. C++ the hardest.
@arshitpatel29846 ай бұрын
How to increase file upload limit. Default upload limit is 16MB. Increase 16MB to 32MB
@aiamfree6 ай бұрын
IMO, Code is as readable as a dev writes it, the language has nothing to do with it
@airaction64236 ай бұрын
Sure php is ugly. Putting functions inside variables or using nonsense lambda like this is the future: let multiply = (a, b) => a * b;
@nimmneun6 ай бұрын
funny enough though ... you can do $multiply = fn ($a, $b) => $a * $b; in php ... well at least you can add types in php "natively" $multiply = fn (float $a, float $b): float => $a * $b; 😅
@turnbrain30496 ай бұрын
If php is ugly then all C style languages like c++, c#, java and javascript is ugly too.
@youaskforit6 ай бұрын
I refresh 2x, finished the video and refreshed once more. I still get 720p. Pls upload in higher quality. Anyway, just a minor correction on the string interpolation. It's not new. It's been there for a while. You can just do it a couple of ways. ie. "Read the file $file_name" or "Read the file {$object->file_name}"
@lionelthetechlead88396 ай бұрын
Hum... I only saved it as a standard quality assuming most people watch it on their phones. Will save it next time in HD if you guys want to see the code. It's been around since 7x, but to all the PHP haters who give examples of messy code, IT IS NEW to them otherwise they would show case it. The {$file_name} is an example of how you do not have to use the dot concat with strings.
@nickvledder6 ай бұрын
No, it's just like humanity: very effective in an ugly way.
@thommccarthy11397 ай бұрын
It's kinda ugly but that doesn't bother me. I do hate stuff like this '->' which is not the quickest keystroke for grabbing nested stuff within an object etc. '.' is fine for this purpose.
@lionelthetechlead88397 ай бұрын
yeah... too bad we already used the 'dot' for concating strings. On the flip side we don't use the + to concat strings which can be a bit confusing as it adds numbers in PHP and 1 + "1" is also 2... :P
@thommccarthy11397 ай бұрын
@@lionelthetechlead8839 yeah just wish it was a single character, for as much as you need to grab properties it is fatiguing. I don't write php every day so I'm sure I would get used to it but it's enough to annoy me when I need to use the language. Otherwise it's a great and productive lang.
@lionelthetechlead88397 ай бұрын
@@thommccarthy1139 yeah, if it really get up there you could try binding a shortcut to a single character and then tab to create the ->
@hebermachel41177 ай бұрын
Excellent content, Mr Lionel. I live in Brazil. I am a medical student and I would like to create a study platform (webapp) focusing on science and mathematics (high school level) with 500-1000 simultaneous accesses. Is it possible to create this web application with a wordpress plugin? (built from scratch) If so, how scalable is Wordpress and what precautions should I take? If not, what php solutions should I use. I know a little bit of html, css, js, and php. I apologize for any writing errors. I'm still working on my English.
@lionelthetechlead88397 ай бұрын
I recommend you start with an agile process. Pay someone to do mock ups via figma of your idea and ask people if they will 'pre sign up' with a google form. You'll then get a feel about the demand of your product and the next stages.
@hebermachel41177 ай бұрын
@@lionelthetechlead8839 A viability study is required. you are right. I made the mistake of thinking that because so many people had already contacted me with the intention of taking classes with me, that this would be enough to justify a website. Thank you very much.
@lionelthetechlead88396 ай бұрын
@hebermachel4117 just mvp is enough. Can you deliver something manually over Google drive that they will pay for. If yes then start!
@skavihekkora50397 ай бұрын
If php is ugly then js is unsightly. Anyway php is best for web, it's a tool and only in this context comparisons make sense. It's tailor made for smes and startups. Serious people know that, it needs no defence imho.
@lionelthetechlead88397 ай бұрын
This is a mistake I made assuming that those in the know will tell other people. Perception is reality and you can brainwash people just by repeated saying the same untruth. There are countless dev, investors, co-founders and startup people who make this judgement without even trying it out themselves. That's why I'm here!
@skavihekkora50397 ай бұрын
@@lionelthetechlead8839 I think you be more useful teaching architecture for sme and startup like solutions, hints on decision making for php related tech stack on such projects, etc, sharing senior experience and helping others to grow.
@miindaugas7 ай бұрын
It's not hard it just require 30,000 hours to get remotly good at it.
@lionelthetechlead88397 ай бұрын
and practice 25 hours a day ling ling
@rangingaway927 ай бұрын
I really don't understand why is Laravel praised as the savior of PHP, when it's overcomplicated boilerplate garbage. Vanilla is and will remain my #1 because nothing beats speed / efficiency when you are free to start with only what the client needs and add on. Maybe Tron will be #1 soon.
@lionelthetechlead88397 ай бұрын
Woah unfortunately we can't kick own goals. It maybe bulky but it sure has a strong marketing team behind it. I've said the same about WP, but it's stronger than ever. So since we're all on the same side there's no need to fight. I personally like Yii2 because it's like what you said, uncomplicated and has a lot of power to get things done.
@rangingaway927 ай бұрын
Only companies and managers need frameworks and standardization to be efficient and profitable. But I like your starting logic, that by just reusing my custom code and scripts / libraries is like a framework, haven't thought about it that way. I still think frameworks are trash in 90% of cases.
@lionelthetechlead88397 ай бұрын
That's correct. If you reuse your own code it's a framework. Just your own.
@anarchymatt7 ай бұрын
Php copium
@reductor_7 ай бұрын
The video you mention is from a youtuber that has hot takes which miss the ball, responding to it seems barely worth it. The vulnerability is bad but most buffer overflows are, it's not impossible to fix there is fixes for it and there is workarounds for it. With iconv there could indirect calls to it which could make it exploitable, not just your direct calls, so you should be concerned with Also "tech lead" for a KZbin channel name is tainted and used by someone else who is very toxic, I nearly didn't watch the video solely because of the name. It also seems more like a personality weakness that you need to say your title rather then have the content stand for itself.
@lionelthetechlead88397 ай бұрын
As the PHP.net official response covers, the Icov must be called inside the application and supplied with inputs that cos the buffer overflow. This mainly covers users input as an indirect call within the application would probably be fixed as part of a halted script. Yeah the other Tech Lead was actually a great source of insights into the industry many years ago and only in the last 2 years has that channel become extremely clickbait and scammy after his divorce, which is kind of sad. I've had the position of Tech Lead even before that channel was up. Despite that channel, Techlead is a respected positive within the industry of someone who leads the devs and tech stack, like the Captain of the ship. Not only do you manage a tech of devs but you need to work with management and ultimately make decisions on the tech side as well. It's a different perspective than a developer or code teacher.
@reductor_7 ай бұрын
@@lionelthetechlead8839 indirect calls can come from third party libraries, builtin extensions or third party extensions which people use, even just looking at builtin things if you follow the path of imageftbbox you'll find it can lead to iconv. While the hype around it is much more then it should be, that's not to say you aren't indirectly using it iconv is typically something business logic code would call but more lower level code. The other tech lead I never saw put out much of use, was mostly self promotion, repeating known things, and causing drama, he was never really respected at least not in the circles that I've been in, him scamming people came as no surprise to many people. He got a weird group of followers I suspect mostly because of the toxicity the internet seems to follow it and drama.
@aungmin19297 ай бұрын
Would you say that php and laravel is a good first job for an entry level developer?
@NemoOfNautilus6 сағат бұрын
Go for it
@huanghanzen7 ай бұрын
YII2 + Vue is amazing make life easier.
@jakobherbst95017 ай бұрын
We should get informed over such issues, and they do need to be checked out, but if we treat every vuln. as a 10/10 it will playdown major ones like log4shell,wannacry etc.....
@lionelthetechlead88397 ай бұрын
Always check the php.net as the foundation take up these issues quite quickly.
@sad_man_no_talent7 ай бұрын
Ex tech lead hates your name
@lionelthetechlead88397 ай бұрын
... say my name...
@sad_man_no_talent7 ай бұрын
@@lionelthetechlead8839 techlead no.8839
@CaimAstraea7 ай бұрын
People didn’t even look into the vulnerability it only work in a barely used non default encoding
@lionelthetechlead88397 ай бұрын
All this sky falling. Do you think it's a 8/10 venerability?
@kevinrineer53567 ай бұрын
Anything non-default or unlikely to exist by a slight drift from the default should be capped at a 5/10 CVE rating.
@CaimAstraea7 ай бұрын
Agree didn’t even know about this encoding existing. I think mostly affected systems would be ones in China that need to import data from external sources and specifically use the iconv ?
@bartech1017 ай бұрын
Haters gonna hate. PHP is the GOAT of the web.
@jenegrege51707 ай бұрын
Interesting video. I havent heard about this problem. Thank you for the information.
@jojob_clips2697 ай бұрын
Good that youre thinking clearly first and explain properly. Some people when they saw the word "vulnerability" they assume the worse. Its funny that these so called "developers" doing these videos jump right away to conclusion that its risky right away without even thinking logically. Thanks for explaining properly. Even me, i havent used that function even once if I Remember 😂. And only a crazy dev will not filter or sanitize user inputs anyway.
@lionelthetechlead88397 ай бұрын
Exactly. What I don't like is that they splash it as a warning and then product managers and executives see it and conclude that PHP is so dangerous. When it is not. I dun see any follow up on this issue especially from PHP foundation. Worst they call it an 8/10. I have never seen this function in my life!
@jojob_clips2697 ай бұрын
@@lionelthetechlead8839 Just to share, my previous company was acquired by a large company and now they retain us and one of our original apps is made of PHP, and all of their apps are made of Java, the funny thing is, they cannot kill our product because its still giving revenue and when it comes to infra its still solid. And then there's the vulnerability issue I think last year? the Log4j issue. Every application in the company started panicking. And we are just laughing about it because my team are just chilling haha. And our app is still going strong. We even have a plan to upgrade the PHP version to the latest one. And take note. One of their Java app is trying to catch up to our functionalities because even though our app is made of "PHP" it's a very large application. I can attest that php can do very large applications. And not to brag, our app is fast when it comes to processing. It really goes down on how you optimize your application regardless of the tech stack. These crazy tech videos that tell you this, ant that. seems doesn't experience working in a very large corporations. with lots of governance going on where security for the applications is a must and is very strict.
@dinaashrafjunior33277 ай бұрын
Guys, PHP will always be the mother of all the web. Yes many languages are getting more publicity and glory and there is nothing competitive about that. It is always a good thing for us developers to be or to have as many options out there but coming back to reality, PHP and JAVA and C are the Classic languages that needs no introduction nor promotion. This are the languages that don't need to do anything to win the market share, They are just the Gods and they know it.
@lionelthetechlead88397 ай бұрын
Every technology goes through the reverse exponential curve. Web tech is the same. People are still using an apple or an android. That hasn't changed for 10 years because the tech is stable.
@desireco7 ай бұрын
Hahaha, you are insane dude...
@lionelthetechlead88397 ай бұрын
Drinking too much Java and taking PHP. Starting to rust
@JoeSmith-kn5wo7 ай бұрын
I haven't programmed in PHP since 2002. You making me want give PHP a try again 😁.
@lionelthetechlead88397 ай бұрын
Do it! In fact, why don't you find a leetcode question do it and then send it to me and I'll do a video doing it as well.
@timstrawbridge7 ай бұрын
I agree with some of what you're saying. The one thing I really am disagreeing with is when you talk about "the level of javascript vs PHP". In software engineering, we discovered there's a point at which the amount of javascript vs PHP that should be used. I'm a huge fan of PHP and have been using it for over 15 years. As you build out your apps and they get larger, there is a HUGE benefit for using more javascript. For the last 5 years, I've used less PHP in efforts to reduce server load and its been working. PHP is not Multithreaded (there are ways to do that using the Thread class), which means it can't handle asynchronous operations well. We let the server to SOME of the heavy lifting up to a performance specification, then let JS take over. There's a sweet spot, you just have to find it with lots of testing.
@lionelthetechlead88397 ай бұрын
woah... there's some things to unpack there. First when you say server and let JS takeover, JS is still running on the server and running backend functionality. In fact JS is simply running the V8 engine that's compiling JS so it is handling things on the server side. Now one of the greatest myths out there is about multithread and blocking. PHP is single thread and blocking. However, Apache and Nginx which are the webserver that sit on top of PHP and Nginx are multithread. Not only that but they are written in C which is a much low language and more powerful on the server side. So if you have 200 users to the server, they'll all be served at the same time. Now what you are thinking on the request side where you squeeze a bit more performance on a single request, which you can just add some frontend JS to make another call to the PHP webserver and make use of the async frontend powers of JS.
@timstrawbridge7 ай бұрын
@@lionelthetechlead8839 Sorry about the confusion on the JS / server side portion. I meant let the server do the heavy lifting - as in PHP. I’m definitely not letting JS do any heavy lifting. It has enough to do in regards to rendering views. Regardless, your video is spot on about PHP not being dead. It’s not and hopefully not ever be.
@kevyyar7 ай бұрын
what courses do you recommend for deep learning php? not just the documentation...
@lionelthetechlead88397 ай бұрын
kzbin.info/www/bejne/qYOtZ3qPnqiqoassi=wbindLE3qfYal-f6 I'll go straight to a framework because it's so powerful
@gregf30217 ай бұрын
There not using it so I would say there just being nice to the derpy kid