Sergey Brin of Google stated publicly at this year's Google I/O conference that Chrome and web apps are Google's ultimate goal. Android and its native apps are just an interim step.
This sounds like corporate politics - wonder if this is under encouragement from apple - do apple/oracle share board members?
j
I'll admit I sometimes find Java maddening, but it's only because I first learned C++, and by extension, Java (aka: C-plus-plus-minus-minus ) sometimes seems needlessly crippled or held back. The languages you master first have a tendency to color your opinion of languages you master later on.
IANAL, but I can't see how all those bright brains at Google thought they were going to get around this.
I think that is definitely a factor. A lot of java complainers seem to prefer dynamically typed languages which are what a lot of scripting languages are. Perhaps they started writing scripts.
Personally I don't mind the very small overhead of declaring variables. Most of my career is spent in large code bases and static typing aids readability/maintainability IMO and you get potential performance benefits form doing type checking at compile time.
Whipping of a small script, sure have dynamic typing, but I can't imagine anything worse than trying to maintain large code base in PHP/Javascript which is both dynamic typed and weakly typed. Anything can be used anywhere and assigned to anything (shudder).
This sounds like corporate politics - wonder if this is under encouragement from apple - do apple/oracle share board members?
j
Larry is a good friend to Steve...
Q: What's the difference between Larry Ellison and God?
.
.
.
.
A: God doesn't think he's Larry Ellison!
I like declarations, for code of any size and complexity. I 'use strict' when I use Perl, for example. Here's my essential problem with Java, as an A/B:
A- Its libraries are a mess. Handling dates, for example, is approximately 3 orders of magnitude more effort (read: time and expense) in Java than in any of the languages that you keep trying to ghetto-ize by referring to them as "scripting" languages. If a "scripting" language just won't do (though there are fewer and fewer situations where this is true anymore unless you're talking embedded), then even C has more coherent libraries for it. That's just one example, I could trade "dates" for a dozen other things.
B- Its object model is half-baked. If you really need objects, then you need multiple dispatch. That's an overgeneralization, but the exceptions are few and far between. Virtually every Java application of more than X lines (fill in a number that's "big") makes extensive use of the visitor pattern to overcome this lack. A direct result is increasingly poor readability and maintainability, as well as lower quality based on the truism that the more lines of code you have, the more bugs you're going to introduce. Note that I'm not talking about syntax here, I'm talking about reinventing the wheel.
Whipping of a small script, sure have dynamic typing, but I can't imagine anything worse than trying to maintain large code base in PHP/Javascript which is both dynamic typed and weakly typed. Anything can be used anywhere and assigned to anything (shudder).
Just a small vent. I used Oracle everyday, all day for about a year. Times I was ready to walk to and put my foot through the server that was hosting my current login.
If you can't responsibly take care of your own variables, you shouldn't be programming. Frankly. Taking typing as an assurance of anything is a terrible, terrible idea. False security.
ROTFL Thanks for the laugh. Don't ever send me a resume.
If you can't responsibly take care of your own variables, you shouldn't be programming. Frankly. Taking typing as an assurance of anything is a terrible, terrible idea. False security.
Our code base is > million LOC. My contribution is small. We are always learning/changing code written by someone else.
I would find a massive code base of other peoples weakly typed, dynamically typed code a major headache to sort out. I would prefer variables to be declared and not have them be holding different types from section to section of the code.
It is a question of readability/maintainability for unfamiliar code.
The only way for Google to settle this that I can see would be to use the standard Java JVM in place of their Dalvik VM, and at that point it wouldn't be Android anymore.
Certainly, Dalvik is not the only alternative JVM out there, is it?
Q: What's the difference between Larry Ellison and God?
.
.
.
.
A: God doesn't think he's Larry Ellison!
MySQL is fine for a smallish project; it is NOT an enterprise solution. For that, Oracle or DB2 is needed.
I'm always curious what an "enterprise solution" is. As far as I've been able to discern, it means "anything that uses PeopleSoft or Oracle and requires a team of 40 cursing consultants to get the uptime to four eights."
Feel free to explain why, exactly, you think static typing saves you from needing to keep track of what your variables are actually doing? Or is it easier to just stay ignorant, keep producing unmaintainable code, and laugh anonymously on forums?
Enterprise is something you bet your business on, and generally refers to databases in the trillions of rows and thousands of transactions per second. Oh, and distributed over many servers.
I us MySQL to keep track of my CDs; Oracle gets used to keep track of social security records.
I thought static typing was mainly for the compiler to make it easier to catch errors and for optimization.
I don't think it has all that much to do with code readability.