axl
  • Member for 5 years, 10 months
  • Last seen more than a week ago
  • Shanghai, China
3 answers
48 votes
43k views
Appropriate Git workflow for multiple active releases while handling hotfixes
Accepted answer
22 votes

You seem to be branching off on every major release (12.0.0), then having possible minor updates to each (12.1.0), and hot fixes (12.2.1). Correct? There's no specific reason why you cannot keep ...

View answer
8 answers
34 votes
3k views
How did version control work on microcomputers of the day in the 80s and 90s?
17 votes

This is probably not representative for the games industry at large, but it worked well in our small games company. Never worked with business software, which probably had other requirements. From ...

View answer
6 answers
23 votes
736 views
Splitting coding progress into meaningful commits without too much overhead
Accepted answer
11 votes

I think that you have to be very pragmatic when programming. Even if it might be possible to formulate the perfect scheme, workflow, or implementation, sometimes you just need to get work done. Here's ...

View answer
4 answers
9 votes
7k views
Using a git repository as the base of a new project
Accepted answer
10 votes

If I understand you correctly, you want to use this repo as a template, to begin a new project, not expand on an existing product. You're not interested in history, only a snapshot starting point. In ...

View answer
13 answers
45 votes
12k views
Encrypted content in games
10 votes

I've been around long enough to know that if the content is there, someone will find it. Making it harder will just attract more determined people. The more popular your product, the more interesting ...

View answer
7 answers
9 votes
1k views
Why aren't there more multi natural language programming languages?
5 votes

I don't know of any other languages except possibly some really old esoteric version of BASIC, which tended to come in a lot of strange favors, so I'll stick to the bonus question: why there are so ...

View answer
1 answers
-1 votes
391 views
What is the C++ equivalent of a logging facade in Java?
Accepted answer
4 votes

The facade pattern is not really what you want here, as that’s more a way to hide the complexity of a system behind a simpler api, which IMO is not really relevant to your problem. As the user of ...

View answer
3 answers
7 votes
606 views
Git philosophy: public vs. personal files: is there hybrid versionning?
Accepted answer
4 votes

You could consider a "root" repo containing your private tools/hooks/scripts, and a submodule for your public sources. The submodule would know nothing of the parent project and would have a "clean" ...

View answer
2 answers
0 votes
2k views
git clone vs cp -R
3 votes

This is not strictly an answer to you question, but if you want to start a new project, do you really want to copy all the history, branches, etc from the old project? If you just want a working ...

View answer
3 answers
-3 votes
298 views
What is the most elemental workflow for TDD?
3 votes

You will normally keep your tests in a separate folder hierarchy as they usually aren't part of the binary you ship, and it's just simpler to not mix them up, but you keep them in the same repo and ...

View answer
2 answers
1 votes
872 views
Update semver minor version on test updates?
2 votes

I think it's quite alright to just bump your patch version component if you want to make a new package with no changes other than additional tests. In a way you've just improved your "documentation" a ...

View answer
4 answers
30 votes
20k views
In GitHub flow, is it OK to base feature branch on another feature branch?
2 votes

A feature branch is normally considered less stable than the trunk (develop/master), so you possibly subject yourself to more underlying changes than normal if you base your work off of one. Also, ...

View answer
3 answers
1 votes
1k views
Rule of thumb for when to use a hotfix?
1 votes

There are several factors to consider IMO; Does the hot fix need to be deployed to the client, or can you "silently" patch the server to deal with it? How involved is a client upgrade? Automatic? ...

View answer
2 answers
9 votes
199 views
After breaking our code into reusable bits, how do we test and deploy?
1 votes

I think you have a lot of good ideas already, I've used most of them on various projects throughout the years, and your primary concern seem to be the inability to tell what version of all modules ...

View answer
3 answers
5 votes
309 views
Is it worth the effort to use culture invariant string formatting in single-culture applications?
1 votes

Even if you never intend to run on another system or in another culture, once that fact changes, and you may be surprised how often that happens, stating the invariant culture in this case marks your ...

View answer
1 answers
3 votes
112 views
Structuring git repository as a 'catch-all'
Accepted answer
1 votes

It's certainly not the intended use case for most version control systems, but if the OS supports it for the files in question, I would mirror the structure you want to preserve in a git repo in your ...

View answer
2 answers
0 votes
731 views
Method to mask variable names in C++ files (cpp, h) and create an intermediate API?
0 votes

You cannot practically hide anything from a determined programmer, but you can create an abstraction layer to hide the details of your implementation from a casual user, for various purposes. For ...

View answer