PHP Object Oriented Programming (OOP): Interfaces (7/13)

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

The point using interfaces is you can make sure your class must have a method otherwise the class cannot be implemented.
Using the cat example, if you implement the the interface talk, you ensure your cat will talk, if you forget to create the method talk, the PHP error will remember you.
Note to the author : You should hold back on the speed.

UgoAugustoGustavoGuazelli
Автор

"I should have mentioned that earlier" were his last words xD
As an experienced developer trying to refresh my php skills, i watch the videos at 1.25 times speed. Pretty good series!

dela_rs
Автор

I actually like videos being this short as sometimes tutorials can get tiring. This one goes straight to the point and anytime you don't get something you can pause and go back.

JuanOchoa
Автор

@Franklin Waller When using dependency injection and you want to call a method from the object that you injected, you may have to check if the method exists first. Interfaces eliminate that. If we inject an object that implements an interface, we *know* for certain that the method is present.

terryharvey
Автор

I just learned how a dog talks and what a cat says. Thanks!

gancarczyk_net
Автор

You might want to hold back on the speed. For people that are new to OOP it's a lot of information to take in. Good tutorial besides that one thing.

AnExiledPriest
Автор

People are complaining but this is the perfect tutorial !

travelwithkanupriya
Автор

This video is at an okay pace. However, what it may be missing is the difference between implementing an interface and extending a class, and why you would use one and not the other.

LittleMopeHead
Автор

Everyone is talking about how fast he is going, while i'm here watching this with 1.5x speed D:

ahmadkassem
Автор

Truly awesome work! Thank you... Just wondering if you could do a series on WordPress REST API + VueJS + SPA ? No one is doing this yet but I can promise you this will catch on like wildfire. Almost 30% of the web is sitting on WordPress and growing ... cheers!!

ahmedmusawir
Автор

Great video, but isnt the end of the video missing? it just stops

mmdbidstrup
Автор

Series was looking to be excellent until 6/13. Do you have any other vids on these topics?

FirstLast-rmmb
Автор

Too fast .. i can't understand anything !!!

Shifter
Автор

Still a little blurry for me why to use this...

ThaRSGeek
Автор

Why should I implement this interface if I can make my own function "count2"??? :/

raphaelandrade
Автор

Franklin if you wanted to create an API this would be important.

TomSmith
Автор

does "this->items[] = $value" have the same effect as "this->items[]->push($value)" ?

sandarabian
Автор

Why do you use echo json_encode($c) instead of echo $c->jsonSerialize(); . We implemented method, and then we don't call it ?.
Is method jsonSerialize() some how called with with json_encode function ? I don't get it

zamzung
Автор

stop start ever 1.5 second... please a little bit slower in future, its annoying
good information but hard to recieve, couse super fast

MrFrimko
Автор

My goodness. I couldn't understand anything. He lectures too fast.

cjvaans