Skip to main content

Hello,

 

I completed week 2 of fundamentals course and have a very basic question.

 

What is the advantage of conneting Interfaces to implementations than calling the implementations directly. Is an interface and flow reference not an overhead?

2 answers
  1. Feb 26, 2017, 6:13 AM

    Hi

     

    The idea is to separate a large flow into smaller flows for re-usability and maintainability.

    Actually not using interface and implementation will be overhead.

     

    For now this approach looks redundant as your project is small but consider a real-time project which will have many common reusable logic and global elements.

     

    Rather than creating same logic everywhere , we can create a flow for that logic and reference it from where we want. This will have many advantages like if you have to change your business logic you have to do at only one place.

     

    The videos will guide you with more concepts and tricks. Follow it religiously.

     

    Hope that helps,

0/9000