Really like the video. Have a question, I have a class that does processing for various clients I have. To do this processing, for each client, I need to retrieve some values. However, the way I retrieve these values, is different for each client. Would the strategy pattern be good to use here?
@wrdeboise A nice way is to use something like spl_autoload_register(array($this, 'loader')) in your constructor...then a method like loader($className) { //include file }
@slier81 I cant even remember what I blab in these videos. Ill do State pattern next probably since its just like this. Then Composite and maybe Iterator, Composite is awesome IMO.
Really like the video. Have a question, I have a class that does processing for various clients I have. To do this processing, for each client, I need to retrieve some values. However, the way I retrieve these values, is different for each client. Would the strategy pattern be good to use here?
tdnxxx444 3 months ago
since php 5.3 you can use type hints
m0gria 6 months ago
Do you think you can explain how to create an __autoloader class? I'd like to see an easy way to load all those classes. Thanks
wrdeboise 1 year ago
@wrdeboise A nice way is to use something like spl_autoload_register(array($this, 'loader')) in your constructor...then a method like loader($className) { //include file }
aaronlloydpeterson 5 months ago
What happend to your channel home page? Also I love the intro.
JragonLtd 1 year ago
@JragonLtd I got rid of all the stuff there
JREAMdesign 1 year ago
aka polymorphism
slier81 1 year ago
@slier81 I cant even remember what I blab in these videos. Ill do State pattern next probably since its just like this. Then Composite and maybe Iterator, Composite is awesome IMO.
JREAMdesign 1 year ago
If you look at the client area (the index.php file) it will help you better understand how this pattern works
JREAMdesign 1 year ago