Quantcast
Channel: The namespace WPSE - WordPress Development Meta Stack Exchange
Browsing all 6 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by Otto for The namespace WPSE

This is actually a terrible idea, and I would suggest that we should not only reject it, but disallow it and actively edit people's answers to NOT have it.Despite how much you want to argue about PHP...

View Article



Answer by Wyck for The namespace WPSE

I agree on the ugliness, but I think a better option for now and the foreseeable future is to use a small docblock.It's code agnosticIt can be parsed by document enginesIt's informative and somewhat...

View Article

Answer by EAMann for The namespace WPSE

While I agree that most seasoned developers are running on a system that uses a better version of PHP, I disagree that using a namespace should become a standard convention. As you already pointed out,...

View Article

Answer by s_ha_dum for The namespace WPSE

I like the idea-- it would save me from writing _wpse_XXXXXXX after every function-- but I don't think it should be a consideration until WordPress officially requires PHP 5.3. Once that happens, most...

View Article

Answer by Stephen Harris for The namespace WPSE

I like the idea, but I don't think it'll work.The premise is that because an answer on the stack exchange site does not work for them (because they are using outdated php), they will upgrade. This...

View Article


The namespace WPSE

I suggest the namespace WPSE for the code snippets we use in our answers.Namespaces are a feature of PHP 5.3; WordPress core requires just PHP 5.2.4 currently. But even PHP 5.3 development has stopped...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images