[wp-trac] [WordPress Trac] #29928: WP Core should adhere to its own coding standards
WordPress Trac
noreply at wordpress.org
Sat Oct 11 15:35:39 UTC 2014
#29928: WP Core should adhere to its own coding standards
-------------------------+-----------------------
Reporter: aristath | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses: docs
-------------------------+-----------------------
Changes (by aristath):
* status: closed => reopened
* resolution: wontfix =>
Comment:
So what you're saying is that I shouldn't try to improve the WordPress
codebase this way?
WordPress has some coding standards that are good to have and we should
definitely follow them in-core instead of having messy code all over the
place!
Nacin on his post there clearly states that "Proper justification and
clear rationale of changes are both necessary. Too often it is impossible
to determine the purpose, objective, or focus of these patches. Code
should not be rewritten under the cloaks of readability, narrow personal
opinion, or general subjectiveness."
So let me address these 1 by 1:
Purpose: we can't have coding standards and then ignore them completely on
our own code. It's irrational.
Objective: consistent coding and readability.
Adhering to WordPress standards in NOT a "cloak". It's both justified and
rational. What could be more rational that sticking to the principals we
try to teach to other devs...
Nor is this a personal opinion. Coding standards have a very good reason
of existence.
This doesn't make any sense at all....
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29928#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list