DEV Community

Discussion on: Should I drop PHP?

Collapse
 
goceb profile image
Goce

My first language was ColdFusion too, lol. With PHP I went through the whole spaghetti code -> framework -> clean code, hexagonal, DDD, CQRS, ES path and I totally agree with the time and place thing. First thing you need to figure out is how complex the project is and how long it is going to run. If it is mostly a CRUD-ly one, use a framework, the language does not matter. If it has a bit more complicated logic, ditch the framework and go frameworkless, or if you do not want to deal with the whole infrastructure thing, use the framework but do a clean separation of your core logic from the supporting code. DDD is a good starting point here. My advice is, both Python and PHP are good languages, there are not perfect but they provide enough, especially PHP since 7.4 is a different thing, use the one you are most comfortable with. Since you used "huge" to describe the project the more important question is what kind of architecture are you going to use, how maintainable will the project be in 2 years time, etc...