Currently I am running Magento 2 on my local environment and running into problems with development of a custom test module.
I am trying to use dependency injection in one of my controller actions but the interpreter class that seems to be auto-generated in var/generation folder seems to have an older definition of the __construct method of my action class, leading to run time errors. I realize I need to clear the var/generation folder and get on with it. However, is there a way for me to setup my local development environment in such a way that I don't have to do this step every time there is a change to the action class?
Is there any documentation on best practices for local development? Information on the web can get confusing in some cases - like for instance I happened to read somewhere that using static deploy during development isn't best practice, but then I had problems in using a git branch that had setup a new theme. The system wouldn't pick up the new theme however, after static deployment the theme override was working fine.
Is there a list of 5-6 steps that you need to do on the regular while developing locally on M2?