As Good as It Gets (1997)

Brace yourself for Melvin.

Plots

A single mother and waitress, a misanthropic author, and a gay artist form an unlikely friendship after the artist is assaulted in a robbery. - Kenneth Chisholm

New York City. Melvin Udall, a cranky, bigoted, obsessive-compulsive writer, finds his life turned upside down when neighboring gay artist Simon is hospitalized and his dog is entrusted to Melvin. In addition, Carol, the only waitress who will tolerate him, must leave work to care for her sick son, making it impossible for Melvin to eat breakfast. - Jon Reeves

Melvin Udall is an obsessive-compulsive writer of romantic fiction who's rude to everyone he meets, including his gay neighbor Simon, but when he has to look after Simon's dog, he begins to soften and, if still not completely over his problems, finds he can conduct a relationship with the only waitress at the local diner who'll serve him. - Jwelch5742

The trials and tribulations of a compulsive writer, Melvin Udall. After his homosexual neighbor is brutally beaten, he is entrusted to the care of the neighbor's dog, with a difficult relationship with a waitress to add on top of that. What develops is a weekend trip/triangle between these three individuals, and together they learn the true meaning of "the sunny side of life". - hiphats