Skip to content

190412 log를 기록하는 함수 생성#95

Merged
crongro merged 1 commit intocode-squad:Soorealbutnicefrom
soojinroh:step2-2
Apr 16, 2019
Merged

190412 log를 기록하는 함수 생성#95
crongro merged 1 commit intocode-squad:Soorealbutnicefrom
soojinroh:step2-2

Conversation

@soojinroh
Copy link
Copy Markdown

Michelle & 수리 step2-2 코드리뷰 반영

  1. string 문자열로 받았던 로그 기록을 배열에 담는 함수 생성
  2. 로그 기록을 print하는 기존의 함수를 foreach를 이용하여 배열의 원소를 출력하는 것으로 수정

@crongro
Copy link
Copy Markdown
Contributor

crongro commented Apr 16, 2019

커밋로그에 날짜를 넣을 필요는 없습니다. 커밋정보에 이미 들어가 있어요

Copy link
Copy Markdown
Contributor

@crongro crongro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰내용 참고하시고요.
머지할게요!

let utils = require("./STEP2_2_utils")
let log = "<계산수행순서 > \n";
let result = 0;
let logList = ["<계산 수행 순서> \n"];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

데이터를 보관할때는 순수한 데이터를 보관하는 것이 좋아요.
그래야 데이터를 다양하게 활용할 수가 있겠죠.
그래서 loglist가 출력순서를 저장한다고 하여도, 출력용 메시지를 담는 건 좋지 않아보이네요.

@crongro crongro merged commit 5386748 into code-squad:Soorealbutnice Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants