For many programming languages, namespace is a context for their identifiers. Use this tag to indicate concerns about appropriate usage of namespaces.

learn more… | top users | synonyms

2
votes
0answers
53 views

Configuration class

This is my first serious programming effort, so I'd like some comments about what I did so far. Project structure: ...
2
votes
1answer
86 views

Arranging this socket namespace

Finally I managed to work with socket.io namespace stuff which I'm using for building a chat module. Here employees of multiple organizations can join & make chat with other employees of the ...
6
votes
3answers
3k views

Use of nested namespaces in 3D graphics engine library

I know that nested namespaces are used in C++ very rarely. But I think it's a nice solution to exclude types from global scope and sometimes it helps to write programs faster when we use things like ...
2
votes
0answers
57 views

Namespace handling on nodejs and inheritance managing

It should solve the following issues: Handle namespaces; Be a class factory from Pojos Be a object factory Create a class with inheritance capabilities from a POJO using john resig inheritance ...
11
votes
2answers
226 views

Namespacing jQuery/jQueryUi into markup that I don't control

I have a project that I've been trying to get just right for the past three months and it's still not quite there yet. I'm injecting some jQuery and jQueryUI code into pages that I have no control ...
14
votes
3answers
18k views

Conversion between enum and string in C++ class header

I have the following redundant-feeling design to convert between enums and strings regarding a class that stores enums. The ...
3
votes
1answer
335 views

Extracting the text of a specific XML node

I have to extract friendlyName from the XML document. Here's my current solution: ...
7
votes
1answer
559 views

User defined string literals and namespace use

I have a need to process URIs in one of my applications, sometimes from const char[] literals. My API: ...
10
votes
4answers
185 views

JavaScript Good Patterns - Is this a good example?

I have been trying various formats of namespaces and modules patterns, however I have not come across a solution that I would use for all my projects. I've been developing the following, that would ...
6
votes
1answer
287 views

My first project using namespaces

I have to create some APIs for a online game and I decided to learn to use namespaces correctly. I used the factory pattern, then the loadModule method checks if ...
3
votes
1answer
298 views

Eliminating unwanted namespaces

I am trying to eliminate unwanted namespaces, and I know there's a better way to do this. This code works, but it's remedial and redundant. ...
3
votes
1answer
129 views

jQuery accordion list

I'd like some tips on optimizing the following code. I'm a bit concerned that I'm 'polluting the global namespace' by not wrapping it in a function. The commented out ...