Split up util.cc #43

Closed
opened 2024-03-14 23:13:15 +00:00 by rbt · 5 comments
Owner

Every util should be in its own file.

cf https://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to

Make a util directory and keep different utilities in different files. A single util file will always grow until it is too big and yet too hard to split apart. Using a single util file is unhygienic.

Every util should be in its own file. cf https://programmingisterrible.com/post/139222674273/write-code-that-is-easy-to-delete-not-easy-to > Make a util directory and keep different utilities in different files. A single util file will always grow until it is too big and yet too hard to split apart. Using a single util file is unhygienic.
Owner

The grouping by area in upstream Nix is relatively reasonable. We didn't port the change directly because it was unreviewable, but I did do some parts of it.

The grouping by area in upstream Nix is relatively reasonable. We didn't port the change directly because it was unreviewable, but I did do some parts of it.
jade added the
devx
label 2024-03-15 20:29:36 +00:00
Owner

Action items to help: look at the commit upstream that splits util.hh, then grab one of the newly split files and go pull those items out of util.hh and util.cc into separate files. Do this one file per commit.

Action items to help: look at the commit upstream that splits util.hh, then grab one of the newly split files and go pull those items out of util.hh and util.cc into separate files. Do this one file per commit.
jade added the
E/easy
E/help wanted
labels 2024-05-08 08:10:38 +00:00
I created https://gerrit.lix.systems/c/lix/+/1225/1 for this
Owner

Thanks! I will review it and (contrary to normal practice) merge it myself, since I need to synchronize the push with a lix-nixos-module update and nix-eval-jobs update.

Thanks! I will review it and (contrary to normal practice) merge it myself, since I need to synchronize the push with a lix-nixos-module update and nix-eval-jobs update.
Owner

Merged

Merged
jade closed this issue 2024-05-30 03:00:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#43
No description provided.