Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyword: Common
#11
Quote:Even in Quake there are global vars used and their number is quite high
Quake was released 10 years ago. You can't compare that to todays coding practise.

Anyway it's Carmack and he is known to write code that nobody else wants to work with.
Reply
#12
really, globals themselves are not bad practice, imo. its when you start "twisting" up the flow of the program (hence the term, spaghetti code) using them that they become a problem.
Reply
#13
I used to use globals all the time! I think that's what caused me lots of problems. Sad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)