At the moment I'm in the process of updating a site that is coded procedurally and change it to an OOP model. I understand OOP but deciding on what classes to use always puzzles me and hinders me from getting stuck in with the coding. In an arcade site you have more functions than anything so it's deciding where things fit in? I have two obvious classes that would be users and games. It's more parts of the site instead of different objects ... you have index, games categories, play games page, user page, etc .. What would be the best way to approach it? I also find it hard to relate to OOP examples about cars because that's just not a practical example of OOP ...
From my perspective, for a 'arcade site' I would have many classes, for example. 1. User Class - which covers user id, profile, signature, changes, updates, deletion, ban etc 2. Games Class - game id, name, picture, description, times played, played by who 3. Database - connection, add games, remove games, add users, remove users, edit games/users etc 4. Security - etc etc 5. Analaytics - etc etc I go into very depth when I'm developing, I use 4/5 because with 5 I can see where and what country users are coming from, then using this information you can target specific country related cpa offers and ad's.