Relative Content

Tag Archive for namespace

What should be done with class names that conflict (common) framework names

What should be done exactly when the most obvious class name for a component is taken by a framework? In my case, I need to make a class that describes an HTTP request. Of course, the most common name is “taken” as System.Web.HttpRequest. What should I do? This project will be used in a web context, so I’d really rather not force people to not import the System.Web namespace, or type out all of my class names manually.

Why do so many namespaces start with com

I’ve noticed that a lot of companies use “reverse domain name” namespaces and I’m curious where that practice originated and why it continues. Does it merely continue because of rote practice, or is there an outstanding architecture concept I might be missing here?

Handling table name collisions in Django

Django creates a table name by joining the app label with the model name. A project can have many apps. If two have the same label, how can both be used in the same database?