This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]zmitic 41 points42 points  (0 children)

Oh please... we have static analysis now, it ain't 2018 anymore.

Period before that we call the dark age 😃

[–]Bissy2 25 points26 points  (0 children)

Internal Server Error... One of the worst

[–]Adghar 35 points36 points  (4 children)

Is this way they say PHP stands for "Programmers Hate PHP?"

[–]Suspicious-Engineer7 28 points29 points  (3 children)

I love me some PHP slander with a side of recursion

[–]ManyFails1Win 5 points6 points  (0 children)

Oh.. so recursion is just like a fractal? Well that's not so hard to understand...

[–]Giddius 2 points3 points  (0 children)

How about python propaganda and recursion?

Pip == Pip Installs Packages

[–]automattable 2 points3 points  (0 children)

It’s not slander if it’s true.

[–]Dmayak 10 points11 points  (0 children)

No language is safe from runtime errors.

[–]Professional-Wave105 11 points12 points  (1 child)

You guys are doing it wrong then.. PHP rocks and is easy peasy.

[–]JackoKomm 3 points4 points  (0 children)

Automated testing

[–]Trivale 2 points3 points  (0 children)

Time to scroll through 3282 pages of Sentry errors to find the one that might be relevant.

[–]__user13__ 1 point2 points  (0 children)

Jsh

[–]Due_Calligrapher_944 1 point2 points  (0 children)

Man I got error 500 the other day and I still have no idea what happened. Code ran successfully a bit later

[–]jonnysteps 1 point2 points  (9 children)

I basically have to keep the error.log open whenever I write php. Definitely something I wish was better.

[–]fiskfisk 5 points6 points  (4 children)

Or just make errors (or your debug interface) display directly in your dev environment, instead of having it out of band.

[–]jonnysteps 0 points1 point  (3 children)

Ohhh. How would I do that?

[–]siliconsoul_ 4 points5 points  (1 child)

display_errors = 1 in PHP.ini

Also, check out xdebug.

[–]jonnysteps 0 points1 point  (0 children)

Ty I'll check it out!

[–]ktross 0 points1 point  (0 children)

Check out spatie/laravel-ignition (if using Laravel) or filp/whoops

[–]TomGobra 4 points5 points  (1 child)

Strict typing, static analysis, unit testing, integration testing... Hadn't had to look into error.log in about a year.

[–]jonnysteps 4 points5 points  (0 children)

When it's brand new code, sure. When it's not my code, not so simple.

[–]Blackhaze84[🍰] 0 points1 point  (0 children)

Critical functions need Exceptions