rhachet-roles-ehmpathy 1.13.9 → 1.13.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/logic/roles/mechanic/.briefs/patterns/code.prod.narrative/bad-practices/avoid.ifs.md +17 -0
- package/dist/logic/roles/mechanic/.briefs/patterns/flow.debug.diagnostics/bad-practices/forbid.trust_vscode.md +7 -0
- package/dist/logic/roles/mechanic/.skills/init.claude.permissions.sh +2 -2
- package/package.json +1 -1
package/dist/logic/roles/mechanic/.briefs/patterns/code.prod.narrative/bad-practices/avoid.ifs.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
extra ifs = extra code branches
|
|
2
|
+
|
|
3
|
+
avoid ifs maximally
|
|
4
|
+
|
|
5
|
+
in an ideal narrative,
|
|
6
|
+
- shapes flow through and fit nicely
|
|
7
|
+
- operations apply to every shape consistently
|
|
8
|
+
|
|
9
|
+
to minimize code paths and maximize simplicity
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
the only exception is early returns, since they shortcut logical branches and simply shorten the narrative
|
|
14
|
+
- e.g., in IFFEs
|
|
15
|
+
- e.g., in operations
|
|
16
|
+
|
|
17
|
+
avoid ifs that create logical branches we could have otherwise avoided
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "rhachet-roles-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "empathetic software construction roles and skills, via rhachet",
|
|
5
|
-
"version": "1.13.
|
|
5
|
+
"version": "1.13.10",
|
|
6
6
|
"repository": "ehmpathy/rhachet-roles-ehmpathy",
|
|
7
7
|
"homepage": "https://github.com/ehmpathy/rhachet-roles-ehmpathy",
|
|
8
8
|
"keywords": [
|