Skip to content

Prefix all functions with 'do' for clarity - #6

Open
Maqi-x wants to merge 1 commit into
JustcordProjects:mainfrom
Maqi-x:main
Open

Prefix all functions with 'do' for clarity#6
Maqi-x wants to merge 1 commit into
JustcordProjects:mainfrom
Maqi-x:main

Conversation

@Maqi-x

@Maqi-x Maqi-x commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary of Changes

This PR refactors our entire codebase to prefix every single function and method with do, establishing a unified, action-oriented naming standard across all modules.

Why?

  • Standardized Function Naming: Renamed all utility, helper, and core logic functions to strictly use the do prefix (e.g., sleep -> doSleep, init -> doInit).
  • Refactored Conditionals: Updated all boolean checks within control flows to explicitly trigger do predicate calls.
    Why This Makes the Codebase Significantly More Readable
  • Unambiguous Action Signaling: The do prefix instantly flags a identifier as an executable action, completely eliminating any mental overhead required to distinguish variables from function calls.
  • Scan-Friendly Uniformity: Standardizing the start of every function call removes visual noise from varied verbs, allowing developers to scan method calls with zero cognitive friction.
  • Aggressive Autocomplete Grouping: Grouping all available class methods and API endpoints together under do in IDE autocomplete menus provides an immediate, single-point catalog of available behaviors.
  • Strict Imperative Grammar: Code execution becomes an explicit, step-by-step series of commands, transforming passive logic into an unmistakable, self-documenting checklist.

@Maqi-x
Maqi-x requested a review from gorciu-official August 20, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant