• Home
  • RSS Feed
  • Log in

Author Archive

Older Entries

JSON Formatter Plugin for IntelliJ
Posted by Erik Pragt in the early morning: February 5th, 2009

When developing an AJAX application you often end up with some data interchange format, like XML, plain text, or, in my case: JSON. The trouble with JSON, however, it that's it's quite hard to read. Not because it's so complicated, but because it has been optimized for network communication, which in this case, means: all the whitespace has been stripped. Wouldn't it be nice to have an integrated JSON formatter in your IDE to handle this? Well, now it possible!

(more...)

  • Share/Bookmark

Tags: IntelliJ, json, plugin
Filed under Java | 1 Comment »

IntelliJ 8: Even smarter code completion!
Posted by Erik Pragt around lunchtime: November 11th, 2008

Smart code completion has been improved in IntelliJ 8. In the new version of JetBrains' IDE 'even smarter' code completion is added. But first I'll explain what smart code completion is! Basically, it's code completion on steroids, which takes the type of the variable into account too which the new value is assigned to. So, if your assigning a value to a variable of type String, smart code completion will only display methods which are compatible with a String type, and filters the list of methods accordingly. It does even a lot more than this, which you can read about here
(more...)

  • Share/Bookmark

Tags: code completion, ide, IntelliJ
Filed under Java | 1 Comment »

IntelliJ 8: SQL Support
Posted by Erik Pragt in the late afternoon: November 9th, 2008

IntelliJ 8: Database Browser

A new feature is added in IntelliJ 8, which is the database browser. This functionality was already available with the help of some plugins, but now it has been integrated in the core of IntelliJ, and has been integrated in the complete IDE. This blog will give you some examples of how to set it up, and how to use it.
(more...)

  • Share/Bookmark

Filed under Java | No Comments »

IntelliJ 8: Type Migration
Posted by Erik Pragt in the early morning: November 7th, 2008

Coding is refactoring. What starts with a great idea, might prove incorrect in the future. A simple example is the following code:

 
public class Address {
    private String streetName;
    private Integer houseNumber;
 
    // getters and setters
}
 

(more...)

  • Share/Bookmark

Tags: IntelliJ, Java, type migration
Filed under Java | 4 Comments »

IntelliJ 8: Introduce Parameter Refactoring
Posted by Erik Pragt late at night: November 6th, 2008

IntelliJ 8 provides 7 new refactorings. One new powerful refactoring is the Introduce Parameter Object. The name speaks for itself: it introduces a parameter object! But what does it really do? The refactoring promotes good encapsulation. It encapsulates fields by introducing a new object for them.

(more...)

  • Share/Bookmark

Tags: IntelliJ, intellij 8, refactoring
Filed under Java | 7 Comments »

IntelliJ 8 has been released!
Posted by Erik Pragt in the late evening: November 6th, 2008

Today, a new release of IntelliJ 8 has been released! It's the magic number 8, and could a better name have been taken? IntelliJ 7 was already a very good Java IDE, but version 8 only builds further on this!

New features of the 8 release are (amongst others):

  • SQL integration
  • Standard Groovy and Grails integration
  • Seam integration
  • Maven support greatly improved
  • 7 (!!) new Java refactorings
  • Adobe Flex support
  • And many more improvements!

To celebrate this, I will release a series of blogs about some of the new or improved features of IntelliJ 8! So stay tuned!

  • Share/Bookmark

Tags: IntelliJ, intellij 8, release
Filed under Java | No Comments »

Grails Remoting with Hessian, Burlap and HttpInvoker
Posted by Erik Pragt at around evening time: September 25th, 2008

A short while ago, a collegue and I decided to write an application with Grails and Eclipse RCP. We choose Grails for the ease of development, and Eclipse RCP (in favor of Flex and Plain Old HTML) because we wanted to give our users a solid and native look and feel, for which Eclipse RCP works really well.

Since the Eclipse RCP front-end would actually be a remote front-end, we needed some kind of kind of communication between the client and the server. One of our first idea's was to use XML-RPC, which is pretty well supported in Grails, but it would force us to to do some mapping between our domain and the XML. Since we wanted to use the same domain classes is Eclipse as in Grails (by exporting the Grails domain to external domain jars), we opted for a different approach: Burlap/Hessian.

(more...)

  • Share/Bookmark

Tags: burlap, Grails, Groovy, hessian, httpinvoker
Filed under Java | 8 Comments »

Using Groovy to keep your Maven and Fitnesse dependencies in sync
Posted by Erik Pragt around lunchtime: July 29th, 2008

The problem

What if you're working with Maven, where you've got all your dependencies nicely organised, and now you decide to use any other piece of 'classpath-aware' software, like Fitnesse. The chances are that you'll need to use the same classpath in Fitnesse as in Maven. A possible solution could be to maintain it by hand, but why not write a very small script for it to do it for you? My (very very very!) basic solution is to use a Groovy, because it's easy to write, easy to read, and easy to use!
(more...)

  • Share/Bookmark

Tags: fitnesse, Groovy, Maven, script
Filed under General | 6 Comments »

Querying associations in Grails with HQL, Criteria and HibernateCriteriaBuilder
Posted by Erik Pragt mid-morning: June 4th, 2008

A thing I was playing with today was many-to-many relationships in Grails to create a Tag Cloud. To create a Tag Cloud, I must have a set of key/value pairs, each with a label and a value of the label, which could look like this:

['Java': 5, 'Grails': 16, 'Groovy': 12]

But to query this, I need to query a many to many relationship and produce the above result. This blog will describe how to do this with HQL, Criteria and the HibernateCriteriaBuilder.
(more...)

  • Share/Bookmark

Tags: Grails, Groovy, Hibernate
Filed under Java | 6 Comments »

Grails Syntax Highlighter Plugin Released
Posted by Erik Pragt at around evening time: May 20th, 2008

Grails syntax highlighter plugin

Yesterday, I released my first plugin for Grails. The goal of the plugin is to do Syntax Highlighting for Code Snippets in HTML pages, for which no plugin existed yet. The plugin supports a whole range of languages, and even includes Groovy Highlighting support. The Grails Synax Highlighter builds on the great work of Alex Gorbatchev, who wrote and maintains the Javascript Syntax Highlighter.
(more...)

  • Share/Bookmark

Tags: Grails, syntax highlighter
Filed under Usability | 3 Comments »

Older Entries
Deployment automation for Java application running on Websphere, WebLogic and JBoss

Categories

  • Java (291)
  • Agile (127)
  • General (96)
  • Architecture (47)
  • Testing (45)
  • Scrum (44)
  • Performance (42)
  • Podcast (31)
  • SOA (25)
  • Middleware (31)
    • Deployment (20)
  • Project Management (23)
  • Xebia Labs (21)
  • Quality Assurance (16)
  • Tools (12)
  • lean architecture (11)
  • Requirements Management (10)
  • Articles (9)
  • Virtualization (9)
  • Security (7)

Tag Cloud

    ACT Groovy Frameworks XML Eclipse qcon Architecture agile architectuur Scrum Grails Performance Moving to India IntelliJ SOA Flex Maven JPA implementation patterns Lean websphere lean architecture Oracle Agile Java Concurrency Control JPA Hibernate Spring Ajax Scala lean architectuur

Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India

Archives

  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009