Talk:Evaluate binomial coefficients: Difference between revisions

A Foolish Consistency is the Hobgoblin of Little Minds
(A Foolish Consistency is the Hobgoblin of Little Minds)
Line 73:
: If you really think that your Python code is good, just let it shine in contrast to mine :-)
: Relax and allow others to judge for themselves – they will, anyway. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 08:18, 22 February 2019 (UTC)
==A Foolish Consistency is the Hobgoblin of Little Minds==
Pep 8 starts with the following section:
<pre>
A Foolish Consistency is the Hobgoblin of Little Minds
 
A style guide is about consistency. Consistency with this style guide is important. Consistency within a project is more important. Consistency within one module or function is the most important.
 
However, know when to be inconsistent -- sometimes style guide recommendations just aren't applicable. When in doubt, use your best judgment. Look at other examples and decide what looks best. And don't hesitate to ask!
 
In particular: do not break backwards compatibility just to comply with this PEP!
 
Some other good reasons to ignore a particular guideline:
 
1. When applying the guideline would make the code less readable, even for someone who is used to reading code that follows this PEP.
2. To be consistent with surrounding code that also breaks it (maybe for historic reasons) -- although this is also an opportunity to clean up someone else's mess (in true XP style).
3. Because the code in question predates the introduction of the guideline and there is no other reason to be modifying that code.
4. When the code needs to remain compatible with older versions of Python that don't support the feature recommended by the style guide.
 
</pre>
The comments in the functional examples are consistent they fit in with other code and look good to me. The functional code has comments which the imperative does not, in common with most RC code. Hout has applied his best judgement as to which style is appropriate and looks best for his code. Why is there so much bullying criticism of code which is better than most on RC and has certainly had more thought and care taken than most?--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:27, 22 February 2019 (UTC)
2,172

edits