[wp-trac] [WordPress Trac] #37699: Death to Globals Episode #1: A Registry, A Pattern
WordPress Trac
noreply at wordpress.org
Sun Sep 4 22:24:17 UTC 2016
#37699: Death to Globals Episode #1: A Registry, A Pattern
----------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------
Comment (by MikeSchinkel):
Replying to [comment:80 F J Kaiser]:
> It seems you missed the point with the previous notes and comments about
the ''global state''.
Evidently. Please elaborate on the points I missed.
> Does the first {{{WP_Registry}}} suffer from accessing globals? Yes.
I did not call out accessing globals as an issue. Global state does not
have to be held in globals to be problematic.
> If you believe there is a need to discuss the community layer (for e.g.
barrier for entry level devs), IDE support or yes-nos for using patterns
in general further, I believe that Slack is a better route to address
this.
Since Slack is not segmented by ticket, I have no idea what a valid entry
point would be where all those interested in the topic would have any
reasonable chance of being involved in the discussion. This ticket is
about introducing what I would consider harmful idioms and so it seems the
right place to discuss it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37699#comment:81>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list