Trifork Blog

Posts Tagged ‘Best Practices’

Developing apps compatible with all iOS devices

November 25th, 2010 by
(https://blog.trifork.com/2010/11/25/developing-apps-compatible-with-all-ios-devices/)

As you might already know, iOS is the operating system that runs on iPhones, iPod Touches and iPads. The first iOS device was the iPhone and was released in January, 2007. Back then the operating system was called “iPhone OS”. Since that time more devices were released running iPhone OS than just the iPhone. This is why a while ago Apple announced that the operating system would from that point on be called “iOS” instead.

When you’re developing an app for iOS you most probably are focusing on just one specific device with a specific version of the operating system. For example you’re developing for iPhones running iOS 4.2. If your only target audience is iPhone users then this is good enough. But you could make you’re app support other devices and iOS versions as well. This would extend the target audience for your app. As it turns out, it isn’t much of a hassle to do so!
Read the rest of this entry »

Social sites, lessons learned

September 1st, 2010 by
(https://blog.trifork.com/2010/09/01/social-sites-lessons-learned/)

As JTeam is a good match for companies starting a social website, we have had the pleasure of building a couple in the past years. This article summarizes some of the lessons we learned. If you plan to start a social website (any other new site for that matter), take notice.

Contents

  • Go live immediately
  • Focus on as little use cases as possible
  • Be viral
  • Forget pixel perfect, improve as you go
  • Choose the right technology

Read the rest of this entry »

Measuring code quality with Sonar

February 26th, 2010 by
(https://blog.trifork.com/2010/02/26/measuring-code-quality-with-sonar/)

sonar-blackonwhite At JTeam, we continuously strive for good quality code. The reason is very simple: bad quality code slows down the development process. The small investment pays out in even the simplest of projects.

Measuring code quality is not a matter of a single metric. Instead, software quality has many aspects, some of which can be captured in metrics. Those metrics can be nicely assembled within a single application, which gives a nice overview of the state of an application: Sonar.

Read the rest of this entry »

Free Java hosting with the Google App Engine

February 4th, 2010 by
(https://blog.trifork.com/2010/02/04/free-java-hosting-with-the-google-app-engine/)

Lately I have been looking into and playing around with the Google App Engine. In this post I want to give a little introduction to the Google App Engine, why it can be interesting and how to work with it.
Read the rest of this entry »

Wicket do’s and don’ts

September 16th, 2009 by
(https://blog.trifork.com/2009/09/16/wicket-dos-and-donts/)

In the past 2 years I worked in, and visited many development teams to help them implement divers Wicket applications. Some applications were mostly for visualizing stuff, some were full of forms, and some were full of Ajax tricks. This article contains some of the lessons I had to teach, or had to learn myself. I’ll present them as do’s and dont’s. They are:

  • Do use models
  • Don’t use an Ajax library without intimate knowledge of the library
  • Do make sure you understand the repeaters for high performance sites
  • Don’t overuse inheritance
  • Do keep markup in sync with the component code
  • Don’t try to do authorization from a servlet filter
  • Do take your time to override key Wicket features

Read the rest of this entry »

Easier mocking with Mockito

August 13th, 2009 by
(https://blog.trifork.com/2009/08/13/easier-mocking-with-mockito/)

If you have been happily using Easymock for the past years, this blog post is for you. Because you need to upgrade to Mockito, the new kid on the block in the mocking universe. Why bother about what mocking framework you’re using to create your unittests? Because it will improve you tests, make them more expressive, and help you write better code. Read on if you want to know more.  Read the rest of this entry »

iPhone as the guide to Lowlands Paradise

July 24th, 2009 by
(https://blog.trifork.com/2009/07/24/iphone-as-the-guide-to-lowlands-paradise/)

Recently I have become interested in developing apps for the iPhone. I am about to finish my first app called “LLowGuide”, which is supposed to be a guide for a Dutch music festival called Lowlands. Lowlands will take place on the 21st, 22nd and 23rd of august 2009. As of the moment of writing, I submitted a very early version of the app into the iPhone’s App Store. But it has been in review for 8 days now, with no indication of when the review will be finished. I am starting to doubt whether I am able to release the final version before the festival starts. But in any case, it was a great iPhone programming exercise.

While developing I gathered some good practices, which could be applied in other apps as well. I want to share with you a few practices which I found particularly useful while developing the app. I hope that this way you get excited about iPhone programming (if you weren’t already) and get motivated to write your own app (if you didn’t already).
Read the rest of this entry »

Testing the database layer

July 1st, 2009 by
(https://blog.trifork.com/2009/07/01/testing-the-database-layer/)

The database is an integral part of many applications and writing queries is often hard. For that reason I have always written integration tests for the data access objects or DAO’s that I use to access the database. The way I write my DAO tests has changed a lot over the years and in this post I’d like to document the ways in which it has changed and why.

Read the rest of this entry »