Good vid. I am a PHP developer. I would just say that, regarding the ternary operator (your first example), I don't agree that it "makes the code more readable". Whilst I've got nothing against the ternary operator per se, I think if {} else {} is much more understandable, even if it takes more lines. Also, in most code, after you do the comparison, there's a whole load of things that you want to fire as a result, i.e. if( $i == 1 ) { function1();function2();function3() ... etc }. But yes, you're right, even after 14 years developing, I didn't know some of the things mentioned in this vid!
Disagree. One of Phps differential is being able to go together with HTML very easily. This has the same feeling as: the best practice of python is typing all your variables, letting it be implicit is bad code practice. You are right in some cases, but ruling out every possible case is not very wise
Good vid. I am a PHP developer. I would just say that, regarding the ternary operator (your first example), I don't agree that it "makes the code more readable". Whilst I've got nothing against the ternary operator per se, I think if {} else {} is much more understandable, even if it takes more lines. Also, in most code, after you do the comparison, there's a whole load of things that you want to fire as a result, i.e. if( $i == 1 ) { function1();function2();function3() ... etc }. But yes, you're right, even after 14 years developing, I didn't know some of the things mentioned in this vid!
Thank you for your brief comment. Glad video helped you
Php use slowly declining tho
@@benchmarks1016 Yea.. from 86% of the internet being powered by it down to 81%.. oh my better find new jobs lmao
sir accept my respect as a one of the best teacher.
Thank you 👍
Thanks, I learnt new things
Thank you for the comment
Thank you.
You're welcome!
Great video, Thank you 👍
You are welcome
nice
Thank you
The best practice would be using PHP only as a backend server not mixed up with UI. The title is misleading by the way.
Disagree. One of Phps differential is being able to go together with HTML very easily.
This has the same feeling as: the best practice of python is typing all your variables, letting it be implicit is bad code practice.
You are right in some cases, but ruling out every possible case is not very wise
gabada GABADA GABADA GABADA GABADA GABADA..... gabada.. gabada.. gaba.
sorry. cat got on keyboard. meant to type thanks