matthewmueller / matthewmueller/dots
consider strict separation of code and data
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 538
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
For my own brew stuff, I generate data files of my installed stuff via this shell function:
save_brew () {
brew leaves > ~/projects/dotfiles/brew_leaves.txt
brew cask list > ~/projects/dotfiles/brew_cask_list.txt
}
So I can just install stuff normally via brew and if I decide I want to keep it I can save_brew. I can install with:
brewify() {
cat "${DOTFILES}/brew_leaves.txt" | xargs brew install
}
I think you'll find maintaining this easier if you move toward keeping code/logic separated from pure data of installed inventory.
Random side note that I like your notion of using golang for a new version of this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the repository's current bootstrap entry points and how it handles installed Homebrew inventory; the issue names the save_brew and brewify shell functions as the proposed reference. Clarify the intended code/data boundary and whether the possible Go rewrite is in scope. Done should mean the inventory is maintained as data separately from the installation logic.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli, tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100