Some points:
- The drone tracking links are entirely unnecessary, especially for small drones. It’s a module that’s sometimes useful for heavy and sentry drones, and fighters.
- Hull repairers are something you use when you need to repair hull damage, but don’t want to pay station fees. During combat, that module is completely useless - just look at how little it repairs per second compared to armor repairers/shield boosters.
- The tracking enhancer is a questionable choice for this ship.
- No rigs, though that can be excused for now.
- No resistance mods to bolster your tank. Choose shield or armor, and tank that, but devote more than a single module to it.
From a practical perspective, yes, but from a learning perspective, no. You were exposed to a valuable experience early on, while you still had very little to lose (in a few months, this amount of money won’t even register to you).
If you saw a play ship on d-scan suddenly appear, then yes, you should have disengaged, and tried to warp away, or at least been prepared to do so by aligning out.
He made all the proper moves, although catching you at the end of your fight, and not while it was in progress, was probably luck. The rat could have switched fire to him as a bigger threat, and with both of you shooting him, he might have lost.
Players can appear at any time, so you have to be ready for that.
For now, you probably won’t win a fight with a pirate/hunter, so your focus should be on avoidance. Show info on players who come into local. Sometimes, it will be very easy to tell that someone is a pirate (low security rating, a give-away corporation name, etc.), and sometimes you’ll have to make a judgement call. The second you’re not alone in local, you should be aligned out to some kind of celestial. Station, preferably, but if there isn’t one, a belt or a moon in a cluster will obfuscate your escape (the hunter won’t be able to tell which celestial you warped to in a cluster). At that point, you can start warping around, and making safe spots (or just leave the system if you can warp fast and can bypass any potential camps at gates).