Very good, congrats.... I'm Brazilian and I liked alot your ability to teatch.
@Manos25054 жыл бұрын
UHHHH G.. with no fear i can say that you are the best tutor ever that i ran into by far. Congrats man, keep up the good work!!! You absolutely deserve more subscribes (y)
@TheCodeholic4 жыл бұрын
Thank you. It means a lot
@Kai-xc7qu6 ай бұрын
There was a very cool example with the Avengers.Hello from Russia
@azizbeknurmuhammadov78362 жыл бұрын
Thank you. This is an awesome video course.
@TheCodeholic2 жыл бұрын
Thanks a lot
@Protick19943 жыл бұрын
Thank you, this was really helpful, your generous hard work was appreciated. May God bless you.
@TheCodeholic3 жыл бұрын
Thank you
@swastikrocker1233 жыл бұрын
Thanks to you I am watching the avengers end game again haha. That part liftTheHammer() was just amazing. Keep up the good work. Every scenario and problems using traits was well explained
@saikalbiev78435 жыл бұрын
Really educative. Looking forward for more vids!
@jesuslagrave33362 жыл бұрын
This class was great! Thanks. New subscriber.
@shaikhanuman80124 жыл бұрын
your examples are awesome sir.....love you explanation..
@TheCodeholic4 жыл бұрын
Thank you
@burakkartal21564 жыл бұрын
Great, simple and direct to the point. 14:38 when u said " This is absolutely valid code". i was like WHAAAAAA :D
@TheCodeholic4 жыл бұрын
Excited to read such comments... :D
@kayoscreed3 жыл бұрын
thanks, that was helpful. traits can solve duplication and single inheritance, alright. according to your examples, i have a feeling, that you also can mess things up big time :D ... i might going to use it to deduplicate some code in models.
@ivofrancisco3573 жыл бұрын
Very good advice my friend. Thank you.
@pepeback5 жыл бұрын
Typo: Plane, not Plain. Good video :)
@TheCodeholic5 жыл бұрын
Thank you Jose
@Raezon_3 жыл бұрын
I really like this video I m taking your courses to begin some design pattern I hope if you could use a module on yii on your eCommerce project it will be a great thing for now I m doing that to isolate code and doing branches with GitHub for each module separated than the other.
@jeffreysacco5 жыл бұрын
Awesome tutorial. Plain should be spelt as plane.
@TheCodeholic5 жыл бұрын
Ups.. Thanks for noticing...
@tambovskya4 жыл бұрын
Nice...
@kesogonzaga26713 жыл бұрын
Thanks bro
@wilwerrodriguez17874 жыл бұрын
perfect thanks
@jihadabdulrazaq3382 жыл бұрын
I have a question, interfaces also accepts multiple inheritance, so what's the difference between interfaces and traits?
@TheCodeholic2 жыл бұрын
Interfaces only contain the method names and signature. But traits contain method implementations as well.
@adipurnomo5683 Жыл бұрын
Noted
@cristhianjhlcom3 жыл бұрын
In simple words is like a reusable component but for functions? i'm right? nice series of videos btw
@TheCodeholic3 жыл бұрын
For classes. Their purpose is to achieve multiple inheritance.
@cristhianjhlcom3 жыл бұрын
@@TheCodeholic Thanks, master
@adipurnomo5683 Жыл бұрын
6:56 I would like use abstract class or interface sir. What difference
@TheCodeholic Жыл бұрын
1. Abstract classes can have implementations of the methods. However interface only defines method signature. 2. You can only extend from one abstract class, but implement multiple interfaces.
@SPOKOZE24 жыл бұрын
15:07 why there is "Hello from class AHello from trait A" not "Hello from trait AHello from class A"?
@nemac233 жыл бұрын
Looks like syntax error not accounting for order of execution. If the echo in the parent class is changed to a return then it will work fine.
@mohammadhosein68474 жыл бұрын
So traits in php are analogous to interfaces in java?
@TheCodeholic4 жыл бұрын
No. There are interfaces in PHP also. I am not Java expert, but I think there is no analog of traits in Java.
@mohammadhosein68474 жыл бұрын
@@TheCodeholic I've just found this question solving the problem: stackoverflow.com/questions/9205083/traits-vs-interfaces Thanks for the reply.
@nick91983 жыл бұрын
Lol I literally said out loud while I was watching this 'but you can do this with inheritance', then 2 seconds later you were like 'You might be thinking that you can use inheritance.' That was weird lol.
@TheCodeholic3 жыл бұрын
Lol. I need to watch that part. Can you tell me the timecode?