Why Fluent Interface is called Fluent API










1















Why Fluent API is called "API" ? Fluent API is a way to create fluent Domain Specific Language, whereas API is "Appication Programming Interface". API is:



"A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service."



"An application programming interface (API) is a set of protocols, routines, functions and/or commands that programmers use to develop software or facilitate interaction between distinct systems."



So how this two definitions containing words "Distinct system", "Access features" relate to Fluent Interface pattern?
Even Martin Fowler sometimes names it API:
https://martinfowler.com/bliki/FluentInterface.html



Please, tell me, what's wrong with my or other's idea about API? Maybe we should stop calling screwdrivers all long metal rods with handles?










share|improve this question






















  • Can’t you use Fluent APIs to access features of a distinct system?

    – Nghia Bui
    Nov 15 '18 at 14:50















1















Why Fluent API is called "API" ? Fluent API is a way to create fluent Domain Specific Language, whereas API is "Appication Programming Interface". API is:



"A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service."



"An application programming interface (API) is a set of protocols, routines, functions and/or commands that programmers use to develop software or facilitate interaction between distinct systems."



So how this two definitions containing words "Distinct system", "Access features" relate to Fluent Interface pattern?
Even Martin Fowler sometimes names it API:
https://martinfowler.com/bliki/FluentInterface.html



Please, tell me, what's wrong with my or other's idea about API? Maybe we should stop calling screwdrivers all long metal rods with handles?










share|improve this question






















  • Can’t you use Fluent APIs to access features of a distinct system?

    – Nghia Bui
    Nov 15 '18 at 14:50













1












1








1


1






Why Fluent API is called "API" ? Fluent API is a way to create fluent Domain Specific Language, whereas API is "Appication Programming Interface". API is:



"A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service."



"An application programming interface (API) is a set of protocols, routines, functions and/or commands that programmers use to develop software or facilitate interaction between distinct systems."



So how this two definitions containing words "Distinct system", "Access features" relate to Fluent Interface pattern?
Even Martin Fowler sometimes names it API:
https://martinfowler.com/bliki/FluentInterface.html



Please, tell me, what's wrong with my or other's idea about API? Maybe we should stop calling screwdrivers all long metal rods with handles?










share|improve this question














Why Fluent API is called "API" ? Fluent API is a way to create fluent Domain Specific Language, whereas API is "Appication Programming Interface". API is:



"A set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service."



"An application programming interface (API) is a set of protocols, routines, functions and/or commands that programmers use to develop software or facilitate interaction between distinct systems."



So how this two definitions containing words "Distinct system", "Access features" relate to Fluent Interface pattern?
Even Martin Fowler sometimes names it API:
https://martinfowler.com/bliki/FluentInterface.html



Please, tell me, what's wrong with my or other's idea about API? Maybe we should stop calling screwdrivers all long metal rods with handles?







design-patterns definition ef-fluent-api fluent-interface






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 6:27









Alexey KhrenovAlexey Khrenov

1126




1126












  • Can’t you use Fluent APIs to access features of a distinct system?

    – Nghia Bui
    Nov 15 '18 at 14:50

















  • Can’t you use Fluent APIs to access features of a distinct system?

    – Nghia Bui
    Nov 15 '18 at 14:50
















Can’t you use Fluent APIs to access features of a distinct system?

– Nghia Bui
Nov 15 '18 at 14:50





Can’t you use Fluent APIs to access features of a distinct system?

– Nghia Bui
Nov 15 '18 at 14:50












1 Answer
1






active

oldest

votes


















1














In the given definitions of API, I think the operative word both times is or.




  • ...or other service.

  • ...or facilitate interaction between distinct systems.



This is explicitly not saying that to "facilitate interaction between distinct systems" is a requirement of an API. You can pick any one of the choices in each list and call it an API. For example, an API could be,



  • A set of functions and procedures that allow the creation of applications which access the data of an application.

  • A set of functions and commands that programmers use to develop software.

All I did here is choose an option from each list with the word or. As you can see, the definition of API is very abstract. In short, every method signature is an API.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313611%2fwhy-fluent-interface-is-called-fluent-api%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    In the given definitions of API, I think the operative word both times is or.




    • ...or other service.

    • ...or facilitate interaction between distinct systems.



    This is explicitly not saying that to "facilitate interaction between distinct systems" is a requirement of an API. You can pick any one of the choices in each list and call it an API. For example, an API could be,



    • A set of functions and procedures that allow the creation of applications which access the data of an application.

    • A set of functions and commands that programmers use to develop software.

    All I did here is choose an option from each list with the word or. As you can see, the definition of API is very abstract. In short, every method signature is an API.






    share|improve this answer



























      1














      In the given definitions of API, I think the operative word both times is or.




      • ...or other service.

      • ...or facilitate interaction between distinct systems.



      This is explicitly not saying that to "facilitate interaction between distinct systems" is a requirement of an API. You can pick any one of the choices in each list and call it an API. For example, an API could be,



      • A set of functions and procedures that allow the creation of applications which access the data of an application.

      • A set of functions and commands that programmers use to develop software.

      All I did here is choose an option from each list with the word or. As you can see, the definition of API is very abstract. In short, every method signature is an API.






      share|improve this answer

























        1












        1








        1







        In the given definitions of API, I think the operative word both times is or.




        • ...or other service.

        • ...or facilitate interaction between distinct systems.



        This is explicitly not saying that to "facilitate interaction between distinct systems" is a requirement of an API. You can pick any one of the choices in each list and call it an API. For example, an API could be,



        • A set of functions and procedures that allow the creation of applications which access the data of an application.

        • A set of functions and commands that programmers use to develop software.

        All I did here is choose an option from each list with the word or. As you can see, the definition of API is very abstract. In short, every method signature is an API.






        share|improve this answer













        In the given definitions of API, I think the operative word both times is or.




        • ...or other service.

        • ...or facilitate interaction between distinct systems.



        This is explicitly not saying that to "facilitate interaction between distinct systems" is a requirement of an API. You can pick any one of the choices in each list and call it an API. For example, an API could be,



        • A set of functions and procedures that allow the creation of applications which access the data of an application.

        • A set of functions and commands that programmers use to develop software.

        All I did here is choose an option from each list with the word or. As you can see, the definition of API is very abstract. In short, every method signature is an API.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 16 '18 at 20:40









        jaco0646jaco0646

        5,37752947




        5,37752947





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53313611%2fwhy-fluent-interface-is-called-fluent-api%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            How to read a connectionString WITH PROVIDER in .NET Core?

            Node.js Script on GitHub Pages or Amazon S3

            Museum of Modern and Contemporary Art of Trento and Rovereto