Josie Rubio, an editor and writer who chronicled her life with cancer in a long-running blog and whose Op-Ed essay in The New York Times in August about dating while terminally ill drew a wide readership, died on Tuesday at a hospice facility in Brooklyn. She was 42 .

Her friend Joselin Linder said the cause was complications of the cancer. It was first diagnosed as Hodgkin’s lymphoma in 2013 ; she later developed neuroendocrine tumors.

Ms. Rubio wrote about grappling with cancer in the blog A Pain in the Neck, often finding humor in her struggle. In her last entry, “Hospice,” published on Nov. 16, she began by saying that “dying, as it turns out, is incredibly boring.”

That wry sensibility infused her Times Op-Ed essay, titled “Dating While Dying,” part of the Opinion section’s continuing Disability series, which explores the lives of people living with disabilities. In her article she detailed her breakup with her boyfriend of 12 years and her re-entry into the dating pool, sometimes writing in disarming fashion.