I just had a bitter insect battle with the mother of all
Tipulidae around my lightbulb and the corner by my window. Swiping with a book proved ineffective as it seemed to just carry on flying from the most severe of strikes. In the end, the victor was a pair of scissors. Let that be a lesson to any other cretinous flyers that think it's funny to sneak up on busy coders.