If at any point in time, you decide that the company is not a good fit for you, you can end the interview by saying: "Thank you for the opportunity, I don't think I'm a good fit for this position"
No need for any further explanation, no need for excuses, just simply pack your stuff calmly and leave.
Other unrelated career advice (after 15+ years of experience):
1. Don't participate in any abusive/toxic behavior (even if all employees are doing it)
2. Document abusive behavior (emails, texts, etc) with screenshots whenever possible (especially if it involves you)
3. Try to quit professionally whenever possible (provide no feedback or very little ad give a notice), in cases where you _know_ you absolutely can't mentally/physically take it anymore, then leave immediately (i.e NEVER put your health in danger, all the legalities, logistics, etc can be dealt with later; even in extreme situations)
4. Never overwork yourself, your compensation has nothing to do with your effort.
5. Don't constantly criticize the code base, especially if you are new, you don't know the history yet and many people have emotional attachment to their code.
6. If you want to play the office politics (for whatever reason, e.g raises, extra vacation time, etc), find out who are the _bigger_ decision makers and make sure they are aware of YOUR contributions. Don't burn the midnight oil, thinking they will care, that's not how it works; they need to constantly hear your name and ideas.
7. Office romance is NOT worth it _most_ of the time; however if you are going to take this route, make arrangements to be able to leave the company if necessary.
8. Don't talk behind other people's backs, don't partake in excessive drinking or become _too_ attached/close to your coworkers (especially with their family lives). Always maintain a healthy boundary, even if you genuinely think some of your coworkers could become your life-long friends.
10. Your workmates are not your friends. Your friends are your friends.
and
11. The way a company shows it appreciates you is mainly, not only, through money. (Related to 10) Having fun "team building" activities in otherwise non working time is not them showing appreciation.
No need for any further explanation, no need for excuses, just simply pack your stuff calmly and leave.
Other unrelated career advice (after 15+ years of experience):
1. Don't participate in any abusive/toxic behavior (even if all employees are doing it)
2. Document abusive behavior (emails, texts, etc) with screenshots whenever possible (especially if it involves you)
3. Try to quit professionally whenever possible (provide no feedback or very little ad give a notice), in cases where you _know_ you absolutely can't mentally/physically take it anymore, then leave immediately (i.e NEVER put your health in danger, all the legalities, logistics, etc can be dealt with later; even in extreme situations)
4. Never overwork yourself, your compensation has nothing to do with your effort.
5. Don't constantly criticize the code base, especially if you are new, you don't know the history yet and many people have emotional attachment to their code.
6. If you want to play the office politics (for whatever reason, e.g raises, extra vacation time, etc), find out who are the _bigger_ decision makers and make sure they are aware of YOUR contributions. Don't burn the midnight oil, thinking they will care, that's not how it works; they need to constantly hear your name and ideas.
7. Office romance is NOT worth it _most_ of the time; however if you are going to take this route, make arrangements to be able to leave the company if necessary.
8. Don't talk behind other people's backs, don't partake in excessive drinking or become _too_ attached/close to your coworkers (especially with their family lives). Always maintain a healthy boundary, even if you genuinely think some of your coworkers could become your life-long friends.
9. Use spaces instead of tabs.