The situation stands as follow: I am the only developer in this company and the degree of my boss has nothing to do with software development, consequently he has high/unrealistic expectations. He dreams about having the results of the competitors at no time or budget.
One of the things that frustrates me every day is that he keeps comparing me (a single developer) with other companies (5-20+ developers), making statements such as follows: "X company did the same job in 5 days and it took you 20” (It is also important to note that I work part-time which apparently he never thinks about it, 20 days is not 20x8 hours, it is more about 20x4). In my opinion, the comparison makes no sense at all, and I often tell him so, but that does not stop him from repeating it the next time we discuss about it.
Another point is that in terms of budgets he always wants unrealistic results with the lowest budget as possible. For example: “I want the site to load as fast as the company of my competitors (the one that had 5-20 developers working on the same project) using 1/8 of the hardware they are using. This usually keeps me doing the impossible to optimize the code and the server, yet, I am not a magician, and this is another point that we keep discussing: He wants it to be super-fast, but he does not want to get the servers that we need to accomplish that. Also , he makes me feel that I am not doing the job when it is simply not possible.
Lastly, another issue that I have with him is that he does not know what he is talking about. One funny episode that we had stands as follows : “Make the database connection using just plain HTML” or “Do not use PHP , use CSS”. What can you reply to that? . Also an additional example : “E-commerce has been in the market for more than 10 years, you should be able to implement it in less than an hour” or “Responsive design is not something new, I want it to be working on all devices fully responsive really quick” or "It does not matter that our internet connection is slow,the site should be fast , look for example how fast google loads"
For me , it is always a joke to be working for him , he simply can´t manage me appropriately if he can´t even tell the difference between PHP and CSS. He simply can´t as I could not manage a construction worker.
How do you deal with this kind of managers? I try to explain him when he is wrong , but he is the boss , he usually feels that I am wrong or that I am not doing my best.