> most supervisors try to discourage students from writing in this way because there is a delicate art to it that you are unlikely to be able to meet at that career stage.
And it seems to me they will continue to to unlikely to meet it if they don't get any practice at it. Which loops back to being another pedagogical problem.
Smalltalk has #reject: which does that. You could, of course, just wrap a not around the test in the closure, but sometimes reject with a well-named predicate is easier to read.
The EMP effect depends on there being atmosphere to generate electrical fields from the bomb gamma flux. Being close enough and line of sight from the atmosphere can be sufficient to generate the effect in the nearby atmosphere. 400km is apparently the optimum height for coverage but not strength. Too far and inverse-square ensures the flux isn't sufficient. So just detonating a bomb "in space" may not do anything depending on the direct path distance to the satellites in question (the bomb gamma flux etc. of course poses its own threat). Look it up, the physics are interesting.
And it seems to me they will continue to to unlikely to meet it if they don't get any practice at it. Which loops back to being another pedagogical problem.
reply