Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/2d62600e46e31304275d37490e431ea1 to your computer and use it in GitHub Desktop.
Save buiquangduc/2d62600e46e31304275d37490e431ea1 to your computer and use it in GitHub Desktop.
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