Комментарии:
I recently implemented a strategy pattern, for rendering cards on a page. The rendering logic was a little bit different for each card. Then I used a factory to instantiate the different strategies and pass the correct strategy too the view, worked really nicely
ОтветитьNicely explained. Is that how react's jsx. Elements are made?
ОтветитьQuality.
Ответитьmind blown.
ОтветитьYour contents is helping me a lot! Thanks so much.
ОтветитьI 'm still confusing, why people use constructor functions if exists factory. Factory functions more flexible: it's not reqired 'this' and 'new' keywords, haven't privacy issues and don't have a problems with losing context with 'this' when we have a nested functions. Can you explain in which cases we should use 'constructor' ?
ОтветитьThis is amazing! Thanks for this kind of video!
ОтветитьWow it felt so good just getting the run down of this - so many tutorial videos full of fluff but this is right to the point with a real world example! Thank you
ОтветитьIs this something that we should do to refactor Em’s rainbow?! Also, happy to see a new 1-minute vid!
ОтветитьI recommend you to make this kind of explanation, something short and concise is desirable by many people. :D
ОтветитьWow, I could see these being used to create a blockchain
Ответить