44 ms·
To be fair, it's pretty hard to refactor existing spaghetti PHP in to any comprehensive framework, at least production systems within a company with deadlines a
by mgkimsal 13y ago
To be fair, it's pretty hard to refactor existing spaghetti PHP in to any comprehensive framework, at least production systems within a company with deadlines and customers.
- debacle 13y agoIs that something intrinsic to PHP? It's hard to refactor any code when you have no time allocated to maintenance.
- mgkimsal 13y agoI do think it's a bit harder in PHP, given the nature to which it allows for spaghetti code to happen in the first place. Certainly it's never easy in any platform, of course; I do think "bad" PHP is harder to refactor than "bad" other code. Just an opinion, of course.
- debacle 13y agoAny particular reason? You can do fewer terrible things than you can do in Perl, C, C++, etc.
- methodin 13y agoIndeed but it's ungodly easy to add composer, follow FIG standards and be on your merry way to refactoring. At some point if you keep it up it will be easy to transition into a good framework like Symfony. I just refactored an old class hierarchical system where each class extended a random other one and all functions were called from a global parameter or $this-> so if I can do that, anyone can!