logo

Quotes About Functions

Every system is built from a domain-specific language designed by the programmers to describe that system. Functions are the verbs of that language, and classes are the nouns.
~ Robert C. Martin
What attributes can we give our functions that will allow a casual reader to intuit the kind of program they live inside?
~ Robert C. Martin
Don't override concrete functions. Concrete functions often require source code dependencies. When you override those functions, you do not eliminate those dependencies—indeed, you inherit them. To manage those dependencies, you should make the function abstract and create multiple implementations.
~ Robert C. Martin
Objects hide their data behind abstractions and expose functions that operate on that data. Data structure expose their data and have no meaningful functions.
~ Robert C. Martin
Encapsulation is broken because all functions in the path of a throw must know about details of that low-level exception. Given that the purpose of exceptions is to allow you to handle errors at a distance, it is a shame that checked exceptions break encapsulation in this way.
~ Robert C. Martin
Procedural code (code using data structures) makes it easy to add new functions without changing the existing data structures. OO code, on the other hand, makes it easy to add new classes without changing existing functions.
~ Robert C. Martin
The complement is also true: Procedural code makes it hard to add new data structures because all the functions must change. OO code makes it hard to add new functions because all the classes must change.
~ Robert C. Martin
The SOLID principles tell us how to arrange our functions and data structures into classes, and how those classes should be interconnected. The use of the word "class" does not imply that these principles are applicable only to object-oriented software. A class is simply a coupled grouping of functions and data. Every software system has such groupings, whether they are called classes or not. The SOLID principles apply to those groupings.
~ Robert C. Martin
ENTITIES Entities encapsulate enterprise-wide Critical Business Rules. An entity can be an object with methods, or it can be a set of data structures and functions. It doesn't matter so long as the entities can be used by many different applications in the enterprise.
~ Robert C. Martin
Software architects are, by virtue of their job description, more focused on the structure of the system than on its features and functions. Architects create an architecture that allows those features and functions to be easily developed, easily modified, and easily extended.
~ Robert C. Martin
Dependent Functions. If one function calls another, they should be vertically close, and the caller should be above the callee, if at all possible.
~ Robert C. Martin
Structured programming forces us to recursively decompose a program into a set of small provable functions. We can then use tests to try to prove those small provable functions incorrect. If such tests fail to prove incorrectness, then we deem the functions to be correct enough for our purposes.
~ Robert C. Martin
Regional and local organs of authority set up on a sovereign basis would only stand in the way of solving these tasks. Hence it was necessary to leave in the hands of the central authority "all functions of importance to the country
~ Robert C. Tucker
A complex assembly is best described first in terms of its substances: its subassembles and parts. Then, next, it is described in terms of its methods: its functions as they occur in sequence.
~ Robert M. Pirsig
institutions such as schools, churches, governments and political organizations of every sort all tended to direct thought for ends other than truth, for the perpetuation of their own functions, and for the control of individuals in the service of these functions.
~ Robert M. Pirsig
He felt that institutions such as schools, churches, governments and political organizations of every sort all tended to direct thought for ends other than truth, for the perpetuation of their own functions, and for the control of individuals in the service of these functions.
~ Robert Pirsig
Scientific physiology has the task of determining the functions of the animal body and deriving them as a necessary consequence from its elementary conditions.
~ Carl Ludwig
If the mother can't afford to hire a nurse, she should pretend she is one herself: "she must look upon herself while performing the functions of a nurse as a professional woman and not as a sentimentalist masquerading under the name of 'Mother.
~ Jennifer Traig
It is one of the most characteristic and destructive developments of our own society that man, becoming more and more of an instrument, transforms reality more and more into something relative to his own interests and functions.
~ Erich Fromm
The article called Dodd a "small, dry, nervous, pedantic man Ã¢â'¬Â¦ whose appearance at diplomatic and social functions inevitably called forth yawning boredom.
~ Erik Larson
The warding off of anxiety is central to the time-binding, action-delaying, and cerebral functions of the human animal.
~ Ernest Becker
Outside of the Constitution we have no legal authority more than private citizens, and within it we have only so much as that instrument gives us. This broad principle limits all our functions and applies to all subjects.
~ Andrew Johnson
It is not at all coincidental that Darwinian psychology has the same difficulty explaining the unity and integration of human reasoning as Darwinian biology has explaining the unity and integration of irreducibly complex functions. Practical and theoretical reasoning is often irreducibly complex. A given argument has several well-matched, interacting reasons, and the removal of any one of them makes the argument break down.
~ Angus Menuge
Even for those who do survive, tumours can affect the functions of the brain and therefore affect a person's personality, preventing many people from working, driving and otherwise leading a normal life.
~ Sheila Hancock