If you are putting in long hours in the office, you need to make sure you are comfortable. Long gone are the days when you need to wear a claustrophobia-inducing suit and tie all day long. You definitely do not need to worry about slacks and a sport jacket. If you are going to spend all day long troubleshooting, coding, and building networks, you may as well be comfortable while you are doing it. If your boss respects you as an employee, he will definitely not have a problem with you being comfortable while you are at it. If you are your own boss, you better respect yourself enough to wear clothes that are conducive to a productive workday and a healthy body at the same time.
If you work from home, why bother strapping on shoes in the first place? Let your feet breath with some quality sandals. This will make you feel better not only all day, but for many years to come. Letting your feet breath is a very healthy practice.
If you must go to the office, be sure to invest in comfortable shoes. Most importantly, buy shoes that do not cramp your toes or feet in any way whatsoever. The last thing you want is to suffer from bone malformations. That is one of the most common mistakes women make in wearing high heeled shoes. Developing bunions when you are older is not a fun thing. Secondly, make sure to invest in shoes that have proper arch support; you want to prevent flat feet from occurring. Lastly, get some inserts that will protect your bones and joints. Most offices have concrete floors that are not easy on your joints at all. Even if you go into the office, make sure to wear shoes that will treat you right.
Just because you work for a living does not mean you need to suffer. Since you have the privilege of being educated and a professional, exercise your right to protect your own health and wear footwear that is not only attractive, but health-giving as well.