instruction:
Generate the answer for a given question. The question requires common knowledge of English. Make sure that the answer is in detail, long, consistent with the context, and requires general knowledge of English. To be less repetitive, please vary your language for each question. Give a proper explanation to answer, and if necessary, provide the definition of various terms. And conclude your answer if it's long. If you have used other resources (e.g., Merriam Webster's.) to answer the question, include citations in your answer. You don't need to paraphrase the context of your resources, but make sure that your answer is consistent and complete.
question:
Once when I was having a hard time a guy said to me, 'I'm sorry you're having a hard time, I'll pray for you,' in a way that made it clear that he was glad I was having a hard time because it gave him the opportunity to pray for me and feel good about himself. I am interested in this phenomenon but also the much more general (probably universal) phenomenon of human beings finding justification for things they want to do, often by lying to themselves about the utility of the behavior to other people. The best single word I can think of for this is contrived, but it is not close to precise. Similarly, dissembling, insincere, and so on don't really cut it. I also looked at this list of cognitive biases but was unable to find one that expressed this idea. Is there a single word for this? If not, a short phrase?.
answer:
I am not sure if you are stuck to the notion of altruism, but in the context of making a show of being nice to others to make themselves feel good, you could use sanctimonious. Sanctimonious is a twist on the words sanctity and sacred, which mean holy or religious. A sanctimonious person might think he's holy, but their attitude comes across more like 'holier-than-thou.' Though sanctimonious people might try to act like saints, their actions are far from pure or holy, which just makes them sound like hypocrites. Vocabulary.com

question:
You won't catch the train if you don't leave in time You won't catch the train if you won't leave in time I'm pretty sure the correct version is 'You won't catch the train if you don't leave in time', but I'm trying to explain it to someone and I don't know how to explain it. I also don't know how to google it. Can you please help me with a simple explanation or a link that explains it?.
answer:
As implied in the comments, the specific meaning of the two are slightly different (albeit both grammatically correct). It helps to break down the contractions. You will not catch the train if you do not leave on time This phrase is neutral in its blame: not catching the train will happen if you, for whatever reason, do not leave on time. You will not catch the train if you will not leave on time This places blame more directly on addressee: 'will not' implies that the addressee plays a causal role in themselves being late for the train, as if they refuse to leave at the correct time.

question:
Often when making websites, I will create an HTML form object that I will use in two places: once on a page that allows a user to add a new object, and once on a page that allows a user to edit existing objects. What is a word that describes such a form? It isn't so much a management form, since managing implies that the object is already created. It isn't a creation form, since that implies we are only making new ones. More generally, it's common to have a workflow capable of adding new data and editing existing data. Is there a common English word or phrase to describe such workflows clearly?.
answer:
In webdev, this is called an upsert form-- a portmanteau of insert and update.