you are viewing a single comment's thread
view the rest of the comments
[–] 49 points 11 months ago (5 children)

But actually it feels more something like:

class Apple {       
  public:             
    string color;  
    string shape;
    string taste;
    string recipes[];
};

I know what an apple is, I know stuff about it and what properties it has, but it produces no picture (nor code btw...) in my head.

  • source
  • hideshow 10 child comments
  • [–] 9 points 11 months ago (1 child)

    Your recipes are a local string!? Are you storing duplicate recipes for apple pie in your Apple class and your sugar, flour, butter, salt, water, cinnamon, and lemon classes?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 11 months ago

    This is everything I haven't seen before. If I am running a table top game like D&D my monsters are literally a list of traits and regurgitated descriptions with no visual details in my own mind. This works out pretty well somehow.

  • source
  • parent