• Sunoc@sh.itjust.works
    link
    fedilink
    arrow-up
    49
    arrow-down
    1
    ·
    12 days ago

    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.

    • fishpen0@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      12 days ago

      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?

    • snooggums@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      12 days 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.