There are only two hard things in Computer Science:

cache invalidation and naming things - Phil Karlton

1. λͺ…ν™•ν•œ 이름 μ‚¬μš©ν•˜κΈ°

class SP {
	List<String> it = [];
	double tp = 0.0;
}

κ³Όλ„ν•œ μΆ•μ•½μœΌλ‘œ λ„€μ΄λ°ν•˜μ§€ 말 것

class ShoppingCart {
	List<String> items = [];
	double totalPrice = 0.0;
}

λͺ…ν™•ν•œ λ‹¨μ–΄λ‘œ ν•œ λˆˆμ— μ•Œμ•„λ³Ό 수 있게

2. ν‚€μ›Œλ“œμ—μ„œ μ œκ³΅ν•΄μ£ΌλŠ” 정보λ₯Ό μ€‘λ³΅μœΌλ‘œ μ‚¬μš©ν•˜μ§€ μ•ŠκΈ°

interface class IRepository {}
Base class BEntity {}

이미 interface ν‚€μ›Œλ“œ μ‚¬μš©μ€‘

interface class Repository {}
Base class Entity {}

ν‚€μ›Œλ“œ μ •λ³΄λŠ” μ΄λ¦„μ—μ„œ μ œμ™Έ

3. μ •ν™•ν•œ 상속 관계λ₯Ό λ³΄μ—¬μ£ΌλŠ” λͺ…μΉ­ μ‚¬μš©ν•˜κΈ°

Base class BaseDog {}
class Dog extends BaseDog {}

X