> For the complete documentation index, see [llms.txt](https://jinwon-yoon.gitbook.io/jinonys-blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jinwon-yoon.gitbook.io/jinonys-blog/daily-log/2023.07.13.md).

# 2023.07.13

## 할일 및 한일&#x20;

* [x] 알고리즘 문제 풀이&#x20;
* [x] Wasabi 프로젝트 구현 마무리&#x20;
* [x] 대규모 시스템 설계 2장(개략적인 규모 측정) 학습 및 정리&#x20;
* [x] 모던 자바 인 액션 15장(CompletableFuture와 리액티브 프로그래밍 컨셉 기초) 학습 및 정리&#x20;

## 경험 및 배움&#x20;

### 알고리즘 문제 풀이&#x20;

오늘도 역시 알고리즘 문제 풀이부터 시작!

오늘 푼 문제는 쌍으로 이루어져있어서, 누가봐도 `Map` 을 사용하는 문제였다.

덕분에 몇 일 전에 학습했던 `getOrDefault` 메서드도 유용하게 사용!

하나 알아가는건 `Map` 을 루프 돌릴 때 한 가지 방법은 `Map.Entry<>` 를 사용해서 돌린다는 것👍🏻

{% embed url="<https://github.com/Jinwon-Dev/programmers/commit/87e78a606a3ccfdcbc7055e1e41e41d769bd8024>" %}

### Wasabi 프로젝트 구현 마무리&#x20;

또한, 와사비 프로젝트 게시글 작성 기능 부분 개발을 마무리했다.

테스트 코드도 작성하고, 같은 팀 동료의 조언을 받아 이미지를 저장하는 반복문도 `Stream` 으로 변경하고.. 기능은 단순하지만 자세하게 하려니 끝이 없네.

그리고 여태 내가 테스트를 비효율적으로 짜고 있다는 것을 알았다.

**모두 `@SpringBootTest` 를 붙여 테스트하는 것이 아닌, 컨트롤러단을 테스트할때는 `@WebMvcTest` 로 웹 레이어만 띄워 테스트하고.. 서비스단을 테스트할 때는 Mock으로 가짜 객체를 만들어 테스트하고.. 레퍼지토리단을 테스트할 때는 `@DataJpaTest` 를 통해 테스트하고..**

캡스톤에도 적용해보자!

{% embed url="<https://github.com/Wisoft-Wasabi/wasabi-backend/tree/feature/WA-38>" %}

### 대규모 시스템 설계 2장(개략적인 규모 측정) 학습 및 정리&#x20;

또한, 대규모 시스템 설계 2장 학습!

이번 단원은 짧지만, 여러 단어들을 알아갈 수 있었다.

QPS.. DAU 등..

{% embed url="<https://jinwonyoon.notion.site/Chapter-2-49ad12b41ab94bd1b3f88f427b33340d?pvs=4>" %}

### 모던 자바 인 액션 15장(CompletableFuture와 리액티브 프로그래밍 컨셉 기초) 학습 및 정리&#x20;

마무리로는 모던 자바 인 액션 15장을 학습했다.

**`Future` .. `CompletableFuture` .. `Flow` 등..**

`CompletableFuture` 은 비동기를 적용해보고 싶어서 꼭 학습해보고 싶었던 개념인데, 너무 어려웠다.

16장에서 예시를 보며 학습해보면 이해가 가지 않을까.. 기대해본다.

꼭 숙지해서 실제 프로젝트에 적용해봐야지.

{% embed url="<https://jinwonyoon.notion.site/Chapter-15-CompletableFuture-aed8c43be0684deeabd0daa0f5f13c49?pvs=4>" %}

## 개선 및 목표&#x20;

* 내일은 회의나 다른 스케쥴이 없다!&#x20;
* 개인 공부에 올인하자.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jinwon-yoon.gitbook.io/jinonys-blog/daily-log/2023.07.13.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
