Is static typing and refactoring really connected?

Monday, August 11th, 2008

One of the main problems brought out when comparing dynamic languages to static ones is lack of proper refactoring support. It is usually implied that dynamic languages are not conceptually refactorable, which speeds up code rotting.
Although there is plenty of evidence that dynamic languages do support refactoring, I’d like to concentrate on the other claim [...]



Typesafe ASM — problems solved?

Wednesday, March 26th, 2008

OK, I think I managed to solve both the primitive and the double slot problem introduced in the previous post. Basically I introduced another parametrized class — InvokeBuilder, which builds method invocations. The example now looks like this:
PLAIN TEXT
JAVA:

ClassWriter cw = new ClassWriter(COMPUTE_MAXS);

 

  new ClassBuilder(cw, V1_4, ACC_PUBLIC, “HelloWorld”, “java/lang/Object”, null)   

  .beginMethod(ACC_PUBLIC, “<init>”, [...]



Are static types a personal issue?

Monday, March 10th, 2008

Static v/s dynamic types: I will look now into the pros & cons of static typing. What if it’s not really a technical but more of a psychological matter?
This is not exactly an eye-opener, but static types will create a mind map of the project code with considerably less effort than dynamic types. And as [...]



JavaScript Puzzlers

Thursday, February 28th, 2008

I have just attended a great course on JavaScript soft typing by Peter Thiemann. No doubt I’ll write more about it later, but today I want to show how fun and quirky can JavaScript be.
Note that all puzzles are given in succession and every next one includes all the code of the previous ones. Also [...]