Instantly share code, notes, and snippets.

Embed
What would you like to do?
Routine name describe everything the routine does
<?php
// In this example, we will named a routine that computes report total and opens an output file
// This is not an adequate name for the routine
ComputeReportTotals();
// This is an adequate name, but is too long and silly
ComputeReportTotalsAndOpenOutputFile();
// We need to separate to two routine like this
ComputeReportTotals();
OpenOutputFile();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment