Inheritance is the idea that one class is a specialization of another class. The purpose of inheritance is to create simpler code by defining a base class that specifies common elements of two or more...
Building software implies various stages of planning, preparation and execution that vary in kind and degree depending on what's being built. [...]Building a four-foot tower requires a steady hand, a...
Managers of programming projects aren’t always aware that certain programmingissues are matters of religion. If you’re a manager and you try to require compliancewith certain programming practices, yo...
Eighty percent of the errors are found in 20 percent of a project's classes or routines
Don't use a boolean variable as a status variable. Use an enumerated type instead. It's common to add a new state to a status variable, and adding a new type to an enumerated type requires a mere reco...
Error processing is turning out to be one of the thorniest problems of modern computer science, and you can't afford to deal with it haphazardly. Some people have estimated that as much as 90 percent...
When executives ask for an estimate, they’re often asking for a commitment or for a plan to meet a target.
Copy and paste is a design error
Containment is the simple idea that a class contains a primitive data element or object. A lot more is written about inheritance than about containment, but that's because inheritance is more tricky a...
It's better to strive for a good solution and avoid disaster rather than trying to find the best solution
When in doubt, use brute force.
Too much of anything is bad, but too much whiskey is just enough. — Mark Twain
Usually more time is spent in making good-looking presentation slides than in improving the quality of the software.
Quicksort a few times, but what are the odds that your custom version will be fully correct on the first try?
It's done by creating 25 times as many dirty tests
Summary of Design Heuristics Here's a summary of major design heuristics: More alarming, the same programmer is quite capable of doing the same task himself in two or three ways, sometimes unconscious...
Good code is its own best documentation. As you're about to add a comment, ask yourself, 'How can I improve the code so that this comment isn't needed?' Improve the code and then document it to make i...
The first conclusion is that we now know with certainty that peopleware issues have more impact on software productivity and software quality than any other factor.
Another good reason to create a class is to model an abstract object—an object that isn't a concrete, real-world object but that provides an abstraction of other concrete objects. A good example is th...
On their way to America, the Pilgrims argued about the best maximum length for a routine. After arguing about it for the entire trip, they arrived at Plymouth Rock and started to draft the Mayflower C...
Showing 1 to 20 of 100 results