using appropriate design patterns and coding to interfaces (as spring strongly encourages) would completely prevent you from being 'married' to any particular implementation or persistence mechanism.
I'm not sure this is a good thing necessarily. Capitalism is what fuels drugs companies to spend hundreds of millions of dollars to create these drugs. If countries just start voiding patents, what's the motivation for the drug companies? Yes, I know some might say the motivation is to help people, but drug companies spend a *a lot* of money to help people -- to remain viable they need to get that money back somehow.
I correct myself - I am talking about strongly statically typed languages as opposed to dynamic. Correct me if I'm wrong, but since java is strongly, statically typed, how could:
foobar = SomeClass()
as a declaration possible work w/o changing basis of the entire language? There is no type for foobar. As far as the Nice example - if that is converted to valid Java, then I dont see how it can be converted to anything but:
Object foobar = new FooBar()
which doesnt really do anything as far as this conversation goes other than confirm that variables are strongly typed at declaration in Java (though saying Object is a strong type is in the weakest possible sense). Correct me if I'm misinterpreting you on this.
I think we are coming from different backgrounds here - strongly-typed(Java,C#,Ada,etc) vs weakly-typed (many scripting languages, assembly, etc) languages...
for example your code:
foobar = SomeCustomClassName()
is that a declaration or a reassignment? what object type is foobar? By declaring a variable, I am referring to declaring its type, which the above doesn't do, adding a 'var' in front doesnt remedy this. Declaring the variable type at compile time can drastically reduce the amount of runtime errors that occur, as they are caught at compile time instead.
Java is by no means the most strongly typed language out there as you can still declare everything an Object and throw runtime exceptions casting if you really felt like it...
It just goes back to the fact that in Java, as in many languages, you have to declare your variables; Your example looks more like a scripting language where declarations are not required (e.g. Javascript).
Thats up to you and the context the object is being created in....
ArrayList list = new ArrayList();
List list = new ArrayList();
Collection list = new ArrayList();
all create a new ArrayList and assign it to 'list'. Defining an object's type by its interface, if available, is more flexible than defining it by its concrete implementation. while a bit verbose in some cases, I think it adds to the extensibility of the language and is not a drawback.
I've heard plenty about RoR on Slashdot - but to be honest, thats about where it stops. Does anyone have any experience or views deploying a medium/high volume commercial or enterprise solution using this?
I have yet to personally see RoR in either situation and I don't know anyone who has - I'm not knocking RoR, just curious how it's actually being used.
CustomizeGoogle (http://www.customizegoogle.com/) is a a GPL'd FireFox extension. It wasn't written by Google and Im pretty sure Google doesn't like it too much since it removes advertisements and adds links to competitors sites to name a few things...
Re:Why are we hiding from the police, daddy?
on
Vim 6.4 Released
·
· Score: 1
Well, as a programmer, Ive been using vi for several years. Maybe I'm slow, but it takes a lot longer than a couple days to be effective with it - and even then it just can't compete with a halfway decent IDE. I hate to say it, but its true. On a side note, it still kicks the hell out of emacs;).
In my experience ORM frameworks are fantastic for simple DB schemas/applications. For more complicated cases they may work, but at a performance cost - such as pulling considerably more data than required. Putting into consideration hardware and time restrictions, this may be (more than) acceptable. Ideally, I would prefer to create the most efficient solution, which has thus far not been via an ORM framework...maybe this is a sign I'm getting old:)
I have to agree. I cant defend EVERY American policy or EVERY American action. But to say that all US presidents are evil and that every US action is in its own self interests is rediculous. If we had all the money that weve contributed towards AIDS and natural disasters, I think the current situation in New Orleans wouldnt affect us quite so much financially. The fact is the US is not all bad - there are other countries with much a much stronger self interest that do nothing towards the global community. But please, continue living in your own warped world....Im sure it is much more comforting with a scape goat.
OpenEJB? I guess it depends on your project. I have yet to hear of anyone that has used an opensource EJB solution in a commercial environment besides JBoss. Geronimo is up and coming, but in my experience, OpenEJB is not even on the map. This is not to say that OpenEJB wont work for you - you just need to decide how demanding your application is and what kind of performance/uptime/scalabily it demands.
Yes - all US presidents are evil...give me a break. The US does more to help others than any other country out there. Alot of people may disagree with Bush, including me - but to to charactarize the US people as sheepish or evil is just plain ignorant. I would love to see where the world was if we were isolationist - it wouldnt be good. Wake up.
using appropriate design patterns and coding to interfaces (as spring strongly encourages) would completely prevent you from being 'married' to any particular implementation or persistence mechanism.
I'm not sure this is a good thing necessarily. Capitalism is what fuels drugs companies to spend hundreds of millions of dollars to create these drugs. If countries just start voiding patents, what's the motivation for the drug companies? Yes, I know some might say the motivation is to help people, but drug companies spend a *a lot* of money to help people -- to remain viable they need to get that money back somehow.
I correct myself - I am talking about strongly statically typed languages as opposed to dynamic. Correct me if I'm wrong, but since java is strongly, statically typed, how could:
foobar = SomeClass()
as a declaration possible work w/o changing basis of the entire language? There is no type for foobar. As far as the Nice example - if that is converted to valid Java, then I dont see how it can be converted to anything but:
Object foobar = new FooBar()
which doesnt really do anything as far as this conversation goes other than confirm that variables are strongly typed at declaration in Java (though saying Object is a strong type is in the weakest possible sense). Correct me if I'm misinterpreting you on this.
I think we are coming from different backgrounds here - strongly-typed(Java,C#,Ada,etc) vs weakly-typed (many scripting languages, assembly, etc) languages...
for example your code:
foobar = SomeCustomClassName()
is that a declaration or a reassignment? what object type is foobar? By declaring a variable, I am referring to declaring its type, which the above doesn't do, adding a 'var' in front doesnt remedy this. Declaring the variable type at compile time can drastically reduce the amount of runtime errors that occur, as they are caught at compile time instead.
Java is by no means the most strongly typed language out there as you can still declare everything an Object and throw runtime exceptions casting if you really felt like it...
It just goes back to the fact that in Java, as in many languages, you have to declare your variables; Your example looks more like a scripting language where declarations are not required (e.g. Javascript).
Why do you have to write the type twice?
Thats up to you and the context the object is being created in.... ArrayList list = new ArrayList(); List list = new ArrayList(); Collection list = new ArrayList(); all create a new ArrayList and assign it to 'list'. Defining an object's type by its interface, if available, is more flexible than defining it by its concrete implementation. while a bit verbose in some cases, I think it adds to the extensibility of the language and is not a drawback.
last time I checked "window." was never required before any of the window functions such as window.alert()
I've heard plenty about RoR on Slashdot - but to be honest, thats about where it stops. Does anyone have any experience or views deploying a medium/high volume commercial or enterprise solution using this?
I have yet to personally see RoR in either situation and I don't know anyone who has - I'm not knocking RoR, just curious how it's actually being used.
alert('this isn't using DOM and its javascript!');
Add this bot to your buddy list: "javaaimbot". There is an AI engine in there somewhere, though it may be hard to believe by some of it's responses.
webiste is here: http://jaimbot.sourceforge.net/
What exactly does that coffee cup next to this article have to do with AJAX?
CustomizeGoogle (http://www.customizegoogle.com/) is a a GPL'd FireFox extension. It wasn't written by Google and Im pretty sure Google doesn't like it too much since it removes advertisements and adds links to competitors sites to name a few things...
Well, as a programmer, Ive been using vi for several years. Maybe I'm slow, but it takes a lot longer than a couple days to be effective with it - and even then it just can't compete with a halfway decent IDE. I hate to say it, but its true. On a side note, it still kicks the hell out of emacs ;).
"Additionally the Firefox 2/3 roadmap also looks promising."
can you explain what looks promising in that link concerning 2/3? "The Ocho"? I guess thats promising...
In my experience ORM frameworks are fantastic for simple DB schemas/applications. For more complicated cases they may work, but at a performance cost - such as pulling considerably more data than required. Putting into consideration hardware and time restrictions, this may be (more than) acceptable. Ideally, I would prefer to create the most efficient solution, which has thus far not been via an ORM framework...maybe this is a sign I'm getting old :)
I have to agree. I cant defend EVERY American policy or EVERY American action. But to say that all US presidents are evil and that every US action is in its own self interests is rediculous. If we had all the money that weve contributed towards AIDS and natural disasters, I think the current situation in New Orleans wouldnt affect us quite so much financially. The fact is the US is not all bad - there are other countries with much a much stronger self interest that do nothing towards the global community. But please, continue living in your own warped world....Im sure it is much more comforting with a scape goat.
OpenEJB? I guess it depends on your project. I have yet to hear of anyone that has used an opensource EJB solution in a commercial environment besides JBoss. Geronimo is up and coming, but in my experience, OpenEJB is not even on the map. This is not to say that OpenEJB wont work for you - you just need to decide how demanding your application is and what kind of performance/uptime/scalabily it demands.
Yes - all US presidents are evil...give me a break. The US does more to help others than any other country out there. Alot of people may disagree with Bush, including me - but to to charactarize the US people as sheepish or evil is just plain ignorant. I would love to see where the world was if we were isolationist - it wouldnt be good. Wake up.