Actually, I would say they were. Eye for and Eye isn't often seen nowadays, but I would suggest that in those days it was the only way to go. In all three cases, the Israelites have been attacked, often for generations.
In two of the three cases, the Israelites face extinction should they not resist.
In two of the three cases, if the Israelites fight back, but do not take the war to the enemy; they will be fighting an endless war.
If, however, in two of the three cases, they utterly vanquish their enemies, tribes and cities who have been attacking them for generations; well, it's over.
In the case of modern times, the enemy is decentralized, the people incohesive.
One only needed to defeat the army and the leader, see Hitler’s Germany.
The Isrealites however, were dealing with an enemy closer to that found in Iraq, veitnam, and Afghanistan. If anything, the tribes they fought were far, far, more fanatical.
The end meted out to their enemies, would have been the same end they would have received.
---------
In the third case, the Israelites are already slaves and 'toiling under the harrows of iron'. The Persians subjugate Babylon, and free them.
----------
Once again,
The Israelites are not More's Utopians, who see a plot of unused farmland and slit the throats of the slothful owners.
God does not say: that city is in the way of my Children’s sheep... "poof"
No, The Israelites are putting an end to generations long attacks, by stopping the source rather than treating the bloody symptoms. Something that any nation would do.
<selfEdit2>
Speak to the people of Israel, saying: If a woman conceives and bears a male child, she shall be ceremonially unclean seven days; as at the time of her menstruation, she shall be unclean.
Do remember, men have similar passages... albeit they do not directly relate to childbirth.
<selfedit>
On a somewhat random note:
Exodus 4:2-4 wrote:The Lord said to him, "What is that in your hand?"
[Moses] said "A rod" And [God] said, "Cast it on the ground"
So [Moses] cast it on the ground and it became a serpent; And Moses fled from it.
I've always found that rather funny, and also an insight into the imperfections of man.