OK, I'm not a programmer and never will be but the phrase 'duck typing' is so off-the-wall that I just have to ask what the hell it means.
If it looks like a duck, walks like a duck, quacks like a duck, then for all purposes it's a duck.
In my understanding, duck typing doesn't require the explicit declaration of "is-a" relationships in a class system. If a type (or object, depending on the language) fulfills sufficient requirements, it can be considered as a sub-class or object of another type. Depending on the language, the requirements may be expressed by interfaces, prototypes, pattern matching or some other means.
I believe the minimum altitude for operating an aircraft is 500 feet
Nope. There are minimum altitudes over congested areas (with an exception for landing and take-off, of course). There's also a blanket provision about not operating at an altitude that would endanger people or property. The 500 feet you're thinking about is the minimum safe distance a pilot must maintain from people or structures. That distance can be lateral, so as long as the other endangerment clauses are not violated, you can fly a plane at any altitude.
No emergency alarm, maybe, but anyone who's done aviation high altitude training should be able to detect half a dozen symptoms of hypoxia that they might have. Whether you'll detect them in time to do anything about it is another matter.
Mine included: racing pulse, tunnel vision, blue fingernails, inability to do simple maths problems. Some people get aggressive, some euphoric, some break out in a sweat.
But I'm not a consumer. I'm a software developer, I need to be able to develop, run, test and automate an application that runs on 64-bit Windows, 32-bit Windows, 64-bit Linux, 32-bit Linux, MacOS X, and various embedded ARM and PPC-based SOC systems. Sure, I have a network of machines for this, but managing many of the OS flavours under virtualisation saves time and money.
I've been reading articles for years about failed IT streamlining projects, and they want to make me believe they're different?
Fine, offer to do it on fixed-price contracts instead of time and materials, and I may start to believe they're serious about fixing problems instead of their own balance sheets.
Yes, you can often tell the shitty sites from the URL, and you can avoid obvious phishing messages. But there are plenty of moderately reputable sites that have been compromised at one time or another. All it requires is one of these to have a drive-by download on it when you visit it, and you've got the lurgi.
Also, who hasn't accidentally clicked the wrong link at some time? Either by being a bit quick and missing, poor hit boxes on sites, or an RSS feed updating just as you click?
NoScript is a very valuable tool to prevent all the crap that goes along with the web nowadays, whilst allowing it to work in exceptional circumstances. It does need a certain level of sophistication to use effectively. In fact, I think I'll go and donate to its continuing development.
Legislate for results, not for the means. The law should (maybe it is, I haven't checked) be written to set minimum standards for lumens per watt. Then let manufacturers develop whatever technology they want to comply.
There were reports a while back of a more efficient incandescent bulb technology (sorry, no reference). That technology would not be allowed under a law that promoted LEDs or CFLs.
The court itself was in the Netherlands. How is that not an international court?!
The trial was held under Scottish law. That was part of the compromise that led to him being handed over in the first place. The physical location of the court, in this instance, is irrelevant.
- and was also released under Scottish law - which, by the way, Cameron cannot legally interfere with, as it is separate from the English legal system.
What on Earth are you talking about? Scotland is part of the UK. David Cameron is the UK Prime Minister. And you're telling me he has no grounds to interfere? I must seriously be missing something here.
You are missing something. Scotland has a separate legal system from England, Wales, and Northern Ireland. The continuance of the legal system was one of the conditions of the Act of Union in 1707. As the UK PM, David Cameron cannot directly interfere with decisions of the Scottish courts. He can't interfere by proposing Scottish laws either, since that power is devolved to the Scottish Parliament. Since this is criminal law, the new Supreme Court of the UK does not have jurisdiction either.
It was implemented from day 1. Version 1.0 of PDF didn't have any ability to launch programs. Then, around day 1000, Adobe decided to turn it into a "platform" instead of a document format, and introduced this sort of problem.
Microsoft Z has been found to contain feature X, which purports to do Y but used incorrectly could instead cause W! Linux has had feature X since 20VV, the 'Year of the Linux Desktop'.
You got that last bit wrong. It's "Linux has had feature X since 21VV, the 'Year of the Linux Desktop'."
Comments are good for many reasons: 1. Showing the next person what you were doing. 2. When you have to explain what you are doing, it helps you to discover possible errors in your code. Particularly logic errors. 3. It helps you if you have to come back and look at it in a few years so you will immediately have an explanation of what you were doing.
Of course for those of us who code perfectly the first time, they aren't really needed.:-)
I don't want to know what the code does, I can see that. I want to know why the code does what it does. Why was the algorithm chosen? Why isn't it simpler? Comments that just repeat the code in prose are only useful when they precis a large section of code.
So have you ever been in a small plane "under positive control" (instrument flight rules) and very limited visibility?
Yes, I have. In the left seat. Any pilot who doesn't have the situational awareness to know where they are and what their "plan B" for deteriorating conditions (including lost ATC comms) shouldn't be there.
Just suppose that foreign crackers penetrated the air traffic control system or the power grid and either caused massive casualties due to lack of air traffic control...
Just how do you suppose they could cause "massive casualties" due to the lack of air traffic control? Every one of those planes has a pilot in command, who is quite able to fly the plane and land it safely without air traffic control lifting a finger. If flying IFR, the PIC also has a lost comms procedure to follow in case contact with ATC is lost.
Get a grip and become informed before playing along with the fearmongers' ludicrous Hollywood movie plot scenarios. I suggest you start by reading "Risk - The Science and Politics of Fear" by Dan Gardner, ISBN 978-0-7535-1553-2.
I'm an ACM member an I do have Digital Library access. It's worth $200 a year to me to get access to years of research, including cutting-edge stuff, that may help me do my job better. It's also tax deductible as a professional subscription.
If it looks like a duck, walks like a duck, quacks like a duck, then for all purposes it's a duck.
In my understanding, duck typing doesn't require the explicit declaration of "is-a" relationships in a class system. If a type (or object, depending on the language) fulfills sufficient requirements, it can be considered as a sub-class or object of another type. Depending on the language, the requirements may be expressed by interfaces, prototypes, pattern matching or some other means.
Nope. There are minimum altitudes over congested areas (with an exception for landing and take-off, of course). There's also a blanket provision about not operating at an altitude that would endanger people or property. The 500 feet you're thinking about is the minimum safe distance a pilot must maintain from people or structures. That distance can be lateral, so as long as the other endangerment clauses are not violated, you can fly a plane at any altitude.
No emergency alarm, maybe, but anyone who's done aviation high altitude training should be able to detect half a dozen symptoms of hypoxia that they might have. Whether you'll detect them in time to do anything about it is another matter.
Mine included: racing pulse, tunnel vision, blue fingernails, inability to do simple maths problems. Some people get aggressive, some euphoric, some break out in a sweat.
But I'm not a consumer. I'm a software developer, I need to be able to develop, run, test and automate an application that runs on 64-bit Windows, 32-bit Windows, 64-bit Linux, 32-bit Linux, MacOS X, and various embedded ARM and PPC-based SOC systems. Sure, I have a network of machines for this, but managing many of the OS flavours under virtualisation saves time and money.
Neither is healthcare. It's a human right.
I've been reading articles for years about failed IT streamlining projects, and they want to make me believe they're different?
Fine, offer to do it on fixed-price contracts instead of time and materials, and I may start to believe they're serious about fixing problems instead of their own balance sheets.
Hey, you expect us to read the follow-up before replying with a flame?
This is slashdot, we don't even RTFA!
Just how did this get modded insightful?
Yes, you can often tell the shitty sites from the URL, and you can avoid obvious phishing messages. But there are plenty of moderately reputable sites that have been compromised at one time or another. All it requires is one of these to have a drive-by download on it when you visit it, and you've got the lurgi.
Also, who hasn't accidentally clicked the wrong link at some time? Either by being a bit quick and missing, poor hit boxes on sites, or an RSS feed updating just as you click?
NoScript is a very valuable tool to prevent all the crap that goes along with the web nowadays, whilst allowing it to work in exceptional circumstances. It does need a certain level of sophistication to use effectively. In fact, I think I'll go and donate to its continuing development.
Pushing LEDs is the wrong thing to do too.
Legislate for results, not for the means. The law should (maybe it is, I haven't checked) be written to set minimum standards for lumens per watt. Then let manufacturers develop whatever technology they want to comply.
There were reports a while back of a more efficient incandescent bulb technology (sorry, no reference). That technology would not be allowed under a law that promoted LEDs or CFLs.
The court itself was in the Netherlands. How is that not an international court?!
The trial was held under Scottish law. That was part of the compromise that led to him being handed over in the first place. The physical location of the court, in this instance, is irrelevant.
- and was also released under Scottish law - which, by the way, Cameron cannot legally interfere with, as it is separate from the English legal system.
What on Earth are you talking about? Scotland is part of the UK. David Cameron is the UK Prime Minister. And you're telling me he has no grounds to interfere? I must seriously be missing something here.
You are missing something. Scotland has a separate legal system from England, Wales, and Northern Ireland. The continuance of the legal system was one of the conditions of the Act of Union in 1707. As the UK PM, David Cameron cannot directly interfere with decisions of the Scottish courts. He can't interfere by proposing Scottish laws either, since that power is devolved to the Scottish Parliament. Since this is criminal law, the new Supreme Court of the UK does not have jurisdiction either.
It was implemented from day 1. Version 1.0 of PDF didn't have any ability to launch programs. Then, around day 1000, Adobe decided to turn it into a "platform" instead of a document format, and introduced this sort of problem.
Microsoft Z has been found to contain feature X, which purports to do Y but used incorrectly could instead cause W! Linux has had feature X since 20VV, the 'Year of the Linux Desktop'.
You got that last bit wrong. It's "Linux has had feature X since 21VV, the 'Year of the Linux Desktop'."
[Immediately, an E.O.U.S. attacks him]
Surely the last line should be:
"You've got MAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIILL!"
Especially because the terrorist in question remained in his seat the whole time
[Citation needed]
The reportage I saw (including the Guardian here: http://www.guardian.co.uk/world/2009/dec/26/flight-253-terrorism-al-qaida ) indicated he went to the toilet for 20 minutes.
Comments are good for many reasons:
1. Showing the next person what you were doing.
2. When you have to explain what you are doing, it helps you to discover possible errors in your code. Particularly logic errors.
3. It helps you if you have to come back and look at it in a few years so you will immediately have an explanation of what you were doing.
Of course for those of us who code perfectly the first time, they aren't really needed. :-)
I don't want to know what the code does, I can see that. I want to know why the code does what it does. Why was the algorithm chosen? Why isn't it simpler? Comments that just repeat the code in prose are only useful when they precis a large section of code.
So you can turn yourself up to 11?
Last time I looked, the aerial on my car was on the outside.
So, I guess I'm saying where should I move to?
Canada?
Don't forget Adam Sandler movies.
Damn you, I was trying to.
Look at the duty cycle of your lawnmower and the car.
The lawnmower is used maybe 1 hour a week for two-thirds of the year, only in dry weather, and is kept under cover whilst not being used.
The car was probably used for 1-2 hours nearly every day, in all weather, and probably left on the street in all weather when not being used.
Given the same treatment, I wouldn't be surprised if the car lasted as long with similar maintenance (maybe a few replaced hoses more).
Yes, I have. In the left seat. Any pilot who doesn't have the situational awareness to know where they are and what their "plan B" for deteriorating conditions (including lost ATC comms) shouldn't be there.
Just how do you suppose they could cause "massive casualties" due to the lack of air traffic control? Every one of those planes has a pilot in command, who is quite able to fly the plane and land it safely without air traffic control lifting a finger. If flying IFR, the PIC also has a lost comms procedure to follow in case contact with ATC is lost.
Get a grip and become informed before playing along with the fearmongers' ludicrous Hollywood movie plot scenarios.
I suggest you start by reading "Risk - The Science and Politics of Fear" by Dan Gardner, ISBN 978-0-7535-1553-2.
So, does it work on MacOS X PPC yet? No, it doesn't, it's either 2.4.0 or wait for NeoOffice to put out a 3.1 patch.
I'm an ACM member an I do have Digital Library access. It's worth $200 a year to me to get access to years of research, including cutting-edge stuff, that may help me do my job better. It's also tax deductible as a professional subscription.
Where's the "+1 Hopefully" moderation when I want it?