[In this reprinted #altdevblogaday opinion piece, Climax Games' senior programmer Thaddaeus Frogley explains why type names matter, and why programmers need to consider their human audience.] Names matter. Some 10 years ago or so, I wrote an article for a blog on using typedef when working with templated C++ types, such as the STL containers. You can read the original article (Using Typedefs) if you want. I'd like now to try to distill why I think this advice still holds up, 10 years later, even if you aren't using templates, the STL or C++. Programming is a form of communication. As a programmer, you write for two audiences: You write for the compiler, and you write for the future other programmer. For most programmers who are game developers, that future other programmer is someone already on your team, or an as yet hired future team member. Even the solo programmer, the indie developer, working from home, will on occasion return to code written many years ago, and use it as the basis of new work. Who knows, if that solo project goes viral, one day you might be hiring people to port it to the latest console or handheld device. Any professional writer will tell you, one of the many important principles of good writing is to consider your audience. This applies to programming as well. Now, I'm not going to say that the human audience comes first. A programmer's primary job is to get the computer to Do The Right Things, and sacrificing how clearly you are instructing the computer in order to better communicate with the human reader may well be a questionable trade off, especially when performance is an important factor in the engineering goals. But even with the primary function of writing code that works dealt with, there is often room to improve how literate your programming is, and one of the most powerful tools as your disposal as a programmer is giving things good names. A good type name can tell the reader not just what a type is for, but also what it is not for. Consider a Name vs a String, or a NameList vs a StringContainer. So, please, think carefully about how you name your types, functions, methods, and variables, because it's not just the compiler reading the code. One day it might be me. [This piece was reprinted from #AltDevBlogADay, a shared blog initiative started by @mike_acton devoted to giving game developers of all disciplines a place to motivate each other to write regularly about their personal game development passions.]
Opinion: Type Names Matter
              Nov. 2, 2011
            
          
              
        
            Tags:
            
            2011
            
          
        Subscribe to our newsletter
              
            About JikGuard.com
JikGuard.com, a high-tech security service provider focusing on game protection and anti-cheat, is committed to helping game companies solve the problem of cheats and hacks, and providing deeply integrated encryption protection solutions for games.
Top
David Dastmalchian Comments On M. Bison Role, Says He's Playing Lots Of STREET FIGHTER 2
                
                    July 28, 2025
                
                
MORTAL KOMBAT II Producer Teases Third Installment And Potential Spin-Offs
                
                    July 28, 2025
                
                
GOD OF WAR Showrunner Ronald D. Moore Discusses The Prime Video Adaptation's Tone And Development Progress
                
                    July 28, 2025
                
                
UKIE responds to adult games being pulled from Steam and itch.io after pressure from payment providers
                
                    July 28, 2025
                
                
The studio behind Teenage Mutant Ninja Turtles: Mutants Unleashed brings in union after facing closure
                
                    July 28, 2025
                
                
Recent
David Dastmalchian Comments On M. Bison Role, Says He's Playing Lots Of STREET FIGHTER 2
                
                    July 28, 2025
                
                
MORTAL KOMBAT II Producer Teases Third Installment And Potential Spin-Offs
                
                    July 28, 2025
                
                
GOD OF WAR Showrunner Ronald D. Moore Discusses The Prime Video Adaptation's Tone And Development Progress
                
                    July 28, 2025
                
                
UKIE responds to adult games being pulled from Steam and itch.io after pressure from payment providers
                
                    July 28, 2025
                
                
The studio behind Teenage Mutant Ninja Turtles: Mutants Unleashed brings in union after facing closure
                
                    July 28, 2025
                
                
Some game firms are struggling with the complexities of the UK Online Safety Act
                
                    July 28, 2025
                
                
Sony sues Tencent for "slavish clone" of its "valuable" Horizon franchise
                
                    July 28, 2025
                
                
Puzzle & Dragons publisher/developer GungHo Online faces shareholder revolt
                
                    July 28, 2025
                
                
Dating App Breach Exposes Images of 13,000 Women
                
                    July 28, 2025
                
                
US Woman Gets Eight Years for Part in $17m North Korean Scheme
                
                    July 28, 2025
                
                
Blog
Security Risk Analysis for Racing Games
                
                    July 28, 2025
                
                
Are there hacks that increase gacha pull rates?
                
                    July 24, 2025
                
                
VMOS Open-Source: New Threat to Game Security
                
                    July 18, 2025
                
                
How Games Detect Black and Gray Studio
                
                    July 15, 2025
                
                
How Games Detect iOS Jailbreaks
                
                    July 11, 2025
                
                
FPS Game Anti-Cheat Solution
                
                    July 9, 2025
                
                
Black and Gray Industry Insights: HappyMod
                
                    July 7, 2025
                
                
Online Game Anti-Cheat Solution
                
                    July 4, 2025
                
                
iOS Code Encryption Solutions
                
                    June 26, 2025
                
                
Casual Game Security Risks Analysis and Solutions
                
                    June 25, 2025
                
                
Random
BlackSuit Ransomware Group’s Dark Web Sites Seized in Operation Checkmate
                
                    July 25, 2025
                
                
Third-Party Breach Impacts Majority of Allianz Life US Customers
                
                    July 28, 2025
                
                
Naval Group Denies Hack Claims, Alleges "Reputational Attack"
                
                    July 28, 2025
                
                

Finally, an Android smartwatch with extensive health tracking (and doesn't break the bank)
                
                    July 25, 2025
                
                
New Scattered Spider Tactics Target VMware vSphere Environments
                
                    July 28, 2025
                
                
UKIE responds to adult games being pulled from Steam and itch.io after pressure from payment providers
                
                    July 28, 2025
                
                

Forget Whoop: I found a worthy fitness tracker alternative with none of the subscription fees
                
                    July 25, 2025
                
                
Sony sues Tencent for "slavish clone" of its "valuable" Horizon franchise
                
                    July 28, 2025
                
                

This 4K projector changed the way I watch TV at home (no keystone adjustment needed)
                
                    July 26, 2025
                
                

I got ChatGPT Agent to deliver a truly useful report - and then NotebookLM took it to the next level
                
                    July 25, 2025
                
                
Most Views
How Games Detect GameGuardian
                
                    March 17, 2025
                
                
Explanation of Game Anti-Cheat Solutions
                
                    March 17, 2025
                
                
Cheat Engine Modifier Detection Solutions
                
                    March 18, 2025
                
                
Explanation of Unity Engine Encryption Solutions
                
                    March 17, 2025
                
                
How to Anti Hack in Client-Side Games
                
                    May 21, 2025
                
                
Cocos Engine Encryption Solution
                
                    April 8, 2025
                
                
How Games Anti-Debugging
                
                    April 15, 2025
                
                
Cloud Phone Detection Solution for Gaming
                
                    May 21, 2025
                
                
How Games Detect Frida
                
                    March 25, 2025
                
                
How Games Detect PlayCover
                
                    March 26, 2025