Some interesting examples on how the writing and the erasing are almost one.
Does One Have to Use a Utensil (כלי) or Just Using One's Hands Is Enough for the Melacha;
How much time is needed before or after shabbos to say it is "שכר שבת בהבלעה" (shabbos earnings included with weekday earnings).