Change variable name $self to more descriptive names depending on where it gets used #21
Labels
No labels
bug
code clarity
code organization
database
documentation
improvement
new feature
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nu/CharmBoard#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To prevent confusion like #14 and also just for general code clarity purposes, I'm thinking it makes sense to change
$selfto have a more descriptive name depending on where its being used, like how I'm already using$set/$_setin DBIx::Class ResultSet-related modules. I'm thinking the following:$appinCharmBoard.pm$cinCharmBoard::Controllernamespace$minCharmBoard::ModelnamespaceTemplates will also need to be changed, I think to
$c.This additionally should make it more clear that
$selfis not functionally the same throughout all namespaces (i.e. how in Model context it seems to be impossible to access session data through$self, and also to access wider app params, you need to go through the route$self->{app}, or$m->{app}once this change is put into effect)