Archive for the 'Programming' Category
jsUnit testing a method of a class with a boring constructor
Friday, August 29th, 2008Today I wanted to introduce some jsUnit testing in an old class. In particular I wanted to test a single method in isolation but I could not instantiate the object itself since the constructor had dependency on other files.
load(”ClassToTest.js”);
function testMyMethod() {
var object = new ClassToTest(); // This does not work since
//ClassToTest has a boring constructor!
object.runMethod();
//do [...]
Why Scrum works
Tuesday, August 19th, 2008I’m working as a consultant on a new project with a bunch of other collegues. Sometimes we use scrum, sometimes not, in an inconsistent way. It is so clear that during the phases in which we don’t people is less involved, I spend my time merging conflicts and more than once I’ve been doing the [...]
Deploying Flex application with no dependency on context root
Tuesday, April 15th, 2008It seemed very strange to me that in FlexBuilder you have to tell the context on which a flex application using LiveCycle Data Services will be deployed. FlexBuilder requires you to fill in the “Context Root” variable which will be then saved inside .flexProperties as serverContextRoot. You may want to deploy the same application to [...]
Unit testing with Javascript
Friday, September 28th, 2007I’m a big fan of unit testing. Everybody who has been working with me knows it. Unit testing makes you sleep well at night. If you have not understood the advantage of unit testing your code you should really try to do it!
Lately I’ve been working a lot with Javascript for obvious reasons. Ajax is [...]
jfokus 2007
Tuesday, January 30th, 2007Today I attended at jfokus, a conference on java and on its future now that Sun is moving to the open-source world.
I found most of the presentations of pretty low level and some of them of low quality. Maybe they just had to announce what kind of knowledge an attendant was supposed to have. Moreover, [...]
MVC Expert på svenska!
Tuesday, January 23rd, 2007Infoflex har pubblicerat en ny sajt för att lansera våra MVC konsult-tjänsterna. Genom denna nya sajten kommer vi att erbjuda mentorskap, utveckling och drift av MVC applikationer baserat mest på Spring och Hibernate men också på Rails och andra teknologier.
MVC Expert
Tuesday, January 23rd, 2007We at Infoflex have published a new website www.mvcexpert.se to remark the new business we have started this year. Through this site we will provide consulting and mentoring for MVC projects, mostly based on Spring and Hibernate but also on other technologies as Rails. The site is mainly in Swedish since our company is located [...]
Spring consulting at Pricerunner
Friday, January 12th, 2007Since last monday I’m working at Pricerunner as a consultant to help them with the refactoring of their application. The problem they want to address is the dispatching of urls to the Spring MVC. Their office is located in Stockholm, quite close to mine so it is no problem to move from one place to [...]
Using a default “static” controller to sketch web applications with Spring
Wednesday, December 27th, 2006When sketching an application, I use a “standard” controller that takes the url and returns a jsp called with the same name (index.html -> index.jsp, addstuff.html -> addstuff.jsp and so on) and an empty model.
When I go deeper into the application and start writing real controllers, I substitute each of the “standard” controllers with forms/controllers [...]
CAS & Webcalendar
Saturday, March 11th, 2006In brief
Install webcalendar, change the login page so that it uses phpCas instead of the webcalendar login form, tell webcalendar to use user-cas.php to retrieve users from the database, fix the logout so that it calls the CAS server.
Step by step
get and install webcalendar(v. 1.0.2)
get phpCas (v. 0.4.20-1)
copy the CAS directory from phpCas inside the [...]