On each new PC I make a folder named after some version of the afterlife: 'xibalba,' 'elysium,' 'outerdark.' And that's where I keep all my code. I assume everyone does this? And I'm curious where you keep your code on your own PC.

For further actions, you may consider blocking this person and/or reporting abuse
Top comments (57)
That's interesting 😄
Mine is simple
~/projects
for all my.. well, projects. And inside are dirs by technology for personal stuff, e.g.python/
,react/
, etc. And%company_name%/
for full-time job projects.~/Dev
It matches other folder names in ~.
Mine is
~/repo
😁As a second level I'm using a customer name.
Finally, a project name.
Something like this pattern:
~/repo/customer/project
I'm boring/lazy. Mines literally just "Code" and it's a top level directory so I can just
cd code
and find what I need hahaMe too
Same here!
This makes more sense than the people calling it “github”
Is that a thing people do!?
on here and on Twitter it is, I think, the most common answer
I use variants of ~/_git/repo_domain/repo_group/repo_name depending on the hosting.
Allows me to quickly browse stuff that is either local, github, gitlab, etc...
Anything related to software tools I keep in ~/work/tools, organised in concept, vendor, tool, version (ie: ide/jetbrains/intellij/20201).
Project related stuff like documents, assets I keep in variants of ~/work/projects/customer_name/initiative/project
Many people place code together with projects, but having separate folders is useful to avoid long paths, and I get a clear ideia of what's transient and versioned or not.
Nice 👍
I'm a bit obsessive-compulsive when it comes to organizing my files (either it has be consistent OR I'd leave it completely messy). After trying complex structures, now under the default Mac OS
Documents
, I just have:Last two directories will be for non-code personal projects but currently they are empty. I recently changed laptop (~3 months ago); my old projects are in my external HDD.
I keep all my projects in
~/code/
, breaking down each project into its own directory. I don't have my first customer yet, but when I do I'll have a directory in the code directory calledcustomers
and store that data in each customers own directory.I save creative names for my hostnames. Each host in my network is named after a Norse god.
Echoing love for
~/dev
. It's short enough that it's easy to get to my files, though I am liking some of the organizing in this thread.~/dev
is a mix of Github, GitLab, and local on my Mac which is a tad unwieldy, especially when most of those haven't been touched in ages. My current Chromebook's~/dev
at least is pretty clean since it's new.Be prepared to be underwhelmed.
I name my folder... dev/ 😀
On my work laptop, it's on a secondary storage drive. So it's like this:
Of course I'm on Windows and need them accessible via stuff like FileZilla and Explorer, otherwise I'd probably have them all in WSL directly. 🤷♂️
workspaces
Then I have a workspace for the projects of my job (
i22
), one for hobby projects (personal
), one for experiments (lab
) and one when cloning foreign open source projects (external
).I call it
Developer
, so I get a nice icon :)The internal structure is:
~/Developer/%company%/%project%/
If the project is not part of a company or just for fun, it goes directly to
~/Developer
root.Mine follows this pattern:
~/src/<gitserver>/<owner>/<repository>
Example:
~/src/github.com/nikoheikkila/cv
Mostly I use
z
to jump to correct directory by repo name which is neatly supported by this.I have a
~/dev
where all my projects reside.Inside I've subfolders for work and personal projects. Work is further divided into
client-name
folders.The
client-name
folder is the home for that particular client and all their projects reside here.I've
resources
andnotes
inside each client-name.resources
contains well, any resources (AWS/Azure stuff, any documentation, or any resources) andnotes
contains timestamped txt file with my thoughts working on the project at the moment. It helps me visit back and see my thoughts few days down the feature/task. I use VSCode project manager so switching between projects/ clients is easy too.