Skip to content

Monolithic file. over 6k lines of code #136

Description

@Ben-PH

I have an inkling to write some FreeCAD addons, and happened to come across this one to start. I notice that the entire implementation is in one 6281 line file.

I didn't want to start making PRs willy-nilly without first checking in with what I have in mind.

  1. Put class definitions into dedicated file(s)
  2. put setup variables at top of pieMenuStart in something like bootstrap.py
  3. move function definitions to dedicated file(s)
  • where relevant, move function defs into class methods
  1. investigate code groups and organise into helpers
  2. get rid of globals where possible (starting with the easy ones)
    settingsTabLayout.insertWidget(0, globalSettingsGroup)
    # settingsTabLayout.insertWidget(1, spinBoxGroup)
    settingsTabLayout.insertWidget(1, experimentalGroup)
    settingsTabLayout.insertWidget(2, exportGroup)
    settingsTabLayout.addStretch(1)
    settingsTabLayout.insertSpacing(3, 42)
    settingsTabLayout.insertLayout(4, layoutGlobalShortcut)

would become something like

    initTabLayout(tabLayoutSpec)

Let me know if you have any requestes about how you want the PRs broight in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions