Jump to content
  • Advertisement
Sign in to follow this  
NightCreature83

Unmaintainable code

This topic is 975 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement


On the bright side, their compilation times would be pretty fast!

 

Yeah, if they never ever have to change anything in that code again, ever.

Which I really hope for the poor soul that has to maintain this abomination.

Share this post


Link to post
Share on other sites

TRWTF is

using namespace std;
What's wrong with that? It's after all their headers, in a cpp. Standard library is bad?

On the bright side, their compilation times would be pretty fast!

Yeah, if they never ever have to change anything in that code again, ever.
Which I really hope for the poor soul that has to maintain this abomination.
I meant that one large file often compiles faster than many small files, even though it's technically doing more work... ;) good old C++ ;/

Share this post


Link to post
Share on other sites

 

TRWTF is

using namespace std;
What's wrong with that? It's after all their headers, in a cpp. Standard library is bad?

 

On the bright side, their compilation times would be pretty fast!

Yeah, if they never ever have to change anything in that code again, ever.
Which I really hope for the poor soul that has to maintain this abomination.
I meant that one large file often compiles faster than many small files, even though it's technically doing more work... ;) good old C++ ;/

 

It's still polluting that translation units global namespace, but I take more offense to all the externs and global variables defined all over the place. The person class is a nice read as well far less bad in function design but the whole class internal variables are public :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!