ZSLICEDOCS

Internals

Code quality plan

This page lists the parts of the code that are large, tangled, duplicated, badly named, or not tested. The list is in order of value: the first items help a reader most. A change in this plan does not change the behavior. The G-code stays the same byte for byte, and the app looks and acts the same.

Mark an item done when its commit is in master. Add an item when you find a problem that you do not fix at once.

1. The app core: src/app.zig

src/app.zig had 1840 lines with six concerns in one file: the state of the app, the toolpaths and the pick, the inspection of a path, the effect of each setting on the preview, the setting descriptions, and the licenses.

2. The GTK settings panel: linux/src/ui/settings-panel.c

3. The GTK preview: linux/src/ui/preview.c

4. The GTK window: linux/src/ui/window.c

890 lines: the status bar, the islands warning, the file dialogs, the send to a printer, the "all plates" send and export, and the layout.

5. The C API: src/c_api.zig

6. Tests

7. Consistency

8. Build hygiene

Later: files that other work changes now

These files change often. Change them only in small, safe steps.