It means that you can create List and pass it to a legacy method which takes only unparameterized List. Or you can get unparameterized List and cast it to parameterized type.
If your code uses Java 5 features then it won't run on JDK1.4. You can use tools like Declawer or Retroweaver to run 1.5 code on 1.4 but only to a certain degree.
Generics syntax is quite readable and easy-to-use, especially with good IDE support. And generics certainly make the code more readable because the add type information.
Foreach loops, varargs and autoboxing is just a minor syntax sugar, nothing really big.
I've used a lot of collection frameworks in a lot of languages (and even wrote my very own vector and string for C++), Java Collections Framework is quite OK. It's not hard and reasonably fast.
Unworkable. Polymorphism and ifs/switches are SEVERAL ORDERS OF MAGNITUDE faster than database access. So it's better to keep them separated.
As for metaprogramming - you can look at Nemerle (http://nemerle.org/Main_Page) which excels at metaprogramming. It's one of the best languages I've seen.
Java generics are not real generics, then you parametrize a generic class in Java you don't really create a new type. You just attach some information for Java compiler so it can perform automatic casting and save you some typing.
Java generics don't provide real type safety, for example, you can easily put Strings in List (that's why Collections.checkedCollection kludge was added).
In C# (or C++), on the other hand, parameterizing a generic type creates a _new_ _type_ which guarantees type safety and allows some quite interesting tricks. For example, in C# generics can be parametrized by primitive types and structs (which don't exist in Java, anyway) so you can have List without overhead of boxing. That's impossible in Java.
Yes, of course is 'perturbation theory'. Sorry, English is not my native language.
By 'nope' I mean that QM and GR _do_ work together, because we've tested both of them and found them to be correct. We just don't know how to use both of them at the same time:)
And quantum mechanics and special relativity (i.e. quantum mechanics in flat Minkowski space) were successfully united back in 30-s. It's GR which causes problems.
String theory has exactly the same problems with renormalization.
OK, so ethnic cleansing (i.e. burning people's houses and forcing them to move or starve to death) is now OK?
And it will be OK for Iran to force Israel (using nuclear and biological weapons threat) to move somewhere else so Palestinians can live freely? If a wrong thing has been done several times it doesn't stop being wrong.
You might notice, that such cleanings rarely solve problems: India and Pakistan, Israel and Palesting, Georgia and Abkhazia, etc.
Sorry, I've overlooked 'Bosnia'. Yes, the role of NATO and UN in the resolution of Bosnia conflict was more successful than the later conflict.
I'm not confusing 'genocide' with 'refugee', I'm confusing 'genocide' with 'ethnic cleansing'. Albanians permitted large scale ethnic cleanings which are also prohibited by international law.
Compare Milosevic trial with Saddam's trial. Do you see any difference?
Oh, and do you remember photo of concentration camp with poor starving Albanians? Which turned out to be a holding center for Serb refugees?
So are you saying that genocide of Serbs is OK since they did that to Albanians earlier? Maybe we should use biological weapons on the USA population because US did that to native Americans earlier?
Do you realize that almost every war results in war crimes? Why don't we see Albanian warlords tried for their crimes?
It was publicized a bit by Russian TV and newspapers, but Europe completely is silent about the whole Kosovo situation. Small wonder, because number of misplaced Serbs exceed number of Albanian refugees misplaced by evil Milosevic.
About a quarter million of serbs were forced to move after the end of "humanitarian bombings" ("After the war ended, the UN Security Council passed Resolution 1244 that placed Kosovo under transitional UN administration (UNMIK) and authorized KFOR, a NATO-led peacekeeping force. Almost immediately returning Kosovo Albanians attacked Kosovo Serbs [1], causing some 200,000-280,000[20] Serbs and other non-Albanians[21] to flee"). But that's not a genocide, sure. That's just a "normal migration".
And now Kosovo is the major center of drug trafficking in Europe and poverty levels there are highest in Europe.
Maybe you should read transcripts of Milosevic's trial? Have you ever wondered why such prominent trial was not widely published? My brother did a research for his term paper and found that the court found sufficient evidence for exactly ONE case of war crimes.
The problem with silanes is lack of stable aromatic compounds - carbon seems to be unique in that sense, AFAIR. Si atoms just have a lot more degrees of freedom - they don't hybridize, they just oxidize/reduct.
Boris Strugatskiy (http://en.wikipedia.org/wiki/Arkady_and_Boris_Str ugatsky) allows copying and reproduction of his works without royalties. He's a rare example of a writer who does not write only for money.
I've played STALKER and it's absolutely not similar to HL2 or Doom. I don't deny that they may have 'borrowed' some models (probably, it was accidental) but the game itself is absolutely NOT a rip-off from Doom/HL.
That won't work if you use new Tiger features. It's just like you're using an older version of compiler.
void doSomething(List lst)
//Oops!
{
lst.add("Hello, world!");
}
List<Integer> intList=new ArrayList<Integer>();
doSomething(intList);
assert(intList.get(0) instanceof Integer);
Yes, I absolutely hate to maintain old pre-1.5 code because generics make it so much easier to use.
But the problem is that generics could be implemented in a much better way, C# proves that.
It means that you can create List and pass it to a legacy method which takes only unparameterized List. Or you can get unparameterized List and cast it to parameterized type.
It's impossible to do in C#/C++.
No, you can't.
If your code uses Java 5 features then it won't run on JDK1.4. You can use tools like Declawer or Retroweaver to run 1.5 code on 1.4 but only to a certain degree.
Bullshit.
Generics syntax is quite readable and easy-to-use, especially with good IDE support. And generics certainly make the code more readable because the add type information.
Foreach loops, varargs and autoboxing is just a minor syntax sugar, nothing really big.
I've used a lot of collection frameworks in a lot of languages (and even wrote my very own vector and string for C++), Java Collections Framework is quite OK. It's not hard and reasonably fast.
Unworkable. Polymorphism and ifs/switches are SEVERAL ORDERS OF MAGNITUDE faster than database access. So it's better to keep them separated.
Q uery for an example.
As for metaprogramming - you can look at Nemerle (http://nemerle.org/Main_Page) which excels at metaprogramming. It's one of the best languages I've seen.
But there's research in bridging the gap between databases and code - see http://en.wikipedia.org/wiki/Language_Integrated_
Sorry, Slashdot ate "<" and ">".
"you can easily put Strings in List" should be "you can easily put Strings in List<Integer>".
"so you can have List without overhead of boxing" should be "so you can have List<Integer> without overhead of boxing"
Java generics are not real generics, then you parametrize a generic class in Java you don't really create a new type. You just attach some information for Java compiler so it can perform automatic casting and save you some typing.
Java generics don't provide real type safety, for example, you can easily put Strings in List (that's why Collections.checkedCollection kludge was added).
In C# (or C++), on the other hand, parameterizing a generic type creates a _new_ _type_ which guarantees type safety and allows some quite interesting tricks. For example, in C# generics can be parametrized by primitive types and structs (which don't exist in Java, anyway) so you can have List without overhead of boxing. That's impossible in Java.
I'm using OpenSource VPN driver. Besides, I'm slowly porting FUSE to Windows on my free-time and it also requires kernel module.
Yep. Just try to install OpenSource driver on Vista x64.
Yes, of course is 'perturbation theory'. Sorry, English is not my native language.
:)
By 'nope' I mean that QM and GR _do_ work together, because we've tested both of them and found them to be correct. We just don't know how to use both of them at the same time
And quantum mechanics and special relativity (i.e. quantum mechanics in flat Minkowski space) were successfully united back in 30-s. It's GR which causes problems.
String theory has exactly the same problems with renormalization.
Nope, current methods (renormalization and permutation theory) used in quantum mechanics just do not work well in curved space.
OK, so ethnic cleansing (i.e. burning people's houses and forcing them to move or starve to death) is now OK?
And it will be OK for Iran to force Israel (using nuclear and biological weapons threat) to move somewhere else so Palestinians can live freely? If a wrong thing has been done several times it doesn't stop being wrong.
You might notice, that such cleanings rarely solve problems: India and Pakistan, Israel and Palesting, Georgia and Abkhazia, etc.
Don't flatter me, I'm not incompetent enough to be the real antichrist :)
It's funny, but my second name can be translated from Russian as "demon expeller".
Sorry, I've overlooked 'Bosnia'. Yes, the role of NATO and UN in the resolution of Bosnia conflict was more successful than the later conflict.
I'm not confusing 'genocide' with 'refugee', I'm confusing 'genocide' with 'ethnic cleansing'. Albanians permitted large scale ethnic cleanings which are also prohibited by international law.
Compare Milosevic trial with Saddam's trial. Do you see any difference?
Oh, and do you remember photo of concentration camp with poor starving Albanians? Which turned out to be a holding center for Serb refugees?
So are you saying that genocide of Serbs is OK since they did that to Albanians earlier? Maybe we should use biological weapons on the USA population because US did that to native Americans earlier?
Do you realize that almost every war results in war crimes? Why don't we see Albanian warlords tried for their crimes?
http://en.wikipedia.org/wiki/Kosovo#Kosovo_after_t he_war - this article cites a lot of credible references (see the list below). There is much more material in Russian. You can google for it yourself.
It was publicized a bit by Russian TV and newspapers, but Europe completely is silent about the whole Kosovo situation. Small wonder, because number of misplaced Serbs exceed number of Albanian refugees misplaced by evil Milosevic.
Yes? What sort of Kool-aid do you drink?
About a quarter million of serbs were forced to move after the end of "humanitarian bombings" ("After the war ended, the UN Security Council passed Resolution 1244 that placed Kosovo under transitional UN administration (UNMIK) and authorized KFOR, a NATO-led peacekeeping force. Almost immediately returning Kosovo Albanians attacked Kosovo Serbs [1], causing some 200,000-280,000[20] Serbs and other non-Albanians[21] to flee"). But that's not a genocide, sure. That's just a "normal migration".
And now Kosovo is the major center of drug trafficking in Europe and poverty levels there are highest in Europe.
Maybe you should read transcripts of Milosevic's trial? Have you ever wondered why such prominent trial was not widely published? My brother did a research for his term paper and found that the court found sufficient evidence for exactly ONE case of war crimes.
At least it's a COMPETENT antichrist. As opposed to US government...
But just imagine the possibilities! If you throw a chair in the space - it will fly almost eternally (until its orbit decays).
Well, we'll all hope that they'll remain there and never return to the Earth.
On the other hand... 'Space overlords' line doesn't look good...
The problem with silanes is lack of stable aromatic compounds - carbon seems to be unique in that sense, AFAIR. Si atoms just have a lot more degrees of freedom - they don't hybridize, they just oxidize/reduct.
Why not? Let them catch me if they can :)
:)
Games should not be designed so you need to kill 123954 boars to obtain SuperDuperSwordOfPower. Particularly, Lineage is unplayable without bots
Boris Strugatskiy (http://en.wikipedia.org/wiki/Arkady_and_Boris_Str ugatsky) allows copying and reproduction of his works without royalties. He's a rare example of a writer who does not write only for money.
I've played STALKER and it's absolutely not similar to HL2 or Doom. I don't deny that they may have 'borrowed' some models (probably, it was accidental) but the game itself is absolutely NOT a rip-off from Doom/HL.