Tag Info

Hot answers tagged

4

If the area where the nodes can be is small (relatively, the size of half the US is small enough) and away from the poles then you can reasonably approach the problem using just the longitude and latitude as X/Y coordinates. Near the poles you can treat them as polar coordinates with the 90°-latitude as the distance from center and the longitude as the angle ...


3

In the mainframe world (which of course pre-dates the Apple and IBM PC world by decades), there were several on-line editors that were capable of editing source code in several languages - such as COBOL, Assembler and PL/1 as well as "job control language" (JCL). Some of these editors had features for allowing the display of compiler output on a 3270 ...


1

The solution you describe in your question is usually called the "bridge pattern". Depending on the language in use, there may be a way of implementing it without manually managing all the delegating methods. For example, in Ruby one can simply define the "method_missing" method to perform a dynamic lookup on the target object and dispatch to a method with ...



Only top voted, non community-wiki answers of a minimum length are eligible