내 코드, 과연 해외에서 통할까?
아무도 제대로 리뷰해주지 않는 나의 코드는 과연 어떤 수준일까 궁금하지 않나요?
객체 지향, 클린 코드, SOLID 원칙, 디자인 패턴.. 들어는 봤는데 어떻게 적용해야 하는지 모르겠나요?
연차는 늘어가는데, 내 실력은 계속 예전 그대로인 것 같나요?
호주 소프트웨어 회사 시니어가 해주는 코드 리뷰
실력을 늘리는 가장 좋은 방법은 내가 작성한 코드로 하는 코드 리뷰입니다.
주어진 과제에 대해 멘티가 사전에 직접 코드를 작성하고, 멘토와 같이 이를 더 좋은 코드로 바꿔나가며 설계 원칙을 적용시켜봅니다.
한국과 호주에서 15년 현업으로 일하며 경험한 노하우로 레벨에 맞게 적용할 수 있는 개선점들을 알려드립니다.
진행 방식
멘토링 신청 전에 sam.lee.code.review@gmail.com으로 메일을 주시면 과제를 보내드립니다.
(결제할 필요 없이 먼저 과제를 받아보세요)
원활한 리뷰를 위해 꼭 완료된 과제를 메일로 다시 제출한 후에 멘토링을 신청해주세요.
진행은 Google Meet에서 제 화면을 공유하여 진행하고, 완료 후에는 같이 개선한 코드를 보내드립니다.
게시글
질문&답변
에러부분이 나서 진행이 안되네요... 의존성 문제인거 같기도한데
Did you create a class or interface for MemberRepository?
- 0
- 3
- 1.7K
질문&답변
안녕하세요
It seems return type of the method findByid(Long id) should be Optional(Member).
- 0
- 2
- 559
질문&답변
직접 만든 라이브러리의 경우 어떻게 배포 되는건가요?
We normally never include any built files - jar, war - in the source code repository like GitHub. Instead, we have a separate repository (e.g. Nexus) where the jar file is uploaded, so projects can just declare the dependency (e.g. pom.xml for maven) to download it.
- 0
- 2
- 1K
질문&답변
MemberService에 @Transactional 붙이는 이유
Though it is just a guess, in the pure jdbc example you might explicitly open/close transaction in the code. On JPA, same functionality is controlled by the Transactional annotation.
- 0
- 2
- 721
질문&답변
안녕하세요
API can be used by any agent - web, mobile or other systems. Reason it uses restApi is to simply return data only, as opposed to normal controller returns html element.
- 0
- 2
- 323
질문&답변
sql 에러
Please attach the error log.
- 0
- 2
- 1.1K
질문&답변
강사님 질문 있습니다!
In the first line, you can only access methods/variables defined in the Reportable interface. In the second line, you can access methods/variables defined in the FactoryCam class which could be larger than Reportable.
- 0
- 2
- 558
질문&답변
세션은 브라우저가 종료되면 sessionid를 제거한대요
When browser closes, the session id set in the ‘browser cookie’ is removed. It does not mean that session in the server is removed. However, after the certain amount of time, the session in the server will be also deleted as it wont be called anymore and hit the session max lifetime.
- 0
- 1
- 1.4K
질문&답변
상품 주문 시 주문 내역에 값이 들어가 있지 않습니다
Though I need more context to oroperly tackle this question, it is highly likely that orderSearch condition is set in a way query does not return the orders. Please check what is set and what is supposed to set in the orderSearch parameter.
- 0
- 2
- 621
질문&답변
MemberRepositoryTest 중 SQLGrammarException 에러 발생
2023-02-06 11:19:45.628 ERROR 10204 --- [ main] o.h.engine.jdbc.spi.SqlExceptionHelper : Sequence "HIBERNATE_SEQUENCE" not found; SQL statement:The line above is the root cause of the problem. It seems the sequence is not created, so code errors out while expecting it to exist.
- 0
- 2
- 1K