먼저, 시국이 얼른 해결 되길 바램합니다. (불안해서 잠도 잘 안오는)
챗지피티로 업무 유틸리티들을 작성 하고 있습니다.
얘가 작고 일반적인 함수는 그럭저럭 만드는데,
조금 긴 코드(1000라인 기준) 주고 변경 하라 그러면
아주 거짓말의 파티가 펼쳐 집니다.
1. 수정할 필요 없는 코드 수정 하고 있다고 말한 다음 실제로는 잠들기
(예를 들어 UI 쪽 수정 요청 했는데 DB 저장쪽 유심히 보고 있다고 여러 번 얘기함. 그러나 결과는...)
2. 멀쩡한 코드 분석하다가 배탈 나기 ( 정상 코드 처리하다 급 에러 메시지 )
3. 챗지피티가 전체 코드 다 수정한다고 시간 몇 분 달라고 해 놓고는 그 결과는
부분 소스 약간 주고 다했다고 우기기 (이 거 몇 번 당하면 1시간 순삭)
4. 작은 함수인데 매번 이리 저리 고치지만 전혀 정상적인 결과가 안나오는 무한 수정 상태
(파이썬 모드에서 내내 안되다가 (다른 엔진인) o1 에서 바로 되기도)
복잡도가 높지 않은 코드인데도, 계속 실수하고 있는 걸 보면
ai를 잘 쓰는 전문가가 되는 건 쉽지 않겠구나 하는 생각이 듭니다.
(요구사항 목록 주고 질답 잘하면 금방 짠다는 분들 노하우가 부럽네요.)
얼른 정국이 안정화 되기를...
코드를 챗지피티에 직접 넣어서 물어보게 되면 토큰의 한계로 중간에 짤리게 되어 원하시는 결과가 안 나올 수 있습니다.
커서 같은 IDE는 코드베이스에 있는 코드를 적당한 선에서 자른 뒤에 토큰에 맞춰 질문을 하고 답을 받아내기에 조금은 원하는 결과를 낼 수 있게 해주더군요. 이건 제가 사용하는 룰인데 도움이 될까 하여 공유해봅니다.
1. All responses must be written in **Korean**.
- If an explanation in English is needed, provide a Korean explanation first, followed by the code.
2. If the code is too long, **prioritize showing only the parts that need modification**.
- Instead of providing the entire code, highlight only the necessary changes.
- Clearly indicate the essential code blocks that require modification using **explicit comments**.
3. If the entire code needs modification:
- Modify only the necessary parts whenever possible.
- If providing the entire code is not feasible, **only provide the most critical parts**.
- To prevent `modification failure` errors, suggest step-by-step changes rather than an entire block at once.
4. Maintain code readability and style while ensuring **optimized modifications**.
- Remove unnecessary repetition and suggest more efficient solutions.
- Include comments explaining code modifications to enhance clarity.
5. If the user makes additional requests, **keep the context from previous interactions**.
- Ensure that modifications align with the previous requests.
- Preserve code structure while implementing additional features.
6. If code adjustments are required based on the execution environment, **consider the user’s setup**.
- When modifying build-related code (e.g., PyInstaller, Nuitka), ensure compatibility with the specified environment.
7. All code blocks must be provided in **Markdown format (` ```python ` )**.
- If an example is given, make sure it is in an executable format.
물론... 챗지피티를 코딩 외에도 사용하신다면 좀 다른 문제겠네요...
한번 써보시죠
그래서 그걸 편하게 하기위해 llm통합형 ide를 써야 된다 생각합니다.
커서를 쓰게 되면 부분을 지정해서 수정하도록 할 수 있고 수정전으로 돌아가는 기능도 있고요. 코딩 할 때 지켜야할 룰 설정, 에이전트 기능으로 더 깊은 분석을 한후 코딩을 하게 할 수 있습니다.
한방에 다 되실겁니다
그냥 답변 빠른 부하직원 하나 더 생기는 건데...
상사가 부하직원의 답변을 잘 캐치하지 못한다면 의미가 없는 것처럼
현재의 AI도 그정도 수준이지 않을까 하는 생각이 들더라구요