Programming style question