Okay, seen the recent news about CS:GO/Team Fortress 2 code getting leaked, and hackers using it to compromise people's computers with a new vulnerability.
That's terrible, especially for the players, and I'd definitely suggest anyone who plays those games stop playing for a while until the issue gets sorted, since it's a huge security risk to play right now.
But, and here's the big one here...
Why is this code being public the issue?
Honestly, most code should be public now. As open source software proves, having the source code for something open to the public isn't a bad thing, and it's not usually a security risk either. Hell, the fact a lot of proprietary solutions still let you view the source code (like XenForo, the software this very site runs on) indicates the same thing.
What's more, the hassle this leak has caused arguably just bolsters that argument.
Think about it. The reason this exploit exists is because of a bug in the engine. A bug in the engine that only went 'undiscovered' because users couldn't see this part of the code.
Valve relied on security by obscurity here, and (like in many cases with other companies in the past), it bit them in the ass.
In fact, they didn't even do that 'right'. The code was visible to those who paid for a developer license or something similar.
So they relied on their partners/business customers all being filled with completely honest people who wouldn't look for exploits to use against said games in future.
Either way, if the code was public, people would know this was an issue, and it probably would have fixed in the last couple of years. Servers wouldn't be shut down/suspended due to the code leaking, and no one's computer would be risk right now.
It speaks to a problem in the industry to be honest. That the industry still doesn't realised that closed source, proprietary setups where no one can see the code except the companies themselves is a security problem, not a strength. Almost every multiplayer game in existence would be in peril if its code leaked online in full, because almost every single one likely has security flaws and exploits that weren't found due to only the developers behind the game (and their partners/certification organisations) ever having looked at it.