On 07/09/16 12:37, Rowan Collins wrote: > On 07/09/2016 11:51, Lester Caine wrote: >> This comes down simply to 'education', and just as we provide migration >> guides to check deprecated code and help re-write it there needs to be >> the same sort of guideline - provided by PHP - as to how composer or >> what ever can be used to replace the previous processes. I've seen >> several examples of how I could be using it, but none that dovetail in >> with what I have. > > I guess "we", i.e. PHP, should provide migration guides from ways of > working which we documented in the first place. So is there a document > that describes your current way of working, that you are trying to > migrate from? It's hard to know where to begin when you talk about "a > style of working".
This is the main problem with PHP today. It is SO flexible that there are probably a dozen ways to do the same thing and all are correct. I keep being told my way of working is 'old fashioned', but there is no single path to modernise code which is still working perfectly well on PHP7. I would appreciate some critique on what would be the right way to make a large modular set of code into something that conforms better with a current style of working. I still use multiple files as entry points stored in folders for each package as that move many years ago made adding or tailoring functionality an lot easy operation which the 'centralised' code it was developed from made impossible. Namespace should simply dovetail in to this format, but like other new features that is not proving advantageous. I'm currently reworking a package for a new application and can develop it using tools already built into the framework without needing to change style. If I was advising a newcomer today what is the best way of starting, just WHERE would one direct them? Many example are still using mysql and PHP4 style layouts. What is a good example of a modern PHP application? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php