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

I mostly use comments to explain business rules, and why are they implemented there.

    # High value orders need to be approved before refund   
    # Similar logic is also applied elsewhere, this is here   
    # as a failsafe.   
    if ticketValue > 500:   
      emailCustomerSupport(ticket)   
    else   
      refund


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

Search: