No video

Strategy Pattern (in real life) Screencast - OO Design Patterns Screencasts (ep 2)

  Рет қаралды 20,123

Christopher Okhravi

Christopher Okhravi

Күн бұрын

Пікірлер: 45
@user-pk3ti4es9k
@user-pk3ti4es9k 5 жыл бұрын
Don’t abandon the series please. Do you intend to come back to this?
@Sproeikoei
@Sproeikoei 18 күн бұрын
This is great, especially the last part about people saying writing in abstractions is "taking more time" or is making it harder. It just shows they are not yet used to this type of thinking, which to me also says that this might be what people mean when they say "don't program for the future" .
@Moonz97
@Moonz97 5 жыл бұрын
Loving these screencasts! Keep up the great work. :)
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Glad to hear! Thanks for watching them! :)
@aldolunabueno2634
@aldolunabueno2634 3 ай бұрын
This is so much great work! I'm writing all in Java for now and listing all the examples like this, that seems more real.
@Sorc47
@Sorc47 5 жыл бұрын
I really enjoy your OOP videos, you're a great teacher. It's a shame that your channel doesn't get more views, people have no idea what they're missing out on. :)
@h0ph1p13
@h0ph1p13 3 жыл бұрын
It is normal. Not many people get to this level.
@nathanlebretonNl2br
@nathanlebretonNl2br 5 жыл бұрын
i'm a 15 years designer who decide to go in the dark path of dev ^^. While you were speaking i completely understood the beauty of coding and the relation between my obsession of good design and my futur obsession of writing beautifull code. Thanks for that, plz continue the series, i understand so much now !!!! thx again
@visweswaranmanickam5092
@visweswaranmanickam5092 3 жыл бұрын
Keep up the good work!! It's really great that we get so much perspective into object oriented programming , how to think about a problem and how to translate it.
@zbigniewcwiakalski7253
@zbigniewcwiakalski7253 Жыл бұрын
I'd love sooo much to have more videos on this channel involved with screencasted design patterns ! :) love this channel !
@kensearle4892
@kensearle4892 7 ай бұрын
Thank you! I appreciate you using real business examples and C# code. Talking about Ducks was ok, but this is even more helpful. So following your concept, with the Constructor Dependency injection we could change the Writer instance in Main once to be either Console, XML, JSON, CSV, or Excel and the rest of the code does not change.
@taylormonacelli
@taylormonacelli 2 жыл бұрын
Suuuper helpful to have concrete real life example, thank you!
@momusic1427
@momusic1427 2 жыл бұрын
Good job man . You are awesome ! Please please keep releasing videos on programming . You really make the concepts super easy .
@mariaspr5200
@mariaspr5200 4 жыл бұрын
Your videos are excellent! You definitely deserve more views! Keep up the good work.
@moneymaker7307
@moneymaker7307 5 жыл бұрын
You are a great tutor and all videos are freaking fantastic.I can relate to this example better than the duck example. Pls continue to use the Simulation Application as the context for design patterns. I can’t wait for the next episodes
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Excellent! I’m glad to hear! :)
@Oveia1
@Oveia1 5 жыл бұрын
Suddenly I finish the first "duck" introduction about Strategy Pattern and a wild new video appears talking about the same subject. More odd is that before I find this video, I tought, "hum, hope Chris make a new video with other examples, more details and SHAZAMMM! I'm here! Thanks for this examples and such a good teaching of yours, man! Keep it up!!
@bsuperbrain
@bsuperbrain 5 жыл бұрын
That was absolutely refreshing. The use of this simple simulation example for the walk-through keeps things clear and followable as well. Nice job! (In production I'd rather design this with a producer-consumer model, making the simulation class observable. Waiting the next episode!)
@szabo369peter
@szabo369peter 5 жыл бұрын
Minor correction: instead of this.rnd.NextDouble()
@mohammedammarkurabi7520
@mohammedammarkurabi7520 5 жыл бұрын
Fantastic explanation of the design patter.... I think implementing with goLang will be much easier.
@dakipro
@dakipro 5 жыл бұрын
Thank you Christopher for these examples, they explained to me something that I wasn't quite sure about in years! I was wondering, if you could explain, or perhaps make a video about implementing observer pattern on top of this existing code, with multiple interfaces and all around it. I feel that this.writer.Write() would be better outside, but somehow connecting all the dots is still blurry for me. Again thanks, I hope we will get more high quality videos from you!
@animemachine
@animemachine 5 жыл бұрын
Hello Great video! As always But, for me, something was left unsolved: Once the Iwriter is injected in the Simulation constructor, and having several implementations for Iwriter, it implies that the decision of the implementation to be injected should be in the caller. Therefore, an injection by IOC would not be possible. That could result in an IF / switch in the caller to decide which implementation to inject. How would you solve that?
@eshwareshwar8876
@eshwareshwar8876 4 жыл бұрын
admire your thought process and thinking on edge conditions and forward thinking process. I am glad you bought this example but could have come up with better finishing on stratergy pattern. Which class and which interface playing the key role in making it as Strategy Pattern. At the end when we look at output, it seems that we are bringing up an interface in the middle, is that Interface aggregation is what the strategy pattern(always pops-up in mind), but actually it is not but looks like that, correct me if i am wrong. Its extremely an excellent video that so far i have seen, the way your making us to dive in to the problem is awesome. Last but not the least few logging libraries like Log4Net are the good examples for your simulation, They log the data to files or database (strategy), they provide formatters (decorator) for formatting data, may be observer also might be there. There are many such libraries evolved from the same thought process. For Ex: AutoMapper or StructureMap they use more AbstractFactory and Decorator patters. I am not wise enough to dive in to explanation and judge it correct it, i just felt, you can do far better than this when you bring up third party libraries as examples but again there are always ifs and buts, you know better than anyone else .....to be frank your thought process was awesome.
@nachomartgar9337
@nachomartgar9337 5 жыл бұрын
Well, this is much better than college
@AaronInCincy
@AaronInCincy 5 жыл бұрын
I feel like in this scenario, returning an enumerable would be cleaner and still support your requirement of causing side effects as your simulation runs rather than delaying until the end.
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
I actually very much agree 😊 I’ll try to remember this when we get to iterator pattern!
@aleksandarstanisic1848
@aleksandarstanisic1848 5 жыл бұрын
Great work ty!
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Thanks! And thanks for watching! :)
@CAIODONEDA
@CAIODONEDA 5 жыл бұрын
Awesome video!
@bhoopendrasharma9474
@bhoopendrasharma9474 5 жыл бұрын
Thank you so so.. . much for such content .. Super super Appreciated !!!..
@arashnikbakht129
@arashnikbakht129 5 жыл бұрын
why you dont use php? Its dynamic and also have argument type and return type so you can do any kind of strict type variables and arguments.
@arao2k5
@arao2k5 5 жыл бұрын
Great video !
@azhmanadam1949
@azhmanadam1949 3 жыл бұрын
I love the cat
@user-qm2xg3zn4n
@user-qm2xg3zn4n 5 жыл бұрын
Great video! I have watched the first two in this series and the first one in the whiteboard series (baseicly just the ones about strategy pattern), and i have just one little complanet, you go off topic too much, other then that, realy great videos!!
@yonishachar1887
@yonishachar1887 3 жыл бұрын
אתה לא באמת ישראלי. אני הישראלי היחידי שמכיר אותו. לך מכאן.
@uzumakicheti
@uzumakicheti 5 жыл бұрын
You have really good content, I like your videos, I was wondering how do you think protocol oriented programming changes the way we implement design patterns that use a lot of interfaces, like strategy patter for example, considering we are using swift language features like protocol extensions
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Thank you! :) I have unfortunately not yet familiarized myself with protocols (in the e.g. Swift sense) so I can unfortunately not comment on that :/ Thanks for watching though and hopefully someone else will be able to provide some insight into your question! :) :)
@FirestarterVideo
@FirestarterVideo 5 жыл бұрын
Hey Christopher, ive discovered your channel while I was reading the Head First Design Patterns book. I recommend your videos to everyone who is new to design patterns at the company im working at. However, since your writing this series in C# , I wanted to make a few suggestions to your style, if you dont mind. Because I don't want to go into detail in a yt-comment, I just rewrote your code in a way that is more "in line" with the Microsoft code conventions and using the features C# provides, here: pastebin.com/WQsm0sma . I think the changes are very minor, but will easily improve the quality of your code. Thx for all of your vids! Mis
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Very interesting! Thanks!
@baby4265
@baby4265 5 жыл бұрын
Hello
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
Hey hey 😊
@BaronVonTacocat
@BaronVonTacocat 5 жыл бұрын
_Type Writer_ LOLZ
@ChristopherOkhravi
@ChristopherOkhravi 5 жыл бұрын
😅😅
@mauricearida9001
@mauricearida9001 3 жыл бұрын
Christopher. Are you infj ?
@visweswaranmanickam5092
@visweswaranmanickam5092 3 жыл бұрын
Keep up the good work!! It's really great that we get so much perspective into object oriented programming , how to think about a problem and how to translate it.
Observer Pattern Screencast - OO Design Patterns Screencasts (ep 3)
1:11:26
Christopher Okhravi
Рет қаралды 9 М.
The Strategy Design Pattern - Ep 22 - C++ Coding
16:54
Code, Tech, and Tutorials
Рет қаралды 3,5 М.
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 17 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 2,8 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Why Use Design Patterns When Python Has Functions?
23:23
ArjanCodes
Рет қаралды 103 М.
Strategy Pattern - DESIGN PATTERNS (C#/.NET)
20:36
SingletonSean
Рет қаралды 3,3 М.
Observer Pattern - Design Patterns (ep 2)
49:47
Christopher Okhravi
Рет қаралды 561 М.
Command Pattern - Design Patterns (ep 7)
39:12
Christopher Okhravi
Рет қаралды 268 М.
Design Patterns: Factories
25:26
Microsoft Visual Studio
Рет қаралды 54 М.
Only Use Inheritance If You Want Both of These
9:10
Christopher Okhravi
Рет қаралды 16 М.
Clean Code using the Strategy Pattern
12:34
git-amend
Рет қаралды 13 М.
What is the Observer Pattern? (Software Design Patterns)
21:49
Be A Better Dev
Рет қаралды 21 М.
How to Implement the Strategy Pattern in C#:
8:51
Tech With Pat
Рет қаралды 4,7 М.
8 Design Patterns | Prime Reacts
22:10
ThePrimeTime
Рет қаралды 404 М.