Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

The dir structure is defined by me.

Namespaces are defined by the 3rd party developer.



sort by: page size:

/dir to me is "the dir itself".

. = current directory

.. = parent directory


Directories that are based on objective criteria don't have this problem.

For example /dev is defined by objective criteria, and thus there's not much argument to what goes into /dev. We should only have core directory structure defined by objective criteria.


  ~/i     # internal (stuff I made)
  ~/x     # external (stuff I downloaded, etc.)

  # exceptions to the above:
  ~/i/collab
  ~/i/mashup

  ~/bin
  ~/tmp
That's it for top-level directories.

I also really like the (new?) trend of programs keeping their dotfiles in ~/.config/program-name/foorc


Why would it have to define those directories in particular?

The point of directories is to provide proper isolation of dependencies. But that followed the same path.

What leads to... It's better to add non-root mounting into the author's list. I don't think there's even anything that needs to change, permissions are already there.


Or even:

  puts Dir["*.rb"]

do/i/still/need/to/create/sub/directories/for/the/things/i/want/namespace?

Technical topic directories are alive and well!

https://github.com/sindresorhus/awesome


console.dir is really useful. It give you variable structure in console.

Should be called

oohya.directory


    function dir(){
      #make the windows guy happy 
      find ./ -type f -name "$1"
    }

An IDE should get access to the specific directory that contains the project, not everything.

Looks like there are example DIRs in there.

I guess clone to local then open index.html


Well, that's basically what directories are.

The with-current-directory part is the dynamic part - i.e. within its dynamic scope, the current directory is now dir.

The scoping of the dir variable itself is irrelevant.


I put my components into app/components. This is the one, true directory structure. All other directory structures are wrong. \s

You are absolutely right :-) I think, that this is a relict, since I personally use an alias for mkdir:

  alias mkdir='mkdir -p'
Thank you

It's not in metadata, it's in the directory structure!
next

Legal | privacy