Skip to content

Improve variable and function naming for readability#9

Draft
Copilot wants to merge 4 commits intomasterfrom
copilot/suggest-variable-function-names
Draft

Improve variable and function naming for readability#9
Copilot wants to merge 4 commits intomasterfrom
copilot/suggest-variable-function-names

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 3, 2025

Replaced abbreviated and non-descriptive variable/function names throughout the codebase to improve readability and maintainability.

Changes by Category

Exported Function (Breaking Change)

  • velocity_ou(): Converted parameters from camelCase to snake_case
    • driftVdrift_velocity
    • currentVcurrent_velocity
    • deltatime_step

Internal Functions & Variables

  • Common abbreviations expanded:

    • drv/drvsdriver/drivers
    • cfgconfig/disnbs_config
    • nm/nmsdimension_name/dimension_names
    • tmtimestamp/agent_timestamp
    • loclocation/agent_location
    • vfvector_field
    • scenscenario
    • imp_*impact_*
  • Compound names clarified:

    • mv_drvidsmovement_driver_ids
    • vf_drvidsvector_field_driver_ids
    • n_wknum_workers
    • nnrst_metanon_raster_metadata

Files Modified

velocity_ou.R, get_driver_cell_value.R, rmr_initiate.R, utils.R, build_cost_fn.R, driver_introspect_stars.R, run_disnbs.R, simulate_agent_disnbs.R

Example

# Before
velocity_ou(driftV, beta, currentV, delta, sigma)

# After  
velocity_ou(drift_velocity, beta, current_velocity, time_step, sigma)
Original prompt

Suggest more descriptive variable and function names


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 3, 2025 12:06
Co-authored-by: bcaneco <12933586+bcaneco@users.noreply.github.com>
Co-authored-by: bcaneco <12933586+bcaneco@users.noreply.github.com>
Co-authored-by: bcaneco <12933586+bcaneco@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve variable and function naming for better clarity Improve variable and function naming for readability Dec 3, 2025
Copilot AI requested a review from bcaneco December 3, 2025 12:16
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.

2 participants