Skip to main content
ApplePie's user avatar
ApplePie's user avatar
ApplePie's user avatar
ApplePie
  • Member for 12 years, 5 months
  • Last seen more than 1 year ago
  • Montreal, Canada
awarded
awarded
awarded
asked
Loading…
awarded
awarded
comment
What is "using namespace" pollution?
It just means that you should be careful with using directives because in this case it would break your max() function if you had defined one and included <algorithm>. This is a simple case but you never know what you might break. You'd need to know the entire library to be sure you didn't break it but you can't know if your code would break (i.e. name collision) in the future.
awarded
answered
Loading…
accepted
awarded
asked
Loading…
comment
accepted
comment
OOP way to design a manager of groups of users
Wow how could I not think about Composite ! Thanks ! Indeed it might be overengineering but I think it might be ok in this case since this is for a software engineering class. Also yes there is the possibility of having groups of groups (not in the case of users but in the case of components).
Loading…
awarded
accepted
revised
Tic tac toe class diagram
deleted 1 characters in body
Loading…
asked
Loading…