Aug 28

There are a couple of things I would like to try if I’m going to start a new project.

  • Use a good code formatter. I’m a two spaces indentation guy. I think four spaces indentation is a total waste of screen real estate. No, no tab. Everybody should know that by now.
  • Start using test fixtures from the beginning. It’s surprising how my last two projects end up the same path – first helpers and then refactor them to fixtures.
  • Choose a template based GUI framework such as Wicket or GWT instead of Struts. Damn I hate XML files. I didn’t think it’s a good idea when it first came out. But everyone loved it. Now apparently everybody is staying away from it. People! Listen to what Simon says!
  • Avoid bloated DTO if I ever have to use it.
  • Write unit tests instead of functional tests. Make more use of stubs and mock objects.
  • Keep the members and methods sorted. It makes it easier to browse the source code and for version control systems to merge.

Leave a Reply

preload preload preload