

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


1
2
3
String sublimalMessage = “Trust us, we’re engineers”; // not SublimalMessage or sublimal_Message
double getCell(int rowIndex, int columnIndex);
void showBlueScreenOfDeath();
4
double x = 6.25; // very non-descriptive double lunchPrice = 6.25; // much better double localBoyzMenuItem7aWithSteakAndChickenAndVegeta blesSubstitutedForMacSaladPrice = 6.25; // way too descriptive
5
6
public class VideoRental { // This fine is in dollars private static final double PENALTY_PER_DAY = 2; double computeLateFee(int numLateDays) { double fee = numLateDays * PENALTY_PER_DAY; // not numLateDays * 2 return fee; } }
7
9
10
11
// This is nice and readable public PizzaOrderFrame() { createToppingsPanel(); createSizePanel(); createDeliveryOptionsPanel(); } (^12)