2.4 KiB
2.4 KiB
Project Learnings
Auto-maintained by the self-improve skill. Read at session start, updated at session end.
Patterns That Work
Mistakes to Avoid
Codebase Conventions
[2026-05-04] — File organization
- Observation: Most flashcard files are flat in
org/cpp/, but subdirectories exist (tricks/,dsa/) for topic grouping. AGENTS.md only documents the flat convention. - Action: When creating new cards, use flat
org/cpp/topic.orgfor STL/language features; subdirectories for broader categories (DSA, tricks). Propose updating AGENTS.md if this solidifies. - Confidence: medium
[2026-05-04] — Card format variance
- Observation:
org/cpp/dsa/udfs.orguses raw#+title:+ code blocks without ANKI properties.org/cpp/ufds.orgfollows the proper Anki card format. The proper format (with ANKI_NOTE_TYPE, Front/Back sections) is what gets exported. - Action: Always use the full Anki card format from AGENTS.md when creating flashcards. Raw code files in dsa/ may be scratch/reference, not export-ready cards.
- Confidence: medium
[2026-05-04] — Naming: UFDS not UDFS
- Observation:
org/cpp/dsa/udfs.orgis a typo — the data structure is "Union-Find Disjoint Set" = UFDS. The properly-formatted fileorg/cpp/ufds.orguses the correct name. - Action: Use "ufds" spelling. The dsa/udfs.org appears to be an earlier draft.
- Confidence: high
Environment & Config
[2026-05-04] — Git state
- Observation: Single branch
masterwith remoteorigin/master. No branching workflow — commits go directly to master. - Action: Commit directly to master. Push when work is complete.
- Confidence: high
Business Context
[2026-05-04] — Study focus
- Observation: Recent commits cover STL containers (deque, array, set, map, iterators) and DSA (UFDS). Inbox has LeetCode solutions (two sum, max consecutive ones) with notes to learn binary search and
usingkeyword. - Action: Current study trajectory is STL containers + competitive programming DSA. Prioritize cards for these topics.
- Confidence: high
Open Questions
[2026-05-04] — Duplicate UFDS files
- Question: Are both
org/cpp/ufds.org(402 lines, proper format) andorg/cpp/dsa/udfs.org(41 lines, raw code) needed? The former seems to supersede the latter. - Action: Ask user if
dsa/udfs.orgshould be removed or merged.