- Edited
What have you done to make your PHP "prettier"? NogDog
Started to understand app architecture better, I guess? 
I seem to have to write a lot more JS to get stuff done than I do PHP, for starters. I have 2200+ lines of JS for one page on the site (granted, it's a complex "one-page-ish" type thing). I probably still have some PHP out there someplace that's huge like that, but not as much as I did, say, 5-10 years ago...
"One-page-ish" makes me think Angular; which besides taking care of a lot of the underlying framework stuff, lets you write your code in Typescript (which eventually gets compiled into JavaScript). Based on the very little experience I have with it, I much prefer using Typescript. May not be of help for an existing app, but maybe worth looking into for the next one.

