magic_lobster_party

  • 0 Posts
  • 53 Comments
Joined 9 months ago
cake
Cake day: March 4th, 2024

help-circle






  • Haven’t properly watched the videos, but I don’t think OOP is that bad. I even think encapsulation is one of the core strengths of OOP.

    I’ve worked with systems where no thought was put into encapsulation, and those are often incredibly difficult to work with because everything is heavily interconnected. Can’t make a change in a small thing without risking breaking something else at the other side of the program.

    I like to see encapsulation as a workspace. It defines the tools we have direct access to. Changing one thing in a workspace shouldn’t affect anything on the other side of the program. Makes it much easier to collaborate in large teams. Minimizes the risk of interfering each other’s work.


  • I think applying design patterns blindly without understanding what problems they’re supposed to solve is often more harmful than not using them. It can lead to difficult to manage code bases because the program is over engineered for problems that don’t exist.

    My general rule of thumb is to write code that can be easily adapted to unexpected changes in requirements. Avoid writing code that paints yourself into a corner. Simple solutions are often easier to work with than complex solutions. If what you’re doing adds a lot of complexity, take a step back and seek other options. Maybe you’re overlooking an obviously simple solution to the problem?

    I think inheritance almost always has this “painting yourself into the corner” tendency. Once the design is set, it’s often difficult to break free from it. Composition along with interfaces is generally the better choice. Often not even interfaces are needed.

    This comes with experience. You learn what works, and what doesn’t. Often you do it the hard way.

    Databases are tricky. I have no good advice for that.



  • Sounds more like warframe is using the early access model to me. I think that’s fine. Many great games are in early access that are worth their price even in their unfinished state.

    Star Citizen feels different, even though it’s also early access. In part because of the weirdly priced ships. There are ships that cost thousands dollars. Like, what’s the justification for that? Most people spend way less on games for a year, but this game asks this price just to gain access to one asset?

    Another part is the ever expanding scope. It feels like they don’t really want to release the game. They’ve found there’s no point in actually finishing the game when they can just keep selling the promise of the definitive space sim game. Keep giving them more money and they will promise more.