Re:Never run ‘python’ in your downloads folder
by uryga on Monday August 24, 2020 @05:43PM
(#24265895)
> It's not as bad as being introduced to PHP by WordPress
i had to learn PHP to do WordPress stuff (after programming in other langs for many years). what's so bad about their usage of PHP?
(off the top of my head: in WP's "everything happens in some hooked callback" model, debugging can be a pain, lots of messing with globals and gluing strings together)
Re:Never run ‘python’ in your downloads folder
by chipotle_coyote on Wednesday August 26, 2020 @01:56AM
(#24279564)
Your "off the top of my head" would be the main ones I would have come up with, maybe not quite as fast as you did. :) WP is very much of its time in terms of PHP good (and bad) practice.
(Also, WP's style guidance is super weird compared to, well, just about any other PHP style that I've ever seen anywhere, or that of any other C-style language, for that matter. I know that's subjective, but it's Just. So. Weird.)
I think Ruby's actually a very nice general-purpose scripting language; as much as I like Python in principle, I find myself reaching for Ruby more often.