News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Attempting to understand Namespacing, and its benefits
January 02, 2014 @ 11:54:23

If you're relatively new to PHP, you may have read about something called "namespacing" but not fully understood it or the benefits it provides. Over on Reddit, there's a recent discussion where the poster asks about just that:

As I understand it, Namespacing provides a lot of useful context for developers, as well as making the autoloading of classes much easier (though I've never personally tried this). I can also see it being used in a large enough application where it might help keep things in scope, but this seems like a bit of a stretch to me. Apart from that, I'm not too clear on what namespacing actually does.

The comments to the thread including things like links to other resources and other suggestions like:

  • tools to try out
  • places to start using it in your own code
  • the difference between underscores and real namespacing
  • how they help avoid conflicts in naming and functionality
0 comments voice your opinion now!
namespace benefit context autoload opinion discussion

Link: http://www.reddit.com/r/PHP/comments/1u1ztr/attempting_to_understand_namespacing_and_its

blog comments powered by Disqus

Similar Posts

Chris Roane's Blog: What does it mean to be an Advanced PHP Programmer?

Paul Gregg's Blog: PHP on LinkedIn.com

Reddit.com: About to start learning my 1st MVC framework... What are your recommendations?

NETTUTS.com: Organize Your Next PHP Project the Right Way

Brandon Savage: The framework you learn doesn’t really matter


Community Events





Don't see your event here?
Let us know!


community security language composer laravel podcast version symfony release package voicesoftheelephpant mvc update interview framework library opinion tool series introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework