Factory Method Design Pattern

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 61

  • @dp-bhatt
    @dp-bhatt 7 лет назад +2

    I am taking my skillset to the next level after going through these really awesome videos. Thanks a lot.

  • @manasmangalpattanaik3539
    @manasmangalpattanaik3539 7 лет назад +4

    Such a great lesson Avish. The quality of your narration & program representation is excellent.

  • @mayankbhadani5823
    @mayankbhadani5823 6 лет назад +1

    I was playing the kudvenkat Sir Video's at 1.25 speed and have found myself playing Avish Sir video's at the same speed :). By the way the content is great and is one of the best explanation available on the internet about implementing design pattern using C#

  • @prasantadas2515
    @prasantadas2515 3 года назад

    Tahnk you so much for wanderful lessons, very clear explaining with code example.

  • @saurabhchauhan232
    @saurabhchauhan232 7 лет назад +1

    happy to see you back. Just a request can you please make a 2-3 videos together or at least complete 1 design with one go because time between two videos are much more so it's hard to remind all the things and have to watch all the videos from start to end. Nothing other than this. It's awesome to see real time example. thank you for this.

  • @shahdhaval89
    @shahdhaval89 5 лет назад +3

    Nice video.
    One suggestion: Better if you can explain the concept/blueprint in simple words at the starting than giving heavy definitions. The concept,problem and how it solves like we explain on paper. Jumping to implementation needs lot of time to understand what is achieved.
    Thanks again for the video.

  • @shahdhaval89
    @shahdhaval89 4 года назад +3

    Suggestion:
    Wouldn't it be nice to describe scenario what we are going to implement before jumping to code? Kind of blueprint at high level..
    Content is good but couldn't related to why we are doing this .
    Thanks for making this video. Appreciated !!!

  • @itsLuckyVideoCreater
    @itsLuckyVideoCreater 4 года назад

    🙏 Good explanation Avish. Keep going, I'm learning lot of new things. Now I'm confident an Factory.

  • @muhammadfarooqraza3320
    @muhammadfarooqraza3320 7 лет назад +2

    Nice video and got a good idea about FMDP.. I have one quick question, Why we should not put this all this computational or business logic in a simple stored procedure rather than following this pretty pattern just for applying some regional rules. Does it make sense, because it will give more flexibility and you can change rules when ever you need. Because at the end you just need to store Employee object and you can do it easily with SP by applying what ever rules you need.

  • @thameemansari6644
    @thameemansari6644 3 года назад +1

    Oh well... Now this one is a little bit trickier than the singleton and the simple factory man.. Anyways lets dive deep.. Nice tutorial.. Thanks..

  • @AmitSoni28
    @AmitSoni28 2 года назад

    V nice explanation.. thanks for sharing knowledge...

  • @AmitArora-e2b
    @AmitArora-e2b Год назад

    Summary - through this approach, we are basically creating three heirechy factories. One for common class operations, one for specific to the class and last for interacting with the client for giving final result object. Am i right ?

  • @kamdemkakengne
    @kamdemkakengne 5 лет назад

    Thank you so much Avish for your wonderful lessons!

  • @sudhanshuverma809
    @sudhanshuverma809 7 лет назад +1

    Now I do not fear from factory pattern .. thanks :)

  • @piinetu
    @piinetu 6 лет назад

    excellent real world based example.. thank you...keep the great work

  • @srinivaschandu2410
    @srinivaschandu2410 3 года назад

    I liked your explanation. Thank you, Inside factory why do write business logic in 'BaseEmployeeFactory' other than creation of object

  • @Anish5088
    @Anish5088 4 года назад

    Very nice and clean explanation Avish. But one doubt let say if i want to call specific functions/methods for permanent/contract employee from controller then how can i do it. Let say i want to add new employee which i want to expose as API then how to do it. do i have created a object of permanentemplyee class ?

    • @olegsuprun7590
      @olegsuprun7590 3 года назад

      i think you will have to Convert it to the concrete class , for you to be able to do it.

  • @balajis456
    @balajis456 5 лет назад

    Hi it was awesome and easy to understand for a beginner like me.... I had a doubt though..... The applySalary() method has a return type of Employee object but is is not being stored in a variable.....so can that be a void function....if not why?

  • @KhalidAfridi1
    @KhalidAfridi1 4 года назад

    Nice explanation and methods, thanks a lot, but there are lot of codes involved on the front end. I would prefer to do all these on the back-end i.e. database stores procedure etc.

  • @robertwinkler9815
    @robertwinkler9815 6 лет назад +2

    I think the ApplySalary() method should not be creating the base employee factory instance. Am I wrong here? The way it was coded it seems to be adding a hidden behavior. Shouldn't ApplySalary() be only about applying salaries? My intuition says it should receive an employee instance and return a void. I guess that means that depending on what the lazy or immediate requirements are, the factory would expose an additional method for loading. Thoughts?

    • @muteunmute5902
      @muteunmute5902 6 лет назад

      Im new to this, but I have often seen loader methods being used with factory method designs, so I think you are right.

  • @kapavarapupramod1449
    @kapavarapupramod1449 7 лет назад

    Thanks for the tutorials..Realy good tutorials...But I did not see the concepts releated to OOPS Encapuslation,Abstraction....Please post those tutorials also

  • @ashismahapatra4936
    @ashismahapatra4936 2 года назад +1

    It looks like inception movie😁 but overall nice explanations

  • @pankajgharge7880
    @pankajgharge7880 4 месяца назад

    Very good webcast/video. Console Application as a lathe machine would be better for understanding web/desktop/UI developers;

  • @satishrachamalla922
    @satishrachamalla922 Год назад +1

    I think you have provided the wrong example for this.
    you should show the example where you can get the HRA or MRA to the controller based on object type
    ultimately the client should be only aware of the creator(Base Employee Factory) and the Product(IEmployeeManager) in your case. Actually to satisfy the factory Method implementation you may need to introduce 2 new concrete products.
    Correct me If I'm wrong

  • @aravind.a
    @aravind.a 2 года назад

    Team,
    Some tutorial uses abstract class and some tutorial uses interface, which one is the correct choice? and why ?

  • @usermynameful
    @usermynameful 3 года назад +1

    Where is Venkat - we request him to teach this

  • @naodagere8210
    @naodagere8210 4 года назад

    Great team, appreciate your effort.

  • @stampsworld8439
    @stampsworld8439 7 лет назад +1

    On 12.20 you have created ApplySalary() method whose return type is Employee.
    1) I think the method ApplySalary() should have void return type.
    2) What is the point of returning Employee object from ApplySalary() method? As it is the same Employee object which you are passing from controller. So in controller we already have Employee object so returning same Employee object from ApplySalary method doesn't make sense here.
    Please suggest.

    • @ahmadqqq1335
      @ahmadqqq1335 5 лет назад +1

      I agree with you, i think there is no need to make ApplySalary() return _emp

    • @ahmadqqq1335
      @ahmadqqq1335 5 лет назад

      and after returning it where did he you it again ?

  • @AmitArora-e2b
    @AmitArora-e2b Год назад

    Very complicated example. Could take a logger example or dbcontext or dbconnection where subclass pass a parameter to factory and factory further call the concerete class for final result object. Your example is almost similar to my examples.

  • @ivaylozhelev9265
    @ivaylozhelev9265 7 лет назад +2

    Thanks, but it could be better to have more experience development with a simple example and why we need to use those abstract classes and why we need to use one pattern instead simple implementation. What is the really benefit of that!

  • @gardyroy
    @gardyroy 7 лет назад +1

    Thanks. Can you plz train us on how to design a Framework...form Technical Architect Prospective...

  • @llovee_2254
    @llovee_2254 7 лет назад +2

    Can someone explain to me how does the this.Create() work? What is "this" referring to when we call the ApplySalary?

  • @InCircle
    @InCircle 5 лет назад

    Question : When we created House Allowance etc and you said : if we change the EmployeeManagerFactory to accommodate the changes, It will voilate the principles of Creation Factory Patterns, Exactly which principles were in danager/violation ?
    Regards,
    A Learner.

    • @mogilisettynaidu9213
      @mogilisettynaidu9213 5 лет назад

      If we don't use factory method, then the simple factory would have to do specific creation code like medical allowance in the switch case statement - which violates the principles of encapsulation - with factory method, that creation code goes to the class where it belongs.

  • @tomyang7788
    @tomyang7788 7 лет назад +1

    at 15:10 how is the employee object created from the data entered in the form ?

  • @DKTInfoHub
    @DKTInfoHub 5 лет назад

    hi is Factory DesignPattern replaced by Dependency injection. If not then can we implement both in one project

  • @FiazAhmad-jd5sq
    @FiazAhmad-jd5sq 4 года назад

    Thanks for osum explanation.

  • @rajvirsarkar
    @rajvirsarkar 7 лет назад

    Very well explained. Thanks a ton

  • @rahultiwariz
    @rahultiwariz 6 лет назад

    thanks, Avish for the video can you please attach the zip file of the source project along with the video

  • @sangepurajashekhar5832
    @sangepurajashekhar5832 5 лет назад

    Such a great lesson

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 6 лет назад

    Thank you, Avish :D

  • @lovelybuck
    @lovelybuck 5 лет назад +2

    its look complex to me.... :(

  • @arnabdibosh9813
    @arnabdibosh9813 5 лет назад

    simple, easy, effective

  • @hkn1853
    @hkn1853 7 лет назад

    Pleae provide more example to get more claity

  • @raqibul1000
    @raqibul1000 7 лет назад

    Thanks a Billions.

  • @olegsuprun7590
    @olegsuprun7590 3 года назад +1

    I don't think this is ok , to have side effects in your Create() method of your factory. When i call Create() method , i never expect for it to also set medical or house allowance for employee.

  • @iftikharhusain1
    @iftikharhusain1 7 лет назад

    amazing keep it up sir

  • @sujoyinnovates
    @sujoyinnovates 3 года назад

    Sir you are too verbose. You don't have to repeat yourself whenever you are using the new keyword for object creation or creating the constructor or bringing the using reference... It is little irritating and difficult to focus things in our mind thus making simple things unnecessarily complicated.
    However overall it is an excellent video.

  • @sureshrajput5794
    @sureshrajput5794 6 лет назад

    We can write triggers to achieve this. Also it was too complicated to understand.
    It would be helpful if you keep your example very easy.

  • @ashokyamsani
    @ashokyamsani 5 лет назад

    It was a bit complicated and lot of hierarchies involved, and also didnt understand the this.create.

  • @officialspock
    @officialspock Год назад

    15:40 shouldn't db.Employees.Add(employee); will become db.Employees.Add(empFactory): ???

  • @vinothrajendran858
    @vinothrajendran858 2 года назад

    sathyama purila