Nuschler22 You're probably talking about the Ragnarok or the Cerberus. Refine your building techniques. These are the top enemies in the game. Otherwise, as gnawry said, shields tend to do well. Try to hide your shields behind armor and make sure there are supplies of power cells not too far so they can be recharged faster.
Quick note, "strafing around it" hardly helps. It's extremely difficult to build a ship that can outpace another ship's ability to turn by flying around it. It's quite easy to get large ships to turn quickly and quite hard to build enough thrust in one direction to flank enemies 1 on 1.
Fun fact, with enough crew and a power generator next to a shield generator, it's actually possible to permanently deflect incoming fire from one ion beam.