Be consistent.
About this quote
- What does it mean?
- Consistency in code style and behavior is important.
- In plain terms
- Keep things uniform.
- What can you take from it?
- Follow consistent conventions.
Where it applies
Putting it to work
Questions to consider
- When should you break consistency for clarity?
- What balance works best?
Another view
Strict consistency can stifle useful flexibility.
More from Larry Wall
/* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. */
Permalink to quote #264 Does the same as the system call of that name. If you don't know what it does, don't worry about it.
Permalink to quote #266 Even if you aren't in doubt, consider the mental welfare of the person who has to maintain the code after you, and who will probably put parens in the wrong pl…
Permalink to quote #267
Related quotes
The problem with being consistent is that there are lots of ways to be consistent, and they're all inconsistent with each other.
Larry WallLarry Wall quote #289 We've been remarkably consistent, haven't lost a game and we have played stylish football. We have entertained people who just love football.
Arsene WengerArsene Wenger quote #2 You want it in one line? Does it have to fit in 80 columns? :-)
Larry WallLarry Wall quote #27