Wednesday 26 October 2016

Should We Use PSRs or WordPress Coding Standards?


It probably gets a bit tiresome to talk about coding standards, practices, and things like that when you’re trying to focus on simply getting things done. And though I get it, I also think that having standards and practices – at least within the context of your team – can go a long way regarding being productive, writing maintainable code, and having things in place to help with maintenance over time.
All of that’s beside the point, though. In the last few years, I’ve found that WordPress – at least those who work on the server-side – usually come in two flavors:
Those who follow the WordPress Coding Standards,
Those who follow the PSRs.
I think there are good reasons for choosing either one. Naturally, I’d say that because I’ve almost always used the WordPress Coding Standards (I have very few exceptions), but I understand the choice to use the alternative as well.
And it’s something I’m beginning to consider doing, too. But I’m curious, for anyone who’s used both or who has an opinion (strong or otherwise) on which one and why to share.
PSRs or WordPress Coding Standards?
For those who are curious, I think
Source: https://managewp.org/articles/13706/should-we-use-psrs-or-wordpress-coding-standards




source https://williechiu40.wordpress.com/2016/10/26/should-we-use-psrs-or-wordpress-coding-standards/

No comments:

Post a Comment