What problem does it solve?
This Skill helps developers write simpler, more maintainable code by adopting the principles of data-oriented programming, immutability, and explicit state management, inspired by Rich Hickey's philosophy.
Core Features & Use Cases
- Embrace Immutability: Learn to use immutable data structures and understand why they simplify reasoning and prevent bugs.
- Data-Oriented Design: Prefer plain data (maps, vectors) over complex object hierarchies, composing generic functions instead.
- Explicit State Management: Understand how to manage state explicitly using tools like atoms, making state changes predictable.
- Use Case: When designing a new feature that involves managing user profiles and their associated settings, apply Hickey's principles to represent the user data as a map and use pure functions for updates, ensuring the system is easy to reason about and extend.
Quick Start
Use the hickey skill to refactor the provided object-oriented code into a data-oriented approach using maps and pure functions.