Posts

Showing posts from January, 2011

Converting from jsp to freemarker

Here is an attempt to document the steps required to migrate the user interface of a spring-mvc web application, which uses jsp to freemarker template.
Update the context fileTypically jsp views are rendered using the following configuration:

<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/> <property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp"/> </bean>
To use freemarker, we would change this to the following:

<bean id="freemarkerConfig"  class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPath" value="/WEB-INF/freemarker/"/> </pre> <bean id="viewResolver" class="org.s…

On effective public speaking

Image
Confessions of a Public Speaker (Scott Berkun, O'Reilly Media, Oct 2009. 240 pages, ISBN: 978-0-596-80199-1) is a book on how to improve your public speaking.  Scott, who is a professional speaker (as well as a writer) has collated his extensive experience of public speaking into this delightful book. 

Instead of a dry book having bulleted contents and checklist, this book is woven together by a series of interesting anecdotes. The book begins with an inflight conversation, where Scott is asked, "When ... giving a lecture, do you imagine everyone in the room naked?" setting the tone for what is to follow.

Each chapter of the book focuses on various tips and tricks that a speaker should know.  One of the underlying message is about preparation and practice - nothing else matters.

There is an interesting chapter on how much speakers are paid and on what basis. There is another chapter dealing with the nuances of being on television.  A third one talks about how to be a go…

On increasing programmer productivity

Image
The Productive Programmer by Neal Ford (O'Reilly. 2008. ISBN 978-0-596-51978-0) is an interesting book on programming best practices. Neal, who is a practitioner, has brought into the book, his diverse experiences. In the lines of books in similar genre, this is a book meant for programmers to help them become more productive in what they do.

The book is divided into two parts - Mechanics and Practice. While Mechanics talks about various tools that help in Acceleration, Focus, Automation and Canonicality, the Practice section focuses on methodologies which aid productivity. While many of the programming examples in the book is in Java language, the book is, in general, langauge and platform-agnostic.

Neil gives a lot of importance to the developers getting the best out of the computer that they are working on. This means using command-line tools, using keyboard over mouse, knowing keyboard shortcuts for various common actions and so on. He bemoans the lack of skills of the …