Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7627379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:27:05+00:00 2026-05-31T05:27:05+00:00

In Chapter 2: Meaningful Names Uncle Bob writes: Don’t Add Gratuitous Context In an

  • 0

In Chapter 2: Meaningful Names Uncle Bob writes:

Don’t Add Gratuitous Context

In an imaginary application called “Gas Station Deluxe,” it is bad idea to prefix every class with GDS. Frankly, you are working against your tools. You type G and the press completion key and are rewarded with a mile-long list of every class in your system

Actually that what I discovered during my first days with Objective-C a bit more than one year ago. After Java it was quite disappointing but I thought I’m only one who annoyed about that 🙂
I understand, that “Clean Code” book refers to Java most of the time and Java has namespaces (packages) unlike Objective-C.

Do you use 2-3 letters prefix in your classes if you’re building an app, not a library?
What do you think, is it bad language design, language “feature” or Uncle Bob wasn’t right here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:27:06+00:00Added an answer on May 31, 2026 at 5:27 am

    Perhaps the key word here is gratuitous. In Objective-C, prefixes serve the important purpose of reducing the chance of name collisions. In other languages like Java and C++, the existence of support for namespaces makes the use of prefixes gratuitous (and a violation of the oft-cited DRY principle). In Objective-C, however, prefixes are meaningful, useful, and not gratuitous.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CLR via CSharp chapter 10 Properties Jeff Richter writes: A property method can
I'm attempting to use XML (Chapter 10 in Professional iPhone and iPad Database Application
In chapter 4 of Erik Meijer on Functional Programming Fundamentals, he essentially writes: True
Chapter 6 Language of the C Standard defines all the different concepts, conversions, lexical
In chapter 2, the section on bitwise operators (section 2.9), I'm having trouble understanding
Another chapter from the arguments between myself and the other senior developer series :P
In Chapter 16 of The Seasoned Schemer, the authors define a recursive procedure depth,
I'm currently on chapter 4 of Real World Haskell, and I'm trying to wrap
Based on information in Chapter 7 of 3D Programming For Windows (Charles Petzold) ,
If Book aggregates Chapter which in turn aggregates Page, then what should be the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.