For someone who got conned into working another week and support via email, you sure are cocky. They hired you on to do a role, not because you are smarter. Why would an executive do the programming himself if he knows nothing about it? The whole point is to surround yourself with people that are experts in their field.
If you were smarter, you wouldn't have caved. It's easy to criticize people for making stupid decisions and yes, considering I work for a global worldwide company - I meet my same share of idiotic higher ups - but not all of them are the complete idiots you mention.
Suck up your pride and move on.
Not being cocky at all and I don't think every person higher up is an idiot. Most are very intelligent or they wouldn't have gotten there even if they had connections.
Here's an example of something I saw from one of my clients:
-CMO convinced board to give him $3 million to redesign the site
-CMO promised double or triple the traffic after
-Site is redesigned and launched.
-The first day, none of the engineers or online marketing directors could figure out why their traffic completely dropped. My boss, who was trying to get them as clients at that time figured out immediately that they blocked Google from crawling their site with robots.txt file. This is a mistake that small businesses can make - not multinational major company.
-Even after fixing this issue, they completely screwed up their site architecture and technicalities and traffic dropped by 50%
-I was brought on to figure out why their traffic still dropped
-Figured out that their staging site was actually public, their search engine optimization was non-existent, their URL redirects were done by an intern and supervised by a senior manager.
-In the end, we were able to regain their traffic but their CMO got demoted, one VP got fired, 3 managers laid off
This is a repeated pattern that I see with major companies. Instead of hiring the person with a many years of experience, they should hire people who are great at one thing and good at other things. Valve, the makers of Steam, does hiring this way and they have been extremely successful.