• Treczoks@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 days ago

    Anything I built in the last 15 years of working on our companies flagship products is made like this. Everything belonging to one “object” is in one file. “Private” variables are set to “static”.

    • Patrikvo@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 days ago

      Makes sense. Most “best practices” and “standards” are just someones idea of structure written down.

      • Treczoks@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        And if you follow good standards like MISRA, you can reduce errors and issues even further.