E D R , A S I H C RSS

Metaphor


Choose a System Metaphor

Choose a system metaphor to keep the team on the same page by naming classes and methods consistently. What you name your objects is very important for understanding the overall design of the system and code reuse as well. Being able to guess at what something might be named if it already existed and being right is a real time saver. Choose a system of names for your objects that everyone can relate to without specific, hard to earn knowledge about the system. For example the Chrysler payroll system was built as a production line. At Ford car sales were structured as a bill of materials. There is also a metaphor known as the naive metaphor which is based on your domain itself. But don't choose the naive metaphor unless it is simple enough.

μ‹œμŠ€ν…œ 메타포λ₯Ό μ„ μ •ν•˜λ©΄ 같은 νŒ€λ‚΄μ—μ„œ ν΄λž˜μŠ€μ™€ λ©”μ†Œλ“œμ˜ 이름을 μΌκ΄€μ μœΌλ‘œ μ •ν• μˆ˜ μžˆμ–΄ κ³΅κ°λŒ€λ₯Ό ν˜•μ„±ν•  수 μžˆλ‹€. (즉 ν•˜λ‚˜μ˜ 메타포λ₯Ό μ„ μ •ν•˜μ—¬ κ³΅μœ ν•˜λ©΄ λ³€μˆ˜ 이름같은 것을 μ§€μ„λ•Œ 같은 κ΄€μ μœΌλ‘œ μ§–κ²Œ λœλ‹€λŠ” 의미). μ–΄λ–€ 객체에 λŒ€ν•œ 이름을 μ •ν•˜λŠ” 것은 μ‹œμŠ€ν…œ 전체λ₯Ό μ΄ν•΄ν•˜κ±°λ‚˜ μ½”λ“œλ₯Ό μž¬μ‚¬μš©ν•˜λŠ”λ° 맀우 μ€‘μš”ν•˜λ‹€. λ§Œμ•½ 메타포λ₯Ό μ˜¬λ°”λ΄κ²Œ μ •ν•œλ‹€λ©΄, 이름이 μ–΄λ–»κ²Œ μ •ν•΄μ§€λŠ”κ°€λ₯Ό μΆ”μΈ‘ν•  수 있게되고 μ‹€μ œλ‘œ 개발 μ‹œκ°„μ„ 크게 μ ˆκ°μ‹œμΌœμ€λ‹€. ꡬ좕할 객체에 λŒ€ν•œ 이름을 μœ„ν•œ μ‹œμŠ€ν…œ(즉 메타포)λ₯Ό κ²°μ •ν• λ•ŒλŠ” λͺ¨λ“  μ‚¬λžŒμ΄ ν•΄λ‹Ή μ‹œμŠ€ν…œμ— λŒ€ν•˜μ—¬ νŠΉλ³„ν•œ 지식이 없이도 μ‰½κ²Œ μ—°κ΄€λ˜μ–΄ 질수 μžˆλŠ” κ²ƒμœΌλ‘œ 선택해야 ν•œλ‹€. 예λ₯Ό λ“€μ–΄ 크라이슬러의 μ§€λΆˆμ‹œμŠ€ν…œμ€ μƒμ‚°λΌμΈμœΌλ‘œ κ΅¬μΆ•λ˜μ—ˆλ‹€. ν¬λ“œμ˜ μžλ™μ°¨ μ˜μ—…μ‚¬μ›λ“€μ€ BOM(λΆ€ν’ˆν‘œ)으둜 ꡬ쑰화 λ˜μ—ˆλ‹€. κ΅¬μΆ•ν•˜λ €κ³  ν•˜λŠ” λΆ„μ•Όμ˜ 메타포λ₯Ό μ‚¬μš©ν•  μˆ˜λ„ μžˆλ‹€. κ·ΈλŸ¬λ‚˜ μΆ©λΆ„νžˆ λ‹¨μˆœν•˜μ§€ μ•Šλ‹€λ©΄ μ˜μ˜μ— ν•΄λ‹Ήν•˜λŠ” 메타포λ₯Ό μ‚¬μš©ν•˜μ§€λŠ” 말아라.
--> 그런데 μ‹€ 사λ€λ‘œ μ΄ν•΄ν•˜κΈ°κ°€ νž˜λ“œλ„€μš”. 메타포가 ν˜„μž¬ μ‹œμŠ€ν…œμ„ μΆ©λΆ„νžˆ ν¬κ΄„ν•˜μ§€ λͺ»ν•˜λŠ” κ²½μš°κ°€ μƒλ‹Ήνžˆ λ§Žμ„ν„΄λ°...
λ‹΅μ£Όμ‹€λΆ„..

see XperDotOrg
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:45
Processing time 0.0105 sec