
Readable Code: 읽기 좋은 코드를 작성하는 사고법
박우빈
이 강의를 통해 클린 코드 원칙에 대한 깊은 이해를 하고, 객체 지향 사고 방식에 입각한 깔끔한 코드를 작성할 수 있게 됩니다. 클린 코드와 객체 지향이 궁금한 분, 코드를 정말 잘 짜고 싶은 모든 분들을 위한 강의입니다.
Basic
clean-code, 객체지향, 리팩터링
With this course, you will be able to write clean and clear test code, exactly as it is developed in practice. This lecture is for anyone curious about why test code is necessary and what constitutes good test code.
How to write robust test code that ensures production code quality
How to Write Test Code in Spring & JPA-Based Projects
Test Framework - JUnit5
Mock framework - Mockito
Documentation Automation Tool Using Test Code - Spring REST Docs
Correct test code for your practice
I'll be the first step for you!
Yes! Without test code, it is difficult to ensure a certain level of quality of the application I have created.
How much time and money would it take if people were to manually test each and every new feature added or existing features modified?
You can create more robust applications if you can verify your code as often as you want through automated test code .
The confidence I gain when refactoring is a bonus, because the tests ensure that the code I wrote works as intended!
Even if you know the importance of test code, if the test code is difficult to read or poorly written, it can easily become another source of trouble. If it is difficult to tell what is being tested or if it is complicated and difficult to maintain, you will not touch the test code as time goes by.
In this lecture, we will teach you how to write clean, clear test code that can evolve with changes in production code.
We will cover JUnit5, a Java-based testing framework, and Mockito, a mock testing framework.
We will discuss in detail, with case-by-case examples, what to verify and in what situations it would be good to use mock objects.
We will build an API server based on a layered architecture and discuss how to write test code for each layer.
We'll cover the technology itself, but also the fundamentals of writing clean tests in any language or using any technology.
I have included in the lectures the various questions and related answers I received while working as a reviewer for the Elegant Tech Course and Elegant Tech Camp Pro.
Through lectures, you can naturally come into contact with the topics that are dealt with and considered in actual practice.
Rather than simply covering testing-related topics, it provides a foundation for further growth as a backend developer.
At the end of each section, we provide related core keywords covered in the lecture and keywords for in-depth learning, allowing you to broaden your horizons in development knowledge.
We present key points and several illustrations for each topic to help with understanding, and after explaining the concepts, we proceed with coding through an example project.
It is structured so that you can increase your understanding by following the code from beginning to end.
Q. I don't know much about Spring and JPA yet. Can I still take the course?
I'll give you a brief overview of what's required, but a basic understanding of Spring and JPA is required.
However, it does not cover very complex content, so if you have experience creating APIs with the technology once or twice, it will be sufficient.
I think it would be a good idea to learn together when you come across something you don't know :)
Q. I’m curious about the practical environment!
In order to show you how to develop in practice as closely as possible, we use the IntelliJ Ultimate license by default.
I'm using macOS, but I applied the IntelliJ shortcut plugin for reference for those using other operating systems.
Spring Boot uses version 2.7.7, but you can take the course with a higher version without any problems. For more information, please refer to the open lecture [Introduction to Sample Project & Development Environment Guide]. :)
Q. Can I take any section I want first, regardless of the order?
Since this lecture shows production code and test code that gradually develop within one large flow, I recommend learning sequentially from the previous section. :)
Who is this course right for?
For those who wonder why test code is needed
Those who have learned Spring and JPA but don't know how to write test code.
Everyone who wants to write clean and clear test code
Need to know before starting?
Those who have developed basic APIs based on Spring and JPA at least once!
5,288
Learners
379
Reviews
367
Answers
4.9
Rating
5
Courses
안녕하세요 ☺️
몰입을 즐기는 개발자, 박우빈입니다.
(현) 캐치테이블(와드) 소프트웨어 엔지니어
(전) 우아한형제들 소프트웨어 엔지니어
우아한테크코스 3기, 4기 리뷰어 / 우아한테크캠프pro 1기 리뷰어 / 그 외 다양한 리뷰어 활동
All
48 lectures ∙ (12hr 27min)
Course Materials:
All
271 reviews
4.9
271 reviews
Reviews 11
∙
Average Rating 5.0
5
안녕하세요 강사님! 4개월 차 신입 백엔드 개발자 입니다 RestDocs를 회사에서 사용해야 해서 이를 위해 듣게 되었는데, 결과적으로 테스트가 왜 필요한지 그 필요성을 느꼈고 테스트 코드를 어떻게 짜야 하는지 까지 같이 배울 수 있었습니다. 그런데 제가 가장 만족하는 부분은 현업에서 사용하시는 방식을 함께 알려주시는게 너무 감사했습니다. 물론 그에 따른 질문에 대한 답변도 함께 달아주셔서 너무 감사했구요. 저는 특히 @Transactional(readOnly = true) 를 통해 DB 엔드포인트를 구분할 수 있는점, Service와 Controller간의 RequestDto, ResponseDto를 구분할 수 있는 점 등을 알려주셔서 너무 감사했고, 제 질문에 대한 답변으로 코드의 가독성 보단 애플리케이션의 성능이 더 중요하고, 이를 위해 코드의 가독성이 떨어지게 되는 부분은 어쩔 수 없다고 설명해주신걸 듣고 제 실무 코드를 리팩토링 하기도 했습니다! 아 그리고 guava도 알려주셔서 잘 쓰고 있습니다 ㅎㅎ 정말 RestDocs 배우러 왔다가 덤으로 더 많은걸 얻어가는 강의였습니다. 다시한번 강의 너무 감사드립니다. 추가적으로 강사님의 현업 경험을 공유해 주셔서, 정말 현업을 위한 프로젝트 강의를 만들어 주시면 어떨까 싶습니다. 인프런의 많은 강의들이 학생 또는 취준생을 초점으로 맞춰져 있고, 물론 그런 부분들이 수요가 더 많겠지만, 정말 현업을 대상으로 하여 밀도 높은 고민을 하는 프로젝트성 강의는 없다고 생각합니다. 단순한 학습을 넘어서, 현업의 경험들이 녹아들어간 고급 강의가 나온다면, 또 그걸 강사님이 찍어주신다면 진짜 너무 너무 좋을 것 같습니다. 제 개인적인 바램인데 읽어주셔서 감사합니다^^ 꼭 프로젝트 강의가 아니더라도, 강사님의 다른 강의가 나온다면 무조건 수강할 예정입니다. 개인적으로 개발자는 끊임없이 고민하는 사람들이라고 생각하는데요, 그런 측면에서 강사님과의 생각이 일치한다는 느낌을 받아서 좋았고 (질문에 대한 답변으로), 영광이었습니다. 테스트 코드를 다시 본격적으로 작성할 때 강의를 복습하면서 또 질문 올리겠습니다. 감사합니다.
khd1692 님~! 아니 이렇게 정성스러운 수강평이라니 🥲 RestDocs를 커리큘럼에 넣을까말까 고민했는데 넣길 잘했네요! 다음 강의에 대한 것들은 다방면으로 고민하고 있습니다. ㅎㅎㅎ 진심이 느껴지는 수강평 정말 감사드리고, 앞으로의 학습 여정도 응원하겠습니다~! ☺️
Reviews 4
∙
Average Rating 5.0
5
안녕하세요 6년 차 현업 개발자입니다. 테스트 코드를 대략적으로만 알고 사실 실무에서 활용을 많이 안 했습니다. 제 결론은 경력 있는 개발자들도 테스트 코드를 우아하게 못 짜시는 분도 많습니다. 사실 이 강의 보기 전까지 “귀찮다”라고 생각했습니다 제가 그 개발자 중에 한 명입니다. 하지만 이 강의를 보고 생각이 바꿨습니다. 시니어 개발자이고, 테스트 코드에 대한 두려움이 많던 개발자라 이번 기회에 아주 잘 배웠습니다. 더불어 JPA도 실무에 근접하게 알려주시고 아마 기초가 없다면 “왜?” 저렇게 했을까라고 생각하겠지만 제가 딱 원하는 강의입니다. 감사합니다.
최강개발자님, 상세한 수강평 감사합니다~! "테스트 코드에 대한 생각이 바뀌었다"니 저로서는 최고의 칭찬이네요. 도움이 되셨다니 정말 기쁩니다. 강의한 저도 테스트 코드가 귀찮다는 마음이 올라올 때가 한두번이 아닌데, 왜 양질의 테스트 코드를 계속 고민하고 작성해야 하는지 상기하면서 현업에서도 같이 화이팅하시죠~! 감사합니다 :)
Reviews 2
∙
Average Rating 5.0
5
먼저 감사의 말씀을 전합니다. 강의를 듣는 12시간 동안 테스트를 작성하는 의도와 목적을 생각하는 생산적인 시간을 가질 수 있었습니다. 또한, 테스트에 대한 막연했던 개념들에 대해서 갈피를 잡을 수 있었고, 타협하지 않는 개발 정신을 들이는 데 동기부여 받을 수 있었습니다. 앞으로도 안주하지 않고 배웠던 테스트 코드 지식을 이리저리 응용해보며, 도구에 구애받지 않고 테스트를 작성할 수 있는 개발자로 성장하겠습니다!
lango님! 제 욕심이 많아 이런저런 이야기 하다보니 강의가 꽤 길어졌는데, 제 진심이 잘 전달된 것 같아 기쁘네요. ㅎㅎㅎ 앞으로도 테스트 코드와 함께 든든한 개발자로 같이 성장해갔으면 좋겠습니다. 수강평 남겨주셔서 감사드려요! ☺️
Reviews 3
∙
Average Rating 5.0
5
테스트 관련해서 가려운 곳을 정말 벅벅 긁어주시는 강의 였습니다. 혼자 공부하는데 테스트 코드 관련해서 피드백을 받을 수 있는 곳이 없다보니 IT동아리나 교육프로그램의 프로젝트 레포 여러개를 뒤져가면서 테스트 코드는 어떻게 짜야할지에 대한 고민을 하고 있었는데 강의 통해서 정말 도움이 많이 됐습니다. 이제 방향과 방법을 어느정도 알았으니 스스로 익히고 제것으로 만들어야하는 단계가 남았네요. 좋은 강의 감사드립니다. 강의 준비를 엄청 신경써서 하신게 느껴졌습니다. 감사합니다.
Jason님! 시원~한 수강평 감사합니다~! 도움이 많이 되셨다니 제게는 정말 큰 힘이 되네요. 걸어가시는 학습의 여정 응원하겠습니다. :)
$59.40
Check out other courses by the instructor!
Explore other courses in the same field!