I realized I always make a source folder under home and then subfolders named after programming languages to organize projects but then I realized I somehow had my own convention for how to store my source code and I have no idea where I got it from

Then I thought. what about other Linux users ?

What sorts of conventions do you have that pertains to folder structure in Linux ?

  • underscores@lemmy.zipOP
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 days ago

    for me I consider that a web project so it goes into the typescript folder, if it’s backend only then python

    • Dave@lemmy.nz
      link
      fedilink
      arrow-up
      12
      ·
      edit-2
      2 days ago

      Why group it into language instead of say a ‘web’ directory or ‘android’/‘mobile’?

      I’m just curious, I am more of a ‘throw everything in one directory and home I remember what I’m looking for’ sort of organiser.

      • Grey Cat@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 days ago

        Honestly it’s a pretty good way of compartmentalizing projects in your mind.
        You usually remember pretty well what language your wrote a project in.
        And if you want to find a project again you just have to look in that language’s directory.

        Second advantage is that if there’s a language you only fucked around a little for fun, it doesn’t clutter the directories of your most used languages.

      • underscores@lemmy.zipOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        for me the project exists because I thought “id like to play with <language> today” but not necessarily “I want to make a <platform> project”

      • vandsjov@feddit.dk
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        I agree, just have it by project. Otherwise I might have to look in different folders to find something. And what does it add, that something is grouped by language?