Change variable name $self
to more descriptive names depending on where it gets used #21
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nu/CharmBoard#21
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
$self
to have a more descriptive name depending on where its being used, like how I'm already using$set
/$_set
in DBIx::Class ResultSet-related modules. I'm thinking the following:$app
inCharmBoard.pm
$c
inCharmBoard::Controller
namespace$m
inCharmBoard::Model
namespaceTemplates will also need to be changed, I think to
$c
.This additionally should make it more clear that
$self
is 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)