DISQUS

Code Spatter: PHP Developers, Keep me Sane

  • Tim Rosenblatt · 1 year ago
    "But Greg, that's not what I learned from XtremePHPCodingIn24Hours.com"
  • Baz L · 1 year ago
    Yeah, PHP is funny that way.

    I open use it to suppress errors from file manipulations (delete, etc). Whatever happened to the good old days of coding when stuff returned 0 on success? Exceptions have their purpose, but I think sometimes that PHP's gone exception crazy.
  • Greg Allard · 1 year ago
    I've been using python a lot recently and I like they way they work with their errors. Instead of suppressing it, you are catching it and then you have a chance to do some logic in that case. I guess php implemented a way of doing it that way also, but no one uses it.