Code Monkey home page Code Monkey logo

Comments (5)

robinclart avatar robinclart commented on June 26, 2024

Since we don't have any control over which version of PHP the library is gonna be run against and we had some customer on version older than 5.3 we decided not to use namespaces.

from omise-php.

scalopus avatar scalopus commented on June 26, 2024

Are you not like to have a separate branch for EOL PHP? I think developer would love for have some language features that you be able to make a library look pretty. There are some several things that just coming up in recent years to improve the quality of code. ex. PSR standard.

At least, I think to support a library where the dependencies (such the PHP itself) are all obsoleted would risk to a system and a library itself. When step up the new major version of library, it may be a good time to arrange the code to be more practical.

from omise-php.

robinclart avatar robinclart commented on June 26, 2024

I'm a practical guy. Doing two versions isn't practical at the moment. Neither for us, nor for our users. This is Thailand, don't underestimate what is still running out there. I'm not saying we won't do it but instead that right now isn't the time.

We're still adding feature quite often and implementing new features twice isn't something I can dedicate time to. We love backward compatibility and being nice to our users, and we hate sunsets and forcing people to put up with the chore of updating just because: pretty.

Giving two separate documentation, with two different way of installing things is confusing. Confused people will in turn contact our support and I'd prefer not have our support spend too much time on those kind of thing if I can help it. Furthermore if we decide to EOL the old way (simple class) we then force users to upgrade their infrastructure if they want the new features because of a choice I made for them. And I'm sure they have better things to do.

I'm happy to debate this further with you but as far as I'm concerned I'm not gonna implement namespace right now just for the sake of perceived "prettiness".

from omise-php.

scalopus avatar scalopus commented on June 26, 2024

Ahhh..... OK. Thank you for give a detail. 💃 🍻
Have fun Friday.

from omise-php.

robinclart avatar robinclart commented on June 26, 2024

You're welcome. If you have anything else you want to ask. We're always happy to help.

from omise-php.

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.