kevincox 4 days ago

That's just an argument for having a more distinctive name.

globular-toast 4 days ago

Another reason to use a src/ directory for the actual source code.

  • andrewingram 4 days ago

    These files also generally work in a nested fashion, like .gitignore and the like. So you want something that can be injected into the namespace of any directory in your project with relatively low likelihood of conflicts.

    • verdverm 4 days ago

      Not exactly (or unclear), .gitignore files combine, much like copilot files with glob or other matching. All the instructions are put into the context

      > Agents automatically read the nearest file in the directory tree, so the closest one takes precedence

  • ceejayoz 4 days ago

    That won't save you if you want actual example.com/agents/foo routing and an (say, real estate) agents list at example.com/agents.

    • onion2k 4 days ago

      I feel bad that you're getting downvotes. The reason is that pretty much every modern web stack decouples the URL routing from the source code directory structure these days. It was a nice hack back in the day, but there are so many problems with it no one really does it any more.

      Some frameworks (Laravel, NextJS, etc) map from the directory structure to routes, but that's just a mapping rather than actually exposing the directories on the server. You can have /src/agents accessible as /agents. Or you could have /alice/bob/agents accessible through /agents. It's all just build tooling and web server config at the end of the day.

      • ceejayoz 4 days ago

        That's my point. Having your code in `/src` doesn't mean some of that code doesn't still have routing at `example.com/agents`. It doesn't have to be a real directory.

        A `.agents` directory (or routing pretending to be one) is nice because you are fairly unlikely to ever have user-facing `example.com/.agents` as a URL.

  • oblio 4 days ago

    Or accept the fact that we're in 2025 and not follow Unix conventions from when paper and printer ink were expensive and they were printing out listings, and just name the thing "source".

    I've gotten used to it, obviously - as someone with a career in IT for 20 years - but /etc & co. annoy me to no end. I know it will never change, I know why it won't change, I know GoboLinux will be just an interesting experiment, but it's still annoying.

    • von_lohengramm 4 days ago

      Have you considered that there are other metrics people are optimizing for nowadays? Perhaps typeability, screen real estate, familiarity/convention, etc.? Do you really want /User Files/Bob's Files/Coding Projects/Python Projects/Bob's Cool Python Library/Source Code/Model Files/SomeObject.py?

      • Propelloni 4 days ago

        Path length is still a thing in MS Windows, so be careful ;)

        • tracker1 4 days ago

          Depends on the WinAPI used... I still use C:/src instead of C:/Users/MyUser/src for that reason when working in windows all the same though. Too many unixy utils don't leverage the apis with the longer path, not to mention not supporting the internal certificate store and proxy config.

      • oblio 4 days ago

        1. Yes, I have, if you re-read my comment.

        2. I don't want to fight extreme positions which I did not make. Read this:

        https://gobolinux.org/at_a_glance.html

        I didn't say paths have to have spaces, etc. Just be reasonable and <<use full words in the year of our lord 2025>>.

      • animuchan 4 days ago

        While we're at this, let's make it rich text please. I want the important filenames to be in bold italic Comic Sans MS.

        • [removed] 4 days ago
          [deleted]
    • pompous_1234 4 days ago

          $HOME/accept/the/fact/that/were/in/2025/and/not/follow/unix/conventions/from/when/paper/and/printer/ink/were/expensive/and/they/were/printing/out/listings/and/just/name/the/thing/source/main.c
    • wahern 4 days ago

      we're -> we are

      I've -> I have

      & -> and

      co. -> company

      won't -> will not

      it's -> it is

      • Lockal 4 days ago

          /usr -> Program Files (hello spaces my old friends, you've come to break my apps again)
          /var -> ProgramData (but no spaces here)
          /home -> Documents and Settings
          /etc -> Control Panel
      • csvm 4 days ago

        What is the point of this? What is this adding to the conversation?

    • globular-toast 4 days ago

      Call it whatever you like. I don't care and that clearly wasn't the point of my comment.

      One thing I've learnt, though, is unless you have a very good reason to try to change language you should just talk the same language as everyone else. I don't like the American short billion. It makes no sense and it's less useful. But that's what I use because I speak English and that's what we use now. If I see a src/ directory I know exactly what it is. If I see source/ it will give me pause. Get over it IMO.

      • oblio 4 days ago

        > If I see a src/ directory I know exactly what it is. If I see source/ it will give me pause.

        Pause for what, coffee? How does this even make sense?

        What could possibly be inside source/, if not the exact same thing as in src/?

        • von_lohengramm 4 days ago

          While the meaning of "source" may be intuitively obvious, it's still relatively unfamiliar as "src" is far more prevalent than "source" when referring to source files. While "id est" may be equivalent to "i.e.", you'd still naturally pause when reading text using the former instead of the latter, because the latter is far more prevalent in usage than the former.

    • HumanOstrich 4 days ago

      /Library/System/Applications/Core/Security/Daemons.app/Framework/Version 4.6.2/Let's not go full Apple please.