Last active
October 8, 2017 04:45
-
-
Save buiquangduc/2d62600e46e31304275d37490e431ea1 to your computer and use it in GitHub Desktop.
Routine name describe everything the routine does
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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