Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the team is familiar with Functional Programming concepts, I'd actually suggest

  available_servers = (server for server in servers if server.check_availability())
  primary_server = next(available_servers, backup_server)
  deploy_application(primary_server)
which IMHO better conveys the intent to the reader (i.e. focus on "what to do" over "how to do it")


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: