Let’s Get Some Net Neutrality!

November 14, 2014

Hello all!

As many of you know, net neutrality is very important in today’s society in the United States especially. Well on Monday, the United States president posted a video discussing net neutrality, which you can see below.

It sounds to me like the president is on board with most of us to keep net neutrality alive and well. There is also another comedic video with John Oliver through the show “Last Week Tonight” that is posted below as well.

What are your thoughts on net neutrality?

President Obama – Net Neutrality
Last Week Tonight – Net Neutrality

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

~Goliath7470

Mafia Games Monday (MGM) – Organizing Your Files

November 10, 2014

Hello all,

So last week, I discussed about MVC, and in that discussion, I mentioned that MVC is also a way to organize your code base. I am sure many of you have your own method of organizing your files, but if you do not, then this is your wake-up call.

File organization is extremely important. Without it, your files will be all over the place, and if you are attempting to track down a bug in order to fix it, it may prove to be very difficult in order to follow the chaining of the files without some kind of organization. Not only that, but many people need to have some kind of organization in order to be more efficient in what they do. If you are one of these people, then without some kind of organization structure, you will prove to not be very efficient in what you do. Also, most of you have your files somewhat organized on your computer, right? So why not on your game?

I certainly cannot say that I am perfect either because my files are not organized 100% of the time, but this is still something to heavily consider if you are an owner of a game. You want to be organized!

So, if you do not have any file organization right now, what can you do?

My first suggestion to you first is to map out your game. Sounds tedious, doesn’t it? Well it is vitally important to do so. Not only will you be able to easily trace the file chaining for bugs, but you will have a complete understanding of where all of your files link up. For those of you who purchased engines, you may also find that some of the files that you have are not even used!

After mapping out your game, your next suggestion is to figure out how you would like to organize your files. Figure out a structure that makes sense to your game in particular. MVC is not suggested if you already have your game set up, but it can work. The link to my post discussing MVC is here: http://g7470programming.com/blog/wordpress/2014/11/mafia-games-monday-mgm-what-is-mvc/. Most of the time, you should pick a organization structure that makes the most sense to you.

After picking your structure, the next step is to start organizing your files. This is pretty straight-forward, so put your files in the proper defined directory that you have decided.

The final step is to adjust your code base to reflect the organization change. If you have your mapping available from the first step, this will be rather simple to find the files and rename the include paths appropriately.

I know that this sounds like a daunting task, but file organization is very important in any kind of application or even on your home computer.

What kind of file organization do you have? If you don’t have any file organization and choose not to organize, why not?

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

~Goliath7470

Mafia Games Monday (MGM) – What is MVC?

November 3, 2014

Hey all,

So there are many text-based games out there, but what is the framework of which you are using to organize your code? Is it just built off of a directory structure? All the files mashed into one area? No organization or framework?

Within the past couple weeks, I have just started to work with a fellow programmer whose name is Kyle (shout-out to his site: https://toplistedgames.com/) to work on building a small example of a text-based game using a framework called MVC.

So, what is MVC?
MVC is a framework that separates different interfaces in order to give not only a complete organization of your code base, but also encourages re-use of most of the code base with the exception of what the user sees.

What does MVC mean?
MVC stands for Model-View-Controller.

How does MVC work?
MVC works by separating the interfaces, yet having a link to connect the three interfaces together.
The controller is your base code. Basically, this code will run on most, if not all, pages in order to run the necessary background logic. Most of the time, this code is used to define functions which can be used in the models as well as create the very base layout which will be used throughout your site or application.
The model is the code that layers over top of the controller and makes a connection between the view and the controller. The model has some background code as well, but it uses functions that can be utilized in the views. The model usually displays most of the site or application-wide layout to the user.
The view is code that is specific to the page of which you are viewing. The view will display the page-specific layout to the user.

Is MVC specific to a programming language?
No it is not! MVC is an organizational technique, which is not limited to any language. I have seen these done in C++, C#, and PHP before, but MVC can be done in many other languages.

Any examples of MVC?
Of course! Here are a couple MVC exmples:

What are your opinions on MVC? Is this a good framework to use for text-based games? Why or why not?

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

~Goliath7470

Mafia Game Monday (MGM) – Game Management – Part 2

October 20, 2014

Hey all,

So last week, I was going on about how important Game Management is as well as stated some tips in order to help you with proper Game Management. If you have not read this post, read that here: http://g7470programming.com/blog/wordpress/2014/10/mafia-game-monday-mgm-game-management-part-1/

Ok, so tips are nice, but why does any of this have to do with your game? You got Game Management already in place, so why does this matter to you?

Game Management is something that is never stagnant. It changes all the time! Wait, Game Management changes all the time? How is that even possible?

Let us first think of your game like a company or a business. In a business, you have different managers that have been assigned specific roles. As the business demands begins to change, what would happen to your company if those manager roles did not change with your business demands? You would not only be missing out on a great opportunity (thus losing opportunity cost), but the company would also not function properly. You will have mismanagement all over the place, and your company would eventually come to a screeching halt because your company’s focus is not on the current customer’s demand.

Well, as your game evolves and changes, the management of your game must change along with it. You cannot stick to the same Game Management throughout the lifetime of the game and expect that to work. That strategy simply will not work! The users in those roles must change, and the roles themselves must adapt to the new gaming environment. For example, you start your game with one Forum Moderator to oversee the forums. Now, the forum rapidly expanded, and posts are being put on your forum at least one every minute! Do you think one Forum Moderator will be able to handle that kind of demand? No way!

Ok, so you now see that your management must change along with the demands of your users, but again, you already know this, so what difference does it make?

Let us go back to thinking that your game is a business. In a business, problems come up that must be resolved quickly and efficiently; however, you also want to limit the amount of time invested into problems in the future. You want to devote your time to making the business more efficient, right? So what could be more efficient than solving any problems very quickly, which gives your business more time to devote to future development?

Thus, the term adaptive management is born. Adaptive Management is exactly what was stated above: to not only solve problems with solutions, but also learn along the way in order to reduce error when producing said solutions.

So what does this have to do with your game?

A game is just like a business. Problems will arise with every game, and Game Management will help produce the solution for said problem. You want solutions that will be the best for not only for your users, but easily manageable, right? Well, with adaptive management, your management staff (including you) will get better and better at providing these solutions, as you are all learning along the way. The last thing you would want to do as a game owner is get stuck in your opinions and not learn along the way, as getting stuck in your own opinions usually leads to a game’s failure.

So remember: Game Management is important, it will change, and you must be willing to learn along the way. Keeping all of these things in mind, and you will have a much better head on your shoulders in order to bring a great game to the web. 🙂

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

~Goliath7470

Mafia Game Monday (MGM) – Game Management – Part 1

October 13, 2014

This past week, I have been helping numerous owners of their games with code modifications, so because of this, I have been playing some of their games as well in order to get a feel for how their game operates. With many different owners, they all have various different methods for how they run their game. Because of playing these games, it brings back memories of when I was a sole owner of a game (Gangster Sanctuary for those of you who have played that before) of a very important topic: Game Management.

Game Management is a very broad topic but also extremely important for any owner. You want to make sure that your game runs appropriately 24 hours a day, which is impossible to monitor all the time when you have to sleep! So as someone who has experience with being an owner as well, here are some tips of mine in order to get started with Game Management:

  1. Create a Strategy BEFORE Launch – This is key. Make sure you have an idea of how you would like the game to be managed before launching your site. No management strategy while the game is active usually leads to failure.
  2. Develop Rules BEFORE Launch – This goes along with the previous point. As with a strategy, develop a rule base before launching your site so that rules are in place. You do not want to develop rules as you go. This usually leads to a game’s failure.
  3. Have a Team – This team can be as little as a couple of people to many people depending upon your game size or your own personal preference. You cannot manage a game entirely on your own. Make sure you have some kind of team that can help you manage the game!
  4. Define Management Roles – Along with my previous point, make sure everyone in your team has a defined management role. With roles properly defined, it will make it much easier for you to understand what the team is doing.
  5. Give Team Members Authority ONLY as Necessary – Do not give your team members any extra authority than what is absolutely needed in their defined role. You would not want for example a Forum Moderator to have the authority to ban a user from the game. Keep this in mind when defining responsibilities.

There are more specific strategies that you can implement for your game, so stay tuned for next week!

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

~Goliath7470

Mafia Game Monday (MGM) – Importance of Integrity

September 29, 2014

Hey all,

So, you are an owner of a game, and in order for this game to run with users, you have a database that stores all of the information about the users. Well, in order for users to interact with your game, it will require input from the user in many different ways.

Ok, you all know that already, but what does this have to do with the topic of this post?

What is Integrity?

Integrity can mean various different things, but the base definition is that the data will fit and make sense when interacting with a page as well as interacting with a database. It can also mean ensuring the “truth”, or lack of unauthorized modification, of data during transit.

What are the Types of Integrity?

There are multiple types of integrity. They are:

  • Data Integrity – This is ensuring that the data has not been modified during the transit of the data.
  • Referential Integrity – This is verifying that in a database with a table that uses a foreign key, the value of a foreign key matches a primary key value in the table that uses that column as a primary key (of course when linked appropriately).

How to Ensure Data Integrity?

Well, it is very difficult to completely ensure data integrity, especially without full control over the environment that is used for the service (such as using a hosting company to store your site); however, there are a couple things that you can do in order to ensure data integrity. They are the following:

  1. Check ALL Data BEFORE Entering Into Database – This is extremely important. Without validating the data that is being put into your database, an intruder could easily do a SQL injection attack in order to gain access to your data. If you do not know what SQL injection is, check out the link here.
  2. Only Give Input to Users That is Absolutely Required – Attacks such as SQL injection cannot occur if the user cannot input data, so if users do not necessarily have to input data in order to change the outcome, then simply do not give the users the ability to input any data. This will make data integrity a whole lot easier with no direct user input!

In terms of referential integrity, this is a great tool to use when you are creating tables that are directly dependent upon other tables. Foreign keys are a great way to do this, and foreign keys by default usually automatically configure referential integrity. If you have a table that is dependent upon another table, enforce a foreign key! This will ensure that the foreign key value in one table is a value that is by no doubt a primary key value in the other table.

What are your thoughts on integrity? What are your methods to help ensure integrity?

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

~Goliath7470

Mafia Game Monday (MGM) – How Important is Usability?

September 22, 2014

Hello all,

So, you are an owner or administrator of a text-based game. It was just released about a week ago, so you have plenty of online users trying to get their hands on becoming a very strong force in the game. Throughout the week, you have gotten many requests to add or update features. So, in order to keep the users happy, you go ahead and either add or update all of those features the user requested. However, once you complete all of these requests in order to keep the users happy, your users are now even more disgruntled. They cannot understand how the features work. You try to explain the best that you can of the features, but they simply cannot wrap their heads around it and leave the game. What happened? Did you do something wrong here? All you were doing was trying to keep the users happy!

This is a very common scenario of a term called usability. Usability is the ease of use as well as the ease of the ability to learn the new product or feature. You could very well create all of these new features or updates that your users request, but if they do not understand how to use those features or updates, then all that does is turn them away.

I know most of you like to show your users how these features make your game unique, so how do you make these features usable?

Here are some tips to do just that!

1) If you cannot fully understand the feature at point of request, do not begin implementing the feature until fully understood.
I have seen this happen many times (and I have been guilty of this a couple times too). Simply put: do not start implementing a feature that you as the developer do not even fully understand.

2) If you have other staff members, tell them of the potential feature and ask for feedback.
Your other staff members can be very helpful in determining the usability of a feature. If they cannot understand the feature after your detailed explanation, just imagine how it might be for the other users.

3) After implementation, have a few members test the feature and provide feedback.
Have a beta test of a feature. You can certainly use your staff members to help test as well. This beta test can certainly help you improve the usability of a feature before launch.

4) Be sure to fully document the feature for the users BEFORE launch!
I have seen this happen so many times. An administrator releases a feature, says it is available, but does not provide much information about the feature itself. Do not expect users to “just know” what a feature is. Make sure you have full documentation ready to put on the site when the feature is launched so that the users can at least get a grasp of what the feature is all about.

These tips can certainly help usability of a product or feature.

Do you think usability is beneficial? Why or why not? What other tips do you have to improve usability?

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

~Goliath7470

3D Printed Cars!

September 17, 2014

Hello all,

So, usually, when cars are created, after design, it takes years to produce the car that is fit by the final design and sometimes, it is not even exactly the same.

Well, at the International Manufacturing Technology Show this year, they have revealed the world’s first 3D printed car. The car only took approximately 44 hours to create. As I do have some interest in cars, this is certainly really interesting to see. Perhaps in the future, all cars will be made this way. Personally, although the design is rather sleek, I do not know if I would feel comfortable in that car haha.

If you do not know what 3D printing is, check that out here.

The link to the original article is here: http://www.imts.com/show/newsletter/insider/article.cfm?aid=1151. Feel free to take a look and see for yourself!

Do you think 3D printed cars are the way of the future? What are your thoughts?

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

~Goliath7470

Is The Labor Industry Gone for Good?

September 3, 2014

Hey all,

I have encountered a very interesting video today regarding the ever-changing job industry. The video I watched regarding this subject made a very strong claim: 45% of the workforce will become unemployable because robots will be doing their jobs. I thought to myself: How could this possibly be? We have been working tirelessly to ensure that all citizens of the workforce have the possibility to get a job!

Well, I got my answer later on in the video…

It states that the same exact thing happened to horses back in the early 20th century. If you really think about it, they’re right: horses now are hardly ever used as a mode of transportation..that is what cars are for now. So, is this true?

Well..watch the video and form an opinion for yourself: Humans Need Not Apply

You may also visit the creator (CGP Grey)’s website: CGP Grey Website

So, what are your thoughts about this philosophy?

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

~Goliath7470

Mafia Game Monday (MGM) – MYSQL Depreciation

August 25, 2014

For MGM today, I am discussing about a BIG issue for many mafia game owners that is brewing if not currently already happening for some of you: MYSQL is going away in PHP! *SCREAMS* Don’t worry, it is not the end of the world, but will require some background knowledge as well as knowledge of what to do in order to prepare yourself for the inevitable. The LAST thing you would want is your site no longer working!

What does this mean for MYSQL users?
Basically, this means that as of PHP 5.5.0, the MYSQL extension will no longer be supported and will be depreciated.

What should you do as a replacement?
You can either use the mysqli extension (http://us1.php.net/manual/en/book.mysqli.php) or PDO (http://us1.php.net/manual/en/ref.pdo-mysql.php) instead.

What is the timeline for this depreciation?
Some users may already be experiencing this problem (as PHP 5.5 has been released); however, for those of you still running on older versions of PHP, this issue has not yet impacted you. The date of impact would depend on the timeline of the upgrade of PHP on your own server or the web hosting provider; however, I would suggest changing your code ASAP in order to prepare for this depreciation.

This is also a reminder to ALL programmers out there that technology changes rapidly, and as a programmer, we have to be able to adapt as well as make the necessary changes in order to keep up with the new standard technology.

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

~Goliath7470