Comment Re:not the first time (Score 1) 136
Who's outlawing any words? I think we agree - I'm suggesting we need a new word, because the words we have (wave, particle) are perfectly good but don't describe the thing we want (nature of light)...
Who's outlawing any words? I think we agree - I'm suggesting we need a new word, because the words we have (wave, particle) are perfectly good but don't describe the thing we want (nature of light)...
The wave-particle duality is not a quantum superposition like you're describing (which would break down under measurement), although the caricatured manner in which we teach it might lead you believe that. It's a little more simple than that.
In our world, we are used to two kinds of things: particles, and waves. We are used to this distinction, and describe most things in one of these manners. Sound is a wave, a billiard ball is a particle, vibrations are waves, bricks are particles. If something is a particle, it has certain properties, like position, size, and shape. If it is a wave, it has certain other properties like wavelength, frequency, and amplitude. In addition, there are some common properties like velocity and direction.
When it came to studying light (and many other quantum stuffs), we can't directly see what it's made of. But we can take measurements of each "puff" of light, and infer its properties that way. When we do this, we notice that puffs of light have some properties which are particle-like, and some which are wave-like. So the term "particle-wave duality" became popular to describe this new material that was behaving simultaneously like a particle and a wave. It doesn't make sense to ask which one it is - a "puff" of light is neither a particle, nor a wave, but a different kind of stuff which has some properties of each.
writing the article is a DIRECT response to being asked to provide estimates for ACTUAL WORK
... writing the article was most certainly done in lieu of that actual work...
If you're storing the length, then "iterate over array and perform this operation" (for example, for a search or a "double every element" transformation) can use the known length to set up a for loop, rather than having to check "am I at the last element of the array" for every element... This could be a good reason to store the length even if you don't want the cost of bounds-checking.
(or what's the length for?)
Bounds checking is one option, but it could also be used for iteration.
Can you spin up a minimal VM and reproduce it? Then it could definitely use a bug report...
If you don't, I might try it in a few days when I get some breathing room.
I agree with you on the idea and behaviour of the control classes, but have generally found it handy to have some guarantees of well-formedness in the data objects.
Otherwise, every control object which uses the data object needs to verify every detail about the data object before it uses it - which leads to the duplication of validation code issue you were concerned about in the first place...
So if you are not doing your field validation at creation time, how do you enforce the "interface contract"?
Something somewhere has to verify that the address is a valid address, and the port is a valid port (why would you accept a socket request for port 67890?) - why allow a non-conformant data object to exist?
What domains have such wide-ranging field values that validated data is not a reasonable idea?
Data classes like this?
class TCPSocketAddress
{
private long ipaddress;
private int port;
string getAddress()
{
return long2ip(ipaddress);
}
void setAddress(string addr)
{
if (addr.matches("/^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3)$/")) ipaddress = ip2long(addr);
else throw InvalidIPAddressException;
}
int getPort()
{
return port;
}
void setPort(string addr)
{
if (newport > 0 && newport < 65536) port = newport;
else throw InvalidTCPPortException;
}
}
On the one hand I was confused how systemD was involved in the launch.
Then you haven't been paying attention - all the systemd supporters are adamant that it is descended from launchd!
That's partly because T-Mobile is basically a European phone company - they're the international arm of Deutsche Telekom...
LEGO is contraception in its own right - just play with LEGO and you can guarantee that you're never having any kids.
I assume he means that his GPG key is used to sign packages which get loaded to the Debian repository, which you could potentially use to upload a package with a root-executed file in it...
Eureka! -- Archimedes