Posted by Zach Scott | March 3rd, 2008
I’ve always thought that the ideal web development platform would be comprised of a dynamically typed language in the presentation tier supported by a statically typed language where the business and persistence logic lives. It just never made sense to me to use a statically typed language for building web user-interfaces considering that there’s very little gain to be had from type-safety.
The news today that Sun hired two key Python programmers makes me hopeful that they’re thinking what I’m thinking.
Tags: Java, python, sun
Posted by Zach Scott | February 29th, 2008
I just have to say, “I love Python!”
public void printPowers() {
for (int r = 0; r < 100; r++) {
int x = Math.pow(r, r);
System.out.print(x);
System.out.print(",");
}
}
In Java - *with class definition and formatting left out
[r**r for r in range(100)]
In Python
Another thing I didn’t mention: The java implementation won’t work because int can’t store 99^99, but Python takes care of handling arbitrarily large numbers for you. It’s great.
Tags: python