728x90
반응형
페어 프로그래밍은 애자일 개발 방법론 중의 하나
페어 코딩은 두 명의 프로그래머가 하나의 컴퓨터에서 협업하여 소프트웨어를 개발하는 방법이다. 이 방식에서 두 프로그래머 중 하나는 "드라이버"로 코드를 작성하고, 다른 한 명은 "네비게이터"로 코드를 검토하고 지침을 제공한다. 페어 코딩은 두 명의 개발자가 서로의 아이디어를 공유하고 지식을 나누며 효과적으로 문제를 해결하고 품질 높은 코드를 작성할 수 있도록 돕는다. 이 방식은 프로그래머 간의 의사 소통을 촉진하고 팀 내 협력을 강화하며, 버그를 빨리 발견하고 수정할 수 있도록 도와준다. 페어 코딩은 효율적인 지식 전달과 팀의 생산성 향상을 위해 많이 사용되는 소프트웨어 개발 기법 중 하나다.

customer_list = []
index = 0
while True:
customer = input('입력: 고객 등록[i], 이전 고객 조회 [p], 다음 고객 조회[n], 현재 고객 조회[h], 회원 수정[u], 회원 삭제[d], 종료[q] : ')
if customer == 'i':
name = input("이름을 입력해주세요. :")
while True:
gender = input("성별을 F 또는 M으로 입력해주세요. :")
if gender == 'F' or gender=='M':
break
while True:
email = input("이메일을 입력해주세요. :")
if not email.isdigit():
break
while True:
birth = input("생년월일을 입력해주세요. :")
if birth.isdigit():
break
user_dic = dict()
print(name, gender, email, birth)
user_dic['name']=name
user_dic['gender']=gender
user_dic['email']=email
user_dic['birth']=int(birth)
customer_list.append(user_dic)
print(customer_list)
elif customer == 'd':
customer_list.remove(customer_list[index])
index = 0
print(customer_list)
elif customer == 'p':
print("이전 고객 조회")
if index == 0:
print(customer_list[index])
elif index != 0:
index -= 1
print(customer_list[index])
elif customer == 'n':
print("다음 고객 조회")
if index + 1 == len(customer_list):
print(customer_list[index])
elif index != len(customer_list):
index += 1
print(customer_list[index])
elif customer == 'h':
print("현재 고객 조회")
print(customer_list[index])
elif customer == 'u':
while True:
print(f"현재 선택된 회원 정보{customer_list[index]}")
modify = input("이름:n, 성별:g, 이메일:e, 생년월일:b, 수정종료:u")
if modify == "n":
customer_update = input("변경하실 내용을 입력해주세요.")
customer_list[index]["name"] = customer_update
if modify == "g":
customer_update = input("변경하실 내용을 입력해주세요.")
customer_list[index]["gender"] = customer_update
if modify == "e":
customer_update = input("변경하실 내용을 입력해주세요.")
customer_list[index]["email"] = customer_update
if modify == "b":
customer_update = input("변경하실 내용을 입력해주세요.")
customer_list[index]["birth"] = customer_update
if modify == "u":
print("수정을 마칩니다.")
break
elif customer == 'q':
print("종료합니다.")
break
우리 조원 5명이서 페어 코딩한 결과물..
728x90
반응형