Is it ok to run the following set of commands by default everytime I make a code level edit (layout edits, module creation, extension update)
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static:content:deploy -f
php bin/magento c:f
find var generated vendor pub/static pub/media app/etc -type f -exec chmod u+w {} + && find var generated vendor pub/static pub/media app/etc -type d -exec chmod u+w {} + && chmod u+x bin/magento
I believe that not all edits require, setup upgrade or di:compile. But, does running all above set of commands even if not required cause any issue.
EDIT: Should not use 777
chmod -R 777 generated/ var/ pub/