[wp-hackers] do you guys distinquish between various PHP commenting options?
ankittiwaari at gmail.com
Sat Jul 19 03:26:32 UTC 2014
Using # for single line commenting is discouraged in wordpress as well as
pear coding standards.
You can use any method from the remaining two, but a common practice is to
comment a single line using // and multiple lines using /**/
Open Source Developer
On Jul 19, 2014 2:36 AM, "Nikola Nikolov" <nikolov.tmw at gmail.com> wrote:
> I prefer // for single-line comments and usually go with /**/ for
> multi-line comments(although if I'm quickly commenting a couple of lines of
> code while I'm working, I'd use the quick insert/remove comment function of
> Sublime Text and it will just add // at the beginning of all selected
> I'm not sure if there's a reason why you'd need a minified version of
> WordPress(not sure if the license allows the WordPress source code to be
> obscured in any way) - as far as I know the decreased file size won't make
> a huge difference in performance or anything.
> On Fri, Jul 18, 2014 at 11:33 PM, Haluk Karamete <halukkaramete at gmail.com>
> > Commenting is great...
> > But do you have personal guidelines as to which of the 3 commenting
> > that come with PHP when you comment on SINGLE LINES?
> > We got 3 to choose from.
> > #
> > //
> > /* */
> > There must be a reason why we have 3 choices I'm thinking...
> > And I'm also curious if a leaner version of WordPress (with 0 comments &
> > unnecessary white space ) has been considered as an optional download for
> > those who choose to do so (from the repository) discussed any earlier.
> > For example, one can choose to download the minified version of 3.9.1 per
> > se.
> > I'm just curious how that discussion went - if any.
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers