Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Projekct refactoring
Forum Updated to NodeBB v4.3 + New Features

Projekct refactoring

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 348 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • qtprogrammer123Q Offline
    qtprogrammer123Q Offline
    qtprogrammer123
    wrote on last edited by
    #1

    Hi,
    I have one big class for reading / writing settings from / to device, it is backend for qml too.
    It conteins Q_PROPERTYS, fields, slots, methods, signals etc. for settings group - like uart, server settings ... n.
    Class still growing and won't stop soon. Spliting it to small backend class for each group is good idea? App use tcp / serial communication in separate thread.

    Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

    Pl45m4P 1 Reply Last reply
    0
    • qtprogrammer123Q qtprogrammer123

      Hi,
      I have one big class for reading / writing settings from / to device, it is backend for qml too.
      It conteins Q_PROPERTYS, fields, slots, methods, signals etc. for settings group - like uart, server settings ... n.
      Class still growing and won't stop soon. Spliting it to small backend class for each group is good idea? App use tcp / serial communication in separate thread.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @qtprogrammer123

      What is "big"? How many LoC do you have?

      It's always possible to outsource some stuff, but the question is, does it make sense? Does it increase the readability?


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • qtprogrammer123Q Offline
        qtprogrammer123Q Offline
        qtprogrammer123
        wrote on last edited by
        #3

        <400 in .h
        <2000 in .cpp

        Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

        Pl45m4P 1 Reply Last reply
        0
        • qtprogrammer123Q qtprogrammer123

          <400 in .h
          <2000 in .cpp

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @qtprogrammer123

          2000 lines in code file is not that much, if you have a good structure.


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • qtprogrammer123Q Offline
            qtprogrammer123Q Offline
            qtprogrammer123
            wrote on last edited by
            #5

            Ok thx, soo i will stay with this structure, ofc app files still growing with new functionalities - device controled by application firmware is also develop

            Mam moc jak Harry Potter, w zębach mogę przenieść hotel.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved