Dogfight
In modern air combat, there are many long range weapons that can be used before dogfighting. Homing missiles can be fired much further away from the target than machine guns, and will automatically try to follow the target. These types of weapons make dogfighting less common, but modern planes still have Gatling guns, which are more advanced kinds of machine guns. This is because dogfighting still happens sometimes.