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 928809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:04:16+00:00 2026-05-15T20:04:16+00:00

I’m using PHP 5.2 to make a website I like to have explicit names

  • 0

I’m using PHP 5.2 to make a website

I like to have explicit names for my classes

I also have a convention saying ‘the path and name of a file’ match the ‘name of the class’

So a class called:

ABCSiteCore_Ctrlrs_DataTransfer_ImportMergeController

would sit in my svn working copy at:

C:\_my\websrv\ABCCoUkHosting2\webserve\my_library\vendor\ABCSiteCore-6-2\ABCSiteCore\Ctrlrs\DataTransfer\ImportMergeController.php

I find the naming convention gives me a better view of my code base, leading to better understanding and reducing the feeling of complexity.

Unfortunately there seems to be a max path length on my Windows XP PC. It seems to cause problems when I try to checkout Subversion files into my working copy.

If the path is too long, I can’t check it out – the checkout fails.

So I find myself taking ages just to think of a name for a domain concept.

I might want to name a class “notification service” – but I end up calling it something like “NtfctnSrvce”. It also cause problems when I try to create a specification class.

say, for example i’d love to have a spec class called with an explicit name,say:

$hasBeenNotifiedSpec = new ABCSiteCore_Model_MssgSys_Rules_Customers_HasCustomerBeenSentNotificationOfOnlineTransactionPaymentByEmail($notificationLog);

if($hasBeenNotifiedSpec->isSatisfiedBy($customer))
 {
 ...do something

By using my file-to-class-name naming convention, I can simply use Windows Explorer to get a good idea of what the class does, its place /role in the Model/View/Controller pattern etc.

        ABCSiteCore\
         Model\
          MssgSys\
           Rules\
            Customer\
             HasCustomerBeenSentNotificationOfOnlineTransactionPaymentByEmail.php

Whenever i think of name for a domain concept, I’ve got into the habit of pasting the potential path length into a ‘path length checker‘ to see if i can use it – its just a peice of pre-formatted text in my working-notes-wiki:

As you can see. Unfortunately that class name is getting close to the limits

C:\_my\websrv\ABCCoUkHosting2\webserve\my_library\vendor\ABCSiteCore-6-2\ABCSiteCore\Model\MssgSys\Rules\Customer\hasCustomerBeenSentNotificationOfOnlineTransactionPaymentByEmail.php

-------------------------------------------------------------------------------------------------------------------------------------------------------------------script path length danger zone------->|

----------------------------------------------------------------------------------------------------------------------------------------------------------------------max path length danger zone (inclusive .svn folder)------->|

C:\_my\websrv\ABCCoUkHosting2\webserve\my_library\vendor\ABCSiteCore-6-2\ABCSiteCore\Model\MssgSys\Rules\Customer\.svn\text-base\hasCustomerBeenSentNotificationOfOnlineTransactionPaymentByEmail.php.svn-base

Because of these path length restrictions, I tend to choose names for my entities that are not the best fit to the ubiquitous language of my domain model. This, can sometimes lead to misconceptions about how the system works, causes confusions and adds to the complexity – making development harder.

so :

  • How can I solve this issue?
  • is it solvable or is this just one one
    those practical constraints that we
    all just have to deal with?
  • is this just a PC thing? It might be time to switch to Mac or Linux.
  • 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-15T20:04:16+00:00Added an answer on May 15, 2026 at 8:04 pm

    Here’s some abstract advice which may help you; yes switch operating systems, but not how you think – get virtualbox and load in a version of linux (ubuntu’s nice and quick + well supported) then use that virtual os as your development os – this way you get the best of both worlds, and when you’re finished working you simply close the virtual machine (saving it’s state if you like) and have a nice clean pc to do what you want with.

    The benefits are almost unlimited, for instance I have several virtual machines which I can load up whenever, some are testing setups, some mirror web server setups, I even have different editions of windows (such as an old XP with IE6) to test out browser bugs.

    Surprisingly, I actually find my machine runs quicker using virtualbox; and please don’t let the time to setup and run things worry you, as virtualbox is extremely quick, and you’ll find your virtual machines load much faster than your primary os.

    There are many other benefits which come with, but over all it’s a very liberating experience 🙂

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

Sidebar

Ask A Question

Stats

  • Questions 473k
  • Answers 473k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The shortest form is: $UserPhoto->setDecorators(array('File')) May 16, 2026 at 3:58 am
  • Editorial Team
    Editorial Team added an answer Use: SELECT p.* FROM PEOPLES p WHERE NOT EXISTS(SELECT NULL… May 16, 2026 at 3:58 am
  • Editorial Team
    Editorial Team added an answer Check this chart :) grabbed from this article May 16, 2026 at 3:58 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.