Don't call it empty, make it empty
Context: game project.
class Card {
var id:String;
// ... some more fields and ctor setting the `id` field
}
class EmptyCard extends Card {
public EmptyCard() {
id = "";
// and so on
}
}
True story. Let’s refactor that.
→ Continue reading