Not to pick on you, but clearly everyone has misunderstood the poster's question. If you wrote all that stuff in a class definition it still would not compile. It would just make for unreadable code and would likely just confuse people that try to make modifications later.
What would you want to see in an OSS class?
I like to see a constructor, a destructor (if applicable), and some methods that do something understandable. And some comments are nice, for instance stating what OSS license you're using, but try not to comment about fundamental questions regarding OSS. Remember, with OSS your source code's going to be open -- so try to make it readable, and not like a Usenet posting from Richard Stallman.
What should be included?
Depends on the programming language. If it's C, you probably want to include stdio.h. But with C++, probably iostream.h or some Qt header file. With Java I find myself using java.util.* and java.io.* a lot. But a lot of cool stuff is in the javax packages too. It's really up to what you're trying to do.
Basically, when designing a class for OSS you use the same principles as when writing proprietary code. I'm confused why you're even designing a class about it!!
That's how the economic theory goes in a free market. Do not confuse the intellectual monopoly industries with free markets.
You're both confused about how markets work. What you're talking about being a free market is actually the market for commodities. That is, products that can be produced identically by multiple vendors. But there's lots of products that aren't commodities, and their reason for being so isn't always that they're protected by intellectual property.
Cocacola is one example. Cans these days are going for over 50 cents each, despite the fact that Pepsi is usually cheaper and all colas cost less than 5 cents to produce. One can argue that Coke's formula is protected by "intellectual monopoly laws", as you put it, but it would be rediculous to state that anyone should be able to reproduce Cocacola and sell it as Cocacola. Trademarks make sense here.
There are lots of other examples where the prices don't match production costs. Here's a site with different pricing strategies. What you're arguing is that every product should use "economy pricing". But the real world doesn't work like that -- music uses more of an emotional pricing strategy, fancy cars use a premium pricing strategy, NetFlix appears to be using penetration pricing.
From this perspective, your argument is that the music industry is using an immoral advantage -- a monopoly on popular music -- to adopt a more profitable pricing strategy that they would otherwise not be able to utilize. I don't want to lean either way on whether this is true. But if it were true, that pricing strategy WOULD STILL EXIST for other products that aren't monopolies/oligopolies. (Example again: Coke. Virgin tried to break into the market 8 years ago with a lower priced product and failed (at least in the US).)
In summary, pricing does not match production costs. Pricing has to do with the perceived value of the product in the eye of the consumer. Using "intellectual monopoly laws" can help increase that value, but even without them, pricing would then match the new perceived value and not the cost of production.
Do you really need to create your own datastructure?
No, he doesn't. He specifically said he wants the "knowledge to see quickly if the standard Java libraries have this structure already built".
And it's important to have the knowledge of the underlying data structures before choosing them. For example, for a List, should he use an ArrayList, a LinkedList, or a Vector? (Or maybe a LinkedHashMap works better for the problem at hand?)
If you haven't taken a data structures class, or studied the issues in your spare time, you likely couldn't come to a proper decision. Proper decisions involve efficiency (therefore you should understand Big-O notation), and oftentimes threadsafety. If you don't know Big-O notation, the sentence "The add operation runs in amortized constant time, that is, adding n elements requires O(n) time." from the ArrayList JavaDoc would be gibberish. And you wouldn't know that by switching to LinkedList, you would get O(1) time for insertions because the LinkedList JavaDoc doesn't explicitly state that. (It ASSUMES you know the underlying data structure -- and unless you've taken a data structures class, you probably don't.)
Therefore knowing the Java Collections Framework exists and knowing how to use it properly are two completely different things. If you're writing Java apps as a hobby, using ArrayList all the time will work well enough in most situations. But once efficiency and threadsafety enter the picture, understanding data structures at a low level gives you a major leg up.
Are Beijing and Hong Kong really that similar? I'm sure there's very nice parts of Beijing, but I'd expect it to be somewhat like Mexico City (which also has nice parts). Hong Kong seems more like London or NYC.
Can someone who's been to Beijing and Hong Kong (or lives there!) enlighten me?
And check out this site [520music.com], it's got plenty of entire albums available for your listening pleasure, and it's a legitimate site in China
Pretty cool, but the U2 songs I downloaded from them were only 22 kbps. (Far short of the 128kbps offered by iTunes, and no where near my preferred quality: 192kbps.)
Ironically, a study to determine the effects of a Cat 5 hurricane was also shelved
Seems like it wasn't needed after all. Now we know! Great work, Congress!
Will people even be able to read the names??
on
Send your name to Pluto
·
· Score: 4, Interesting
I doubt the average person will be able to read the list of names when the probe comes back. The Latin alphabet has only existed for 2,700 years, and the probe is coming back in 50,000. In 50,000 years, it's almost inevitable that either humanity will be communicating without written words, we'll be using an entirely different alphabet, or humanity will be extinct.
So what's the point of putting the names on the satellite? Is it the Gen-Xer's version of Voyager 1?
Or you can upgrade to Adobe Reader 7.0, which loads plug-ins only as they're needed. For me it loads about 5 times faster than the old Reader versions (5, and especially 6).
But what if a major event happened and everyone needed to email each other to say everything's okay??? Would Google have enough space to hold all the emails?? I demand to have a federal email corporation that insures that there's enough space in times of emergencies! If Google runs out of space, then the government should give us enough space for 100,000 emails. Otherwise, the people who send emails first will get all the email space and everyone else will be silenced and forced on the streets (to talk to people in person, God forbid!!).
And after PC owners install it, they will conclude that OS X is stripped-down, unoptimized and poorly supported. That's exactly the opposite of the image Apple would like for OSX.
My company, a 4000-employee Silicon Valley software company, uses Connected DataProtector to back up our computers. They have both hosted and unhosted versions, our company is hosting it ourselves. It stores a diff of everyone's computer every day (or some other increment) so that people can back up their computers from any point in the past. I'm just getting started using it, but it looks pretty cool and it was incredibly easy to configure (as a user).
Beware of anyone who offers payment in the form of a cashiers check. Craigslist.org has some good details on the scam. Basically, the cashiers check looks like it goes through, you mail out the product, but meanwhile the check bounces. Your checking account goes back to its original balance (minus a bounce fee), but you happen to have mailed the merchandise already!!
Another variant involves wiring money to an account in order to refund the balance of a larger check. Craigslist has the details.
Similar thing for London's underground real-time tracker: they call the terrorist bombings last Thursday a "network emergency".
But I think, in this case, obscuring the gory details is acceptable because they distract from the site's purpose of providing train scheduling information.
Well, at least the most published book on Earth, the Bible, is safe from tinkering. Let's hope no one starts revising our ancient history next.
How were you connected out of 30 quid? What was the trick?
Not to pick on you, but clearly everyone has misunderstood the poster's question. If you wrote all that stuff in a class definition it still would not compile. It would just make for unreadable code and would likely just confuse people that try to make modifications later.
What would you want to see in an OSS class?
I like to see a constructor, a destructor (if applicable), and some methods that do something understandable. And some comments are nice, for instance stating what OSS license you're using, but try not to comment about fundamental questions regarding OSS. Remember, with OSS your source code's going to be open -- so try to make it readable, and not like a Usenet posting from Richard Stallman.
What should be included?
Depends on the programming language. If it's C, you probably want to include stdio.h. But with C++, probably iostream.h or some Qt header file. With Java I find myself using java.util.* and java.io.* a lot. But a lot of cool stuff is in the javax packages too. It's really up to what you're trying to do.
Basically, when designing a class for OSS you use the same principles as when writing proprietary code. I'm confused why you're even designing a class about it!!
That's how the economic theory goes in a free market. Do not confuse the intellectual monopoly industries with free markets.
You're both confused about how markets work. What you're talking about being a free market is actually the market for commodities. That is, products that can be produced identically by multiple vendors. But there's lots of products that aren't commodities, and their reason for being so isn't always that they're protected by intellectual property.
Cocacola is one example. Cans these days are going for over 50 cents each, despite the fact that Pepsi is usually cheaper and all colas cost less than 5 cents to produce. One can argue that Coke's formula is protected by "intellectual monopoly laws", as you put it, but it would be rediculous to state that anyone should be able to reproduce Cocacola and sell it as Cocacola. Trademarks make sense here.
There are lots of other examples where the prices don't match production costs. Here's a site with different pricing strategies. What you're arguing is that every product should use "economy pricing". But the real world doesn't work like that -- music uses more of an emotional pricing strategy, fancy cars use a premium pricing strategy, NetFlix appears to be using penetration pricing.
From this perspective, your argument is that the music industry is using an immoral advantage -- a monopoly on popular music -- to adopt a more profitable pricing strategy that they would otherwise not be able to utilize. I don't want to lean either way on whether this is true. But if it were true, that pricing strategy WOULD STILL EXIST for other products that aren't monopolies/oligopolies. (Example again: Coke. Virgin tried to break into the market 8 years ago with a lower priced product and failed (at least in the US).)
In summary, pricing does not match production costs. Pricing has to do with the perceived value of the product in the eye of the consumer. Using "intellectual monopoly laws" can help increase that value, but even without them, pricing would then match the new perceived value and not the cost of production.
Hey, I chose not to go to Prom not because I'm a nerd (I certainly could have gone), but because Prom is _fucking retarded_.
That's only if you take a retard to prom!
Dupe.
Do you really need to create your own datastructure?
No, he doesn't. He specifically said he wants the "knowledge to see quickly if the standard Java libraries have this structure already built".
And it's important to have the knowledge of the underlying data structures before choosing them. For example, for a List, should he use an ArrayList, a LinkedList, or a Vector? (Or maybe a LinkedHashMap works better for the problem at hand?)
If you haven't taken a data structures class, or studied the issues in your spare time, you likely couldn't come to a proper decision. Proper decisions involve efficiency (therefore you should understand Big-O notation), and oftentimes threadsafety. If you don't know Big-O notation, the sentence "The add operation runs in amortized constant time, that is, adding n elements requires O(n) time." from the ArrayList JavaDoc would be gibberish. And you wouldn't know that by switching to LinkedList, you would get O(1) time for insertions because the LinkedList JavaDoc doesn't explicitly state that. (It ASSUMES you know the underlying data structure -- and unless you've taken a data structures class, you probably don't.)
Therefore knowing the Java Collections Framework exists and knowing how to use it properly are two completely different things. If you're writing Java apps as a hobby, using ArrayList all the time will work well enough in most situations. But once efficiency and threadsafety enter the picture, understanding data structures at a low level gives you a major leg up.
Are Beijing and Hong Kong really that similar? I'm sure there's very nice parts of Beijing, but I'd expect it to be somewhat like Mexico City (which also has nice parts). Hong Kong seems more like London or NYC.
Can someone who's been to Beijing and Hong Kong (or lives there!) enlighten me?
And check out this site [520music.com], it's got plenty of entire albums available for your listening pleasure, and it's a legitimate site in China
Pretty cool, but the U2 songs I downloaded from them were only 22 kbps. (Far short of the 128kbps offered by iTunes, and no where near my preferred quality: 192kbps.)
Ironically, a study to determine the effects of a Cat 5 hurricane was also shelved
Seems like it wasn't needed after all. Now we know! Great work, Congress!
I doubt the average person will be able to read the list of names when the probe comes back. The Latin alphabet has only existed for 2,700 years, and the probe is coming back in 50,000. In 50,000 years, it's almost inevitable that either humanity will be communicating without written words, we'll be using an entirely different alphabet, or humanity will be extinct.
So what's the point of putting the names on the satellite? Is it the Gen-Xer's version of Voyager 1?
In addition, the yellow teeth you get will prevent you from getting STDs!!
:).
As if us Slashdotters need any additional help with that
Or you can upgrade to Adobe Reader 7.0, which loads plug-ins only as they're needed. For me it loads about 5 times faster than the old Reader versions (5, and especially 6).
Valid point, but Microsoft is based in Redmond, Washington, and not California. Therefore the non-compete agreement is under Washington law.
"Listen, I just want to hook up my Sony Wega to a computer!%@$!"
"Vega???"
"Vvega$!$!@$"
But what if a major event happened and everyone needed to email each other to say everything's okay??? Would Google have enough space to hold all the emails?? I demand to have a federal email corporation that insures that there's enough space in times of emergencies! If Google runs out of space, then the government should give us enough space for 100,000 emails. Otherwise, the people who send emails first will get all the email space and everyone else will be silenced and forced on the streets (to talk to people in person, God forbid!!).
Is that where you learned you're high quality grammar?
Hopefully we'll get higher resolution maps on Google Moon out of this. I won't be happy until I can see the American flag down there!
And after PC owners install it, they will conclude that OS X is stripped-down, unoptimized and poorly supported. That's exactly the opposite of the image Apple would like for OSX.
My company, a 4000-employee Silicon Valley software company, uses Connected DataProtector to back up our computers. They have both hosted and unhosted versions, our company is hosting it ourselves. It stores a diff of everyone's computer every day (or some other increment) so that people can back up their computers from any point in the past. I'm just getting started using it, but it looks pretty cool and it was incredibly easy to configure (as a user).
Beware of anyone who offers payment in the form of a cashiers check. Craigslist.org has some good details on the scam. Basically, the cashiers check looks like it goes through, you mail out the product, but meanwhile the check bounces. Your checking account goes back to its original balance (minus a bounce fee), but you happen to have mailed the merchandise already!!
Another variant involves wiring money to an account in order to refund the balance of a larger check. Craigslist has the details.
Similar thing for London's underground real-time tracker: they call the terrorist bombings last Thursday a "network emergency".
But I think, in this case, obscuring the gory details is acceptable because they distract from the site's purpose of providing train scheduling information.
As a geek guy, I have enough problems with things discharging when I talk to women. I'm not about to get another!!
Can you please give me the link the Joel on Software article about Python? I can't find it.
I wonder if Zonk even knows it's a dupe yet?