@Caesar:
So deck guns firing surface targets, yay or nay?
Yea if the surface targets are ships, nay if they’re land targets. WWII submarines did indeed carry deck guns, but their primary purpose was to give submarines a way to damage and/or sink enemy ships without wasting an expensive torpedo. (A German U-boat could carry 220 deck gun rounds, as opposed to just 14 torpedoes.) A typical situation might be a case where an enemy ship would be crippled by a torpedo, then finished off with surface gunfire rather than with a second torpedo if it appeared to be sinking too slowly (or not sinking at all). A WWII submarine could, in principle, shoot at a surface target on land, but there are several reasons why this would rarely have been done.
First, there’s the problem of range. A U-boat’s deck gun had a maximum range of about 12 km, but probably had a shorter range in terms of effective accurately-aimed fire. The closer a U-boat could get to a shoreline, the more accurate its gunnery would have been, but the more vulnerable the sub would be because subs don’t like shallow water (which restricts or even cancels out completely its ability to dive, an ability which is vitally important to a sub).
Second, there’s the question of the targets themselves. By nature, they would be coastal targets (because sub deck guns can only reach inland for a short distance) and they would be fixed installations (because sub deck guns don’t have aiming mechanisms that are well suited to engaging moving targets on land, especially small ones). In terms of targets with military value, this pretty much limits the choice to: a) fortifications such as bunkers; b) military bases, such as port facilities; and c) factories and similar industrial targets. Attacking a) and b) with a sub would have been hazardous business. As far as a) goes, there’s an old naval rule of thumb which says that warships should try to avoid getting into an artillery duel with shore fortresses because the shore fortresses, being fixed installations, can potententially have bigger guns and more ammunition than warships. As far as b) goes, important facilities of this type in WWII might be protected by shore batteries and/or naval forces. This would be hazardous for subs, because subs aren’t well suited to surface fights: they’re slow and not well armed compared with surface-combat ships. As far as c) goes, this is actually more credible than a) or b) because factories would not have been as well defended as, say, naval bases. In A&A terms, an IC on a shoreline might in principle be a submarine target…but there are a couple of potential objections too. Just because an IC is in a territory with a shoreline doesn’t imply that the IC is built close enough to the seashore to be reachable by a U-boat’s guns. Also, one has to wonder how much damage a U-boat’s deck gun would do to a factory, given its caliber. Damage yes…but enough damage to downgrade or destroy an A&A IC? That’s debatable.