DEV Community

Cover image for What do you call your folder where you keep your code?
Nočnica Mellifera for Heroku

Posted on

What do you call your folder where you keep your code?

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.

Oldest comments (55)

Collapse
 
ekafyi profile image
Eka

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:

  • _Work --> has subdirectories for Day Job and each paid side project
  • Foo --> all non-paid/personal coding projects go here
  • Bar
  • Baz

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.

Collapse
 
nikoheikkila profile image
Niko Heikkilä

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.

Collapse
 
thecodepixi profile image
Emmy | Pixi

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 haha

Collapse
 
chakrihacker profile image
Subramanya Chakravarthy

Me too

Collapse
 
din0s profile image
dinos

Same here!

Collapse
 
nocnica profile image
Nočnica Mellifera

This makes more sense than the people calling it “github”

Collapse
 
thecodepixi profile image
Emmy | Pixi

Is that a thing people do!?

Thread Thread
 
nocnica profile image
Nočnica Mellifera

on here and on Twitter it is, I think, the most common answer

Collapse
 
premjeet profile image
PremJeet

Git_repo and then obviously there are sub directories d3,p5 etc 👨‍💻

Collapse
 
kyleboe profile image
Kyle Boe

I use this pattern:

~/<version control host>/<repo name>

This looks like:

~/github/railsdock

Collapse
 
sergix profile image
Peyton McGinnis

~/dev/<language>/<project> for local projects,

~/dev/git/<project> for projects on GitHub

Collapse
 
nejos97 profile image
Nenba Jonathan

i use this pattern
~/workspace/<project>/src

Collapse
 
c_v_ya profile image
Constantine

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.

Collapse
 
cmanique profile image
Carlos Manique Silva • Edited

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.

Collapse
 
ashkanmohammadi profile image
Amohammadi2

Nice 👍

Collapse
 
leonlafa profile image
Leon Lafayette

Be prepared to be underwhelmed.

I name my folder... dev/ 😀

Collapse
 
mrjjwright profile image
John Wright

Code

Collapse
 
qainsights profile image
NaveenKumar Namachivayam ⚡

Just gits :)

Collapse
 
oseifrimpong profile image
Obed Osei Frimpong

~/development

Collapse
 
nirlanka profile image
Nir Lanka ニル

~/Dev
It matches other folder names in ~.

Collapse
 
dhelbegor profile image
Adailton do nascimento

I use workspace/ and inside it projects/ works/ and limbo/