March 7, 2016

Mafia Games Monday (MGM) – Development Environment: Necessary?

About two months ago, I was contacted by an owner of a game and asked me to do an update to their experience system. They said it was outdated, and it did not calculate experience to what they felt was correct. Not really a difficult project, so by all means, I expressed interest and asked to take a look at what they had as well as what they wanted to accomplish.

They showed me the file that was on their game of where the experience is calculated. Ok, all makes sense, this should be fairly simple to work with. I was given a basic set of requirements that were a little vague, but with any project that’s quite usual – start with a basic set and ask questions to gather the rest. I started asking questions, got some answers, so I felt like I was ready to take it on.

Before I started doing any sort of negotiations, I asked where I would be making the changes. He said “on the game”, referencing the live version of his site (or production).

Now this is starting to scare me.

Working on a core algorithm on a live site? No, no, a thousand times no.

It brought back memories of in the past when I owned my very first game and only had one site. I had to make changes to an algorithm in the “core”, and making that change cost me a couple hours of the site being down because I messed it up. It also brought up a golden rule for my development: Never develop in production. You never know what your change will cause.

I brought this up with him, mentioning that I cannot and will not be making that kind of change on a live site. He tried to negotiate with me, but my mind was made up about doing this on the live version of his site. He eventually gave up, didn’t even bother to ask me about setting up a “beta” or “development” site, and I have not heard from him since.

What was the point of this whole story? You should have a development version of your site, no matter how big or small it is. You do not want to make changes directly on the live version of your site because you really do not know what your change will do. You may think you know, but believe me, it is much more difficult to actually know rather than be “pretty sure”. A “pretty sure” that causes the live version of a site to go down will not look good, and your users will not be happy.

Now you may be looking at me, saying “Why didn’t you just set up your own development environment”? Good question – and in this case, to answer your question, I couldn’t without access to everything, which I could not get. Not only that, but if anything else was changed on his live site (which that’s where he was making all of his changes at), it could impact my changes! You never know what changes could impact something else!

So, create a development version! It is not that difficult – use a sub-domain, or have a whole different area for it. If you are unsure about how to create one, ask! You do not want your whole site (or even a portion of it) to completely stop working all because you could not be bothered to make the change in a development version first.

That’s all for now, until next time…keep that tech gear ticking.

~Goliath7470