I'm sorry, I didn't mean to imply that nukes do nothing in space. They, in fact, release the same amount of energy as you stated. However, instead of creating a shockwave and fireball, nukes in space shower everything in radiation directly. This changes the scenario in several ways.
While the radiation does travel further in the vacuum of space, it also follows the inverse square rule. In other words, if you double your distance from the detonation, you cut your exposure by a factor of 4. This means that the energy density drops off VERY rapidly, so you need to get the nuke almost impossibly close while also staying far enough away that you're not damaged. It's fantastic to blow up your enemy but not if your own weapon strips off 10% of your plated hull.
Also, the capcity of a material like iron to absorb energy is MUCH greater than air. While you'll certainly vaporize a layer off the surface of the ship, it's not as much as you might think. For example, a 20 mega-ton detonation at 1 kilometer away will vaporize a layer of iron off the hull of a ship only 13 centi-meters thick under ideal circumstances. Most large ships probably have far, far thicker shielding.
Now, the vaporization of the iron may or may not be enough to cause a shockwave through the rest of the ship. It depends on the strength of the weapon, the thickness of the shielding and the sturdiness of the ship.
In other words, nukes are REALLY hard to use in space.
While the radiation does travel further in the vacuum of space, it also follows the inverse square rule. In other words, if you double your distance from the detonation, you cut your exposure by a factor of 4. This means that the energy density drops off VERY rapidly, so you need to get the nuke almost impossibly close while also staying far enough away that you're not damaged. It's fantastic to blow up your enemy but not if your own weapon strips off 10% of your plated hull.
Also, the capcity of a material like iron to absorb energy is MUCH greater than air. While you'll certainly vaporize a layer off the surface of the ship, it's not as much as you might think. For example, a 20 mega-ton detonation at 1 kilometer away will vaporize a layer of iron off the hull of a ship only 13 centi-meters thick under ideal circumstances. Most large ships probably have far, far thicker shielding.
Now, the vaporization of the iron may or may not be enough to cause a shockwave through the rest of the ship. It depends on the strength of the weapon, the thickness of the shielding and the sturdiness of the ship.
In other words, nukes are REALLY hard to use in space.