While developing the drupal modules we used to follow some of the below practices. Which always helps as while debugging, maintaining, and upgrading our code base.
I always wanted to know, How Drupal is working ? When someone hits the URL like example.com/user or example.com/node, What is happening inside Drupal ? What is the Workflow of Drupal ?
Drupal Setting custom Views Argument :
Node View URL was aliased path, so when I am passing that to Views as an argument , everything was working untill the User added the Node title like "My test node-title"(Note the hypen after node).
Becoz , untill that time, Views argument handler was working and automatically transform dashes into spaces(Example aliased title: my-test-node-title into my test node title).