DeGraciaMathieu

13 mods across 1 repository, 4 stars between them.

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

Avoid writing complex conditional expressions with multiple combined conditions. Encapsulate the logic into clearly named methods or objects to express intent rather than implementation details.

4 11mo ago A 295 tokens

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

Comments should provide context or clarifications that the code alone cannot convey. They are not a substitute for clear code, but a complement to explain why something is done or what external constraints apply.

4 11mo ago A 399 tokens

demeter_law

06

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

A class should only interact with its direct dependencies. It must not reach through objects to access their internals or depend on transitive dependencies.

4 11mo ago A 321 tokens

DeGraciaMathieu/cursor-mdc-rules

Cursor rule

A method should limit the number of arguments it accepts. If a method has more than three arguments, consider grouping them into a single parameter object to reduce complexity and improve clarity.

4 11mo ago A 381 tokens