Giter Site home page Giter Site logo

Interface suffix about httplugbundle HOT 10 CLOSED

php-http avatar php-http commented on May 27, 2024
Interface suffix

from httplugbundle.

Comments (10)

Nyholm avatar Nyholm commented on May 27, 2024

I believe it is a PSR standard from the beginning. But I believe we should follow every Symfony best practice for public bundles.

👍

from httplugbundle.

sagikazarmark avatar sagikazarmark commented on May 27, 2024

No, it is NOT PSR. Everyone believes that it is, but it isn't. It is an INTERNAL bylaw for the FIG, but thank god, it hasn't been standardized.

Symfony supports this Interface suffix practice in fact, but so far, I haven't been convinced that it is good, quite the opposite acually.

My most linked blog post by @mathiasverraes: http://verraes.net/2013/09/sensible-interfaces/

from httplugbundle.

Nyholm avatar Nyholm commented on May 27, 2024

No, it is NOT PSR. Everyone believes that it is, but it isn't. It is an INTERNAL bylaw for the FIG, but thank god, it hasn't been standardized.

Sorry, I miss-spoke. It is not a coding standard but as you say, PHP-fig apply Interface and Trait suffix and Abstract prefix.

Thank you for the link.

from httplugbundle.

dbu avatar dbu commented on May 27, 2024

not sure why fig is doing the suffixes. its indeed common throughout symfony, but in php-http we don't do it and i see the reasons not to do the suffixes. i don't mind much either way. we can change it if people think that is better.

from httplugbundle.

sagikazarmark avatar sagikazarmark commented on May 27, 2024

I don't insist on this one. If we decide to follow symfony standards, let's keep the suffix. If not, drop it.

from httplugbundle.

dbu avatar dbu commented on May 27, 2024

from httplugbundle.

joelwurtz avatar joelwurtz commented on May 27, 2024

I think it's more a matter of: should we be consistent for the dependencies, or on the organisation itself ?

For me i would like to keep the same rules across php-http packages, but i don't mind having Interface or not in the name, only detail to my eyes.

from httplugbundle.

Nyholm avatar Nyholm commented on May 27, 2024

@joelwurtz makes a great point. Lets be coherent with php-http.

from httplugbundle.

dbu avatar dbu commented on May 27, 2024

okay. who does the pull request?

from httplugbundle.

sagikazarmark avatar sagikazarmark commented on May 27, 2024

I will in the evening.

from httplugbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.