[wp-trac] [WordPress Trac] #31985: WP_Network class

WordPress Trac noreply at wordpress.org
Wed May 27 11:05:42 UTC 2015


#31985: WP_Network class
--------------------------------+------------------------
 Reporter:  johnjamesjacoby     |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  4.3
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  dev-feedback        |     Focuses:  multisite
--------------------------------+------------------------

Comment (by jacobsantos):

 Programmers who use static methods quickly realize how much of a mistake
 it is to do so.

 What reason are you defining class methods instead of instance methods?

 Are you attempting to create namespaced functions? If so, then what
 benefit do you achieve outside of just creating a function?

 Are you mixing class methods and instance methods? Do the class methods
 amount match or exceed the instance methods count? Would you be better
 served creating a separate class for the static methods?

 Do you wish to break extensiblity? If so, then why not just use 'final'?
 If you decide to use 'final', then what problem are you truly attempting
 to solve? Would your solution be better if it used functions instead?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31985#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list