Why Most Developers Use the Word 'Namespace' Incorrectly
A developer essay argues that the term 'namespace' is widely misused because explanations focus on its function rather than its literal meaning — the space to which a name belongs. The author classifies a namespace as a conceptual specification, not a tool, and outlines which verbs correctly describe the relationship between code entities and namespaces. Common expressions such as 'add a namespace' or 'use a namespace' are flagged as grammatically or conceptually inaccurate. The piece uses Ruby as a primary example, explaining how class and module names are constants that can be nested, while general constants cannot serve as outer namespaces. The author also notes that Ruby's constant lookup combines lexical nesting and inheritance, which affects how outer namespace constants can or cannot be referenced.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in