분류 전체보기
-
2021.01.07 기록장TIL 2021. 1. 7. 21:01
Done cs문제 풀이 성공 8시 30분 기상 Bad cs만 풀어서 git에 올릴게 없어서 알고리즘 문제를 억지로 풀어서 올렸다. Good 아침에 일어나 운동을 하려했는데 힘들다. 더 일찍 일어나 몸을 풀어야 하나? cs문제를 도움을 받아 풀었다. 쉡 스크립트를 아주 조금 배워서 사용할 수 있게 됬다. 되게 재밌고 신기하다. 리눅스도 조금 배웠다. Feeling 리눅스를 다뤄본적이 없어서 cs문제를 보고 망했다 싶었는데 물어보고 검색해 가면서 하니 됬다. 감도 안잡혔는데 끝 맞춘 자신을 보니 기분이 좋다. 오늘 얻은거 리눅스 우분투 다운로드 쉡스크립트 좋아요공감 공유하기 통계 글 요소
-
메모리,CPU,보수에 관해TIL 2021. 1. 5. 17:39
2의 보수 보수란? 컴퓨터가 뺄셈을 하기 위해 사용하는 개념 -> 컴퓨터는 사칙연산을 Adder를 통해서 하는데 뺄셈을 할 수 없어서 x-y라는 뺄셈을 x+(-y)라는 덧셈으로 바꿔서 처리한다. 쉽게 말하면 보충을 해주는 수를 의미 ex) 1에 대한 10의 보수는 9 , 3에 대한 17의 보수는 14의 개념 1의 보수 구하는 방식은 어렵지만 다르게 생각하면 쉽게 구할 수 있다. ex) 10진수 6을 2진수로 변환하면 (110)이 된다. 이 보다 한 자릿수 더 큰 수는 (1000)이다. 여기서 1을 빼고 (111) 이 수에 (110)을 뺀 값인 (001)이 바로 10의 1의 보수이다. 쉽게 푸는 방법은 0은 1로 1은 0으로 뒤집어 주는 방법이다. 2의 보수 2진수 (110) 보다 한자리 큰 수는 (100..
-
객체지향의 사실과 오해기타/내용 2021. 1. 4. 21:52
객체지향 초보자용 책으로 소개되는 책이다. 일단 처음 부분에서는 술술 읽혔는데 뒷부분에서는 많이 놓쳐서 몇 번이나 다시 읽었다. 전체적으로 설명하는 것은 객체지향적으로 설계를 하는 법을 저술했다. 클래스 관점에서 보지 말고 객체의 관점에서 봐야 한다고 말한다. 우리가 늘 객체지향을 말할 때 클래스를 먼저 꺼내는데 그 점을 지적하고 있다. 객체에는 협력과 역할, 책임이 있다. 협력을 설계할 때는 메시지를 가장 먼저 생각하고 그 메시지를 행할 객체를 정해야 한다. 메시지를 통해 역할을 가진 객체에게 output을 요청하고 메시지를 받으면 책임을 지고 자율적으로 output을 반환해야 한다. 자율적인 책임은 협력을 단순하게 만든다. 그로 인해 대체 가능성을 열어 놓을 수 있다. -> 확장 가능성 이런 설계를 ..
-
-