short code techniques implemented without dependency injection