10 ms·
I would go farther and say PHP makes it easy to write crappy code. Much harder to screw up in Python than PHP. Can you do it? Yes, but have to actually go out o
by TylerE 13y ago
I would go farther and say PHP makes it easy to write crappy code. Much harder to screw up in Python than PHP. Can you do it? Yes, but have to actually go out of your way to it, as the "easy" way is 99/100 the correct way, or will at least will fail hard and fast. That is where PHP errs, and something Go gets right. Code should either work or error ... warnings are a code smell, and PHP is very warning happy, including things that are an error in pretty much any other language, like accessing an undefined variable.
- FireBeyond 13y agoActually, this is the way I'd look at it too - speaking of someone who was guilty of being very 'jacky' in managing a PHP production codebase. Throw some code inside a function to deal with whatever issue you're having and call it good... In Python, it almost feels like that is akin to changing gears without a clutch... and I've only theories as to why that is.