The English part of my blog is mainly technical. If you can read Italian, check the Italian section for articles of other kind.

GWT Is Neither Java Nor JavaScript: It's GWT

I've heard of many people criticizing GWT, some of the most common reasons are that it translates Java into JavaScript, that web sites are not desktop applications, and that GWT uses Java to write code. Well, here's my thoughts on these points.

I've always looked at GWT like a very interesting technology, but I only recently introduced myself to real GWT development to create the admin interface of MeshCMS 4 (my own GPL CMS). I'm really impressed, and I'm writing this post to point out how I think one should look at GWT.

GWT is neither Java nor JavaScript

Let me clarify what I mean. Sure, you use Java syntax and Java tools when developing (I'm a NetBeans fan for what it's worth). But in a certains sense you're not writing real Java code, since you're not targeting the Java VM. But clearly you're not writing JavaScript, and you can't use closures and such. If you write GWT code thinking about JavaScript, you've missed the whole point. Yes, it will become JavaScript…

Read more

How To Use NHibernate in an ASP.NET Web Site Project (Even With Visual Studio Express)

This is the first time I write an article about ASP.NET, even if I use it at work every day. Yesterday I got NHibernate working in a web site project (which is different from a web application one), despite of all unsuccessful searches on the web, and I wish to share my configuration.

Please note that if you are completely new to NHibernate, you'll learn nothing about it in this article: I just want to help you to get it running in a web site project. For the same reason I've also avoided to implement all those best practices that are already widely documented on the web.

I think that some of you might wonder why one would want to use NHibernate in a web site project, since it looks like using an enterprise tool in a small project. But I don't think that (N)Hibernate must be confined into somewhat big applications: once you've learned it, there's no reason to use another persistence framework for small projects. And being able to use it in Visual Studio Web Developer…

Read more

Another Approach To Use GWT With NetBeans

GWT is one of my favorite tools since it was born, but unfortunately I never had a chance to use it at work. I tested it some time ago and I loved it, but version 1.5 stands even above. I can't keep ignoring it, so I'm going to use it in my free time. I'm a GWT newbie, keep this in mind while reading, nevertheless I've organized a simple setup that I like and I wanted to share it hoping for comments and suggestions.

Most Java developers use Maven, as I do, although not always. I tried the GWT Maven plugin, it does everything, but I found it to be slow, even after it downloads everything. Since I've not found an easy way to make it run fast, I went back to Ant. The setup I'm going to describe runs faster than the Maven based one.

I tried the GWT4NB plugin for NetBeans, it works very well, but when I tested GWT for the first time, I used the tools created by Joakim Recht (GWT Task for Ant and GWT XDoclet). It looked smarter to me than using the wizards provided by an IDE. Now another…

Read more

My Thoughts About Java Web Frameworks

During the summer of 2004 I started writing my first web application: MeshCMS. I already had some background in JSP and a good knowledge of Java, but it was the first time for me to get the whole thing done. I decided to use what I already knew since I wanted to complete it in a short time: I was working as a freelance web designer/developer and I saw that many customers needed a CMS that was really easy to use. I tried many open source CMSes, but they were too complicated for end users.

It was a very formative experience: the application is still working and it is based on the original code. It has many of the issues that one could expect from such an application: JSPs contain Java code, the application flow is not clear and so on. This helped me to understand why web frameworks are a good thing, so I began another search: choosing a web framework.

I have a good knowledge of the HTTP request cycle, so an action framework should be OK, but all acition frameworks I tried…

Read more


Tag Cloud