Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1069987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:29:59+00:00 2026-05-16T20:29:59+00:00

So I have a few private git repositories that are different language implementations (Python,

  • 0

So I have a few private git repositories that are different language implementations (Python, Java, etc.) of an algorithm. Each implementation is functionally identical, performing the same steps and giving the same output. Currently, these are separate repos, but I was wondering if I shouldn’t unify them into one repo, with directories indicating the language, like:

  master
     - java
     - python
     - ruby

I could use a git-repo combine command to preserve the history, so that’s not an issue. I was just curious as to the best practice regarding this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:29:59+00:00Added an answer on May 16, 2026 at 8:29 pm

    I had this same question with Mercurial, and an algorithm (COBS) that I wanted to implement in C and Python.

    Eventually I decided to split it into separate repositories (even though the Python implementation included a C extension that had similar code to the plain C implementation). My reasoning came down to:

    • I wanted to have independent version numbering of the implementations, and independent releases.
      • git describe is a nice feature to identify a version based on the latest annotated tag. With just one implementation in the repository, git describe usage is simple. But if different implementations with separate version numbers are in the one repository, then git describe usage becomes more complicated, needing use of the --match option to limit to tags with a given prefix. e.g. git describe --match "python*"
    • The way Python modules are typically organised (Python module packaging best-practices), it made more sense to me to keep the Python implementation separate and self-contained.
    • All else being equal, I tend to favour more fine-grained modularity.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few repositories that all generally look like this public class DepartmentsRepository
I have few Pojos in different packages, each POJO contains set of the another
I have a class that contains a few private/protected fields and some public getters
I have been reading up and trying Git for the last few days and
I have a table in MySQL that have a few columns that have default
In my application I have a few SharedPreference values. The mode is PRIVATE (0),
We have a few in-house libraries that we've split off (for several reasons, mostly
I have a few classes that hold references to other classes through IDictionary instance
I have few classes that I need to annotate with a name so I
I have a local Git repository I've been developing under for a few days:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.