402 karma · joined July 25, 2012
Frequently in PHP I found myself missing a proper REPL, yes PHP can be run interactively with `$ php -a`, but it doesn't print the last returned value, so spelunking in a running system is slow and awkward, luckily I've found Boris(https://github.com/borisrepl/boris) which is more like IRB or Pry, but it's still unpleasant when I'm trying to kill a tricky bug. On the package management front Composer is a better solution than previous PHP offerings, but it's got some quirks that make it seem unpolished compared to Bundler.
If I was given a choice PHP I would never willingly pick PHP. I suspect your company is pressuring you to move because they think they can get PHP devs at a lower cost than Ruby devs. If you're in the Bay Area there are plenty of companies that will hire you to write Ruby so you don't really have to switch if you're not comfortable with it.
This sums up one of my major frustrations of being a programmer for the Air Force Research Lab(AFRL).
You have branch and division managers that are completely incompetent trying to micromanage Software Engineers and Project Managers.'Why' isn't ever a thing they think about because they're afraid to admit as managers what they don't know why, and they aren't interested what would make software and integrations more effective. Within projects there was a great deal of expertise that was squandered by poor management and management structure within the Air Force.
I worked there for 5 and a half years, then quit because I couldn't deal with the frustration of upper level incompetence and blatant fraud waste and abuse.
I'd like a REPL debugger that I can activate easily and use from my terminal without fucking with the VM too much. My real goal is to not have to make changes to this project beyond correcting damage inflicted by the PHP attitude of blissful incompetence and copy paste. While I do believe that you can write good code or bad code in any language, PHP does not in any way help it's practitioners to write good code and as PHP users poorly copy my favorite things from my other favorite languages they always miss the mark and loudly complain when the shortcomings are pointed out.
I've wasted far too much time responding to you, so you just keep smearing digital shit on the walls, I have code to ship.
You're getting very tribal and Ad-hominem in your attacks because I don't share any affection for PHP and consider the whole language to be a mistake. Since PHP 5.3 things have been moving in the right direction, but it's too little too late as a language. As for tooling everything is a half assed copy of something from the Ruby ecosystem. If you have some tips for tools comparable to Pry in Ruby or any practical REPL or and interactive debugger comparable to VisualStudio or Eclipse please by all means share, but keep your worthless snipes to yourself.
I consistently find myself frustrated when working in PHP not because I've not mastered it, but because all of the other languages I've mentioned have a better developer experiences, better tooling and consistent APIs. PHP in my experience has none of these and your response and not changed my thoughts.
I just looked at xdebug, it can't even come close to the Eclipse debugger for Java or Pry for Ruby.
I just get sad every time I see a new large investment in PHP because I've never had a positive experience using it compared to another language and I strongly believe that you can't polish a turd.
For the record I'm maintaining a site written in PHP and I dislike PHP for real reasons(poor tooling, poor REPL, poor standard library, poor syntax) not just because it's not the language I've used the most.