라벨이 공부시키기인 게시물 표시

객체지향 프로그래밍 - 관계의 의미, composite

 오늘은 객체지향 프로그래밍에서 클래스 간의 관계에 대해서 이야기해보겠습니다. 객체지향은 뭘까요? 객체를 생각하며 프로그래밍하는 방법이라고 이해합시다. 보다 철학적이고 복잡한 설명은 접어둡니다. 여기서는 객체라는 아이디어를 중심으로 자유롭게 창작하는 방법을 이야기합니다. 객체(object)는 어떤 설계도에서 탄생한 구체적인 소스코드입니다. 요즘 인기있는 파이썬으로 설명을 하려고 합니다. 여러분에게 주사위를 생각하라는 과제가 주어졌다고 합시다. 그럼 주사위는 어떻게 설계할까를 생각합니다. 먼저 주사위는 ‘주사위’라는 구체적인 사물입니다. class 주사위:   pass 주사위에 아무것도 적지 않아서 일단 pass라고 했습니다. 주사위는 여섯 개의 면이 있고 각각의 면에 숫자가 적혀져 있는 사물입니다. 이렇게 주사위의 존재 실체를 생각합니다. 즉, 주사위가 탄생하면 여섯 개의 면도 같이 태어납니다. 이 면들을 다음과 같이 했다고 합시다. class 측면:   def __init__(self,number):     self.number=number 가령 1부터 6까지 쓰여진 측면 6개는 다음과 같이 태어납니다. 측면1=측면(1) 측면2=측면(2) 측면3=측면(3) 측면4=측면(4) 측면5=측면(5) 측면6=측면(6) 이제 주사위와 측면의 관계를 말하고자 합니다. 자, 여러분 위에 쓰인 코드를 잘 보면 이상하지 않습니까? 주사위의 측면은 어떻게 존재할까요? 주사위가 없이 측면1=측면(1)과 같이 존재할 수 있을까요? 주사위의 측면은 주사위의 본질적인 것이므로 주사위와 주사위의 측면의 존재적 차이가 없다고 말할 수 있습니다. 즉, 숫자 6개가 없는 주사위는 주사위가 아니고 주사위에 붙어 있지 않은 측면은 상상하기 어렵습니다. 이처럼 존재적으로 강한 의존서을 가진다는 말은 주사위가 태어날 때 측면 6개도 함께 태어나고 주사위가 사라질 때 이들의 의미도 사라진다는 뜻입니다. 따라서 class 주사위는, class 주사위: ...

참고문헌 스타일에 관하여

사회과학 공부하는 사람은 반드시 알아야 할 : https://guides.library.uq.edu.au/referencing/apa6/reference-list 중앙대 도서관이 정리를 잘 해 두었으니 참고: https://researchguide.cau.ac.kr/citation/APA 한국 논문들은 APA를 바탕으로 각자 조금씩 다른 방식을 취한다. 참고로 경영학연구의 경우에는 ( 김수곤 , 1978) (Beyer, 1991, p.150) 와 같이 본문 내 인용을 사용하고 김수곤 (1978), 임금과 노사관계 , 서울 , 한국개발연구원 . -> 한국 도서 손태원 (1992), “ 공정보상에 대한 인식과 태도 ,” 황일청 ( 편 ), 한국사회의 불평등과 형평 , 서울 , 나남 , pp.209-250. -> 한국 도서 내 챕터 이필상 (1994), “ 통화신용정책이 증권시장에 미치는 영향에 관한 연구 ,” 경영학연구 , 23(1), pp.189-215. -> 한국 저널 홍길동 , " 기사 제목 ", 머니투데이 , 2010.3.30., Available at http://xyz.com/page. -> 한국 웹페이지 O'Reilly, C., A. Chatman, and D. F. Caldwell(1991), “People and Organizational Culture: Profile Comparison Approach to Assessing Person-Organization Fit,” Academy of Management Journal , 34(2), pp.487-516. -> 외국 저널 Organ, D. W.(1988), Organizational Citizenship Behavior: The “Good Soldier” Syndrome , Lexington Books, New York. -> 외국 책 Rousseau, D....

가위 바위 보

See the Pen 가위바위보 by 김태경 ( @drtagkim ) on CodePen .

[결과] 숫자로 말하기

분석결과를 정리하기 위한 표현들입니다. [1] Regarding the effect of lagged channel-specific information stock, our results indicate that information stock accumulated through direct type-in (0.61) is the most effective in increasing search utility , followed by search engines (0.34) . [2] Although display/referral is the least popular channel according to Table 5 , information stock accumulated via this channel is still quite effective in making a website the entry site. [3] Direct channel (0.39) is the most effective channel in enticing consumers to visit beyond the entry site , followed by search (0.25) and email (0.24). [4] Table 2 outlines the statistics of user activity for mobile adopters in the first weeks. [5] As is evident from Table 2, women , on average, send far fewer votes (23.99 versus 30.97 for men). [6] In addition, note that women are far less likely to initiate explicit contact via sending a message (1.87 unique conversations initiated by women versus 4.7 conversa...

[초록] 논문의 기여

논문의 기여점을 강조하기 #MISQ, 2018, VL 42, IS 1, 1-23 Our research contributes to the Information Systems (IS) outsourcing literature by providing a semiotic view on the design of outsourcing work supported by digital technologies. ... The results are highly significant for outsourcing theory and practice , not least since they suggest that the use of semiotics and visuals for re-representation may enable suppliers to reformulate outsourcing work and the expertise needed to deliver services. #MISQ, 2018, VL 42, IS 1, 45-62 Our results suggest that owner-governance should be considered because of increasing informedness. #MISQ, 2018, VL 42, IS 1, 83-10 These findings offer implications for platform designers on how to motivate user contributions and build sustainable online communities. #MISQ, 2018, VL 42, IS 1, 143-164 To the best of our knowledge, this study is among the first to analyze publisher website decision making in sharing user information with third parties.

[초록] 논의의 세부 내용

논문의 세부 내용입니다. #MISQ, 2018, VL 42, IS 1, 25-43 The empirical analysis suggests that IT infrastructure flexibility affects M&A through two key pathways : (1) a flexible IT infrastructure facilitates the development of business flexibility that provides the responsiveness to seize M&A opportunities and make acquisitions , and (2) a flexible IT infrastructure facilitates the development of post-M&A IT integration capability that provides the control to integrate the IT and business resources of the acquired firm and realize the economic benefits from M&A. #MISQ, 2018, VL 42, IS 1, 45-62 Interestingly, we find a region where owner-governance offers a higher probability of takeover but delegated-governance offers higher shareholder surplus. Under delegated-governance, the board endogenously sets an entrenchment level that is always greater than the entrenchment level preferred by the shareholders and increasing informedness reduces the probability of a takeover. #MISQ...

[초록] 논문의 핵심 내용

초록에서 논문의 핵심 내용을 소개합니다. #MISQ, 2010, VL 34, IS 2, 233-259 In this study , we follow a perspective paradigm based on the strategic management literature to define IS strategy as an organizational perspective on the investment in, deployment, use, and management of IS. #MISQ, 2010, VL 34, IS 2, 261-279 By synthesizing relevant literature from cognitive psychology, marketing, and e-commerce, this study identifies key contextual factors that are conducive for creating brand positioning online via SERPs. #MISQ, 2010, VL 34, IS 4, 689-710 This paper argues that emotions are important drivers of behaviors and examines how emotions experienced early in the implementation of new IT applications relate to IT use. We develop a framework that classifies emotions into four distinct types: challenge, achievement, loss, and deterrence emotions. #MISQ, 2010, VL 34, IS 4, 757-778 Accordingly, we propose a training program based on two theories : the universal constructive instructional theor...

[초록] 논문의 목적

영어 논문을 써야 하는 경영대학원 학생들을 위한 글입니다. 매번 조금씩 살펴보겠습니다. 이번 시간에는 초록(Abstract)입니다. 그 중에서도 논문의 목적(필요성, 정당성)을 밝히는 부분입니다. #MISQ, 1990, VL 14, IS 1, 15-25 The purpose of this field study was to learn more about the experiences of managers in introducing information technology in organizations. #MISQ, 1990, VL 14 IS 1, 27-42 These efforts are evolving from very specific, academically oriented efforts, such as medical diagnosis, to more managerially oriented corporate issues. Unfortunately, many proponents of these systems may be overlooking possible legal ramifications related to both the development and use of these systems. #MISQ, 1990, VL 14 IS 1, 45-60 As information systems (IS) managers and computer security administrators attempt to address what may be a serious and persistent problem of computer abuse in organizations, two important aspects must be considered: discovery of abuse incidents and discipline of perpetrators. This field study examines how IS managers address th...

왜 프로그래밍인가

요즘 다양한 경영학 전공자들이 파이썬에 도전하는 것을 보면 참 감회가 새롭습니다. 그런데 목적이 없으면 배우기 어렵습니다, 프로그래밍 언어는. 코딩에 익숙해져라! 파이썬을 배우기가 어렵다 생각한다면 당신은 코딩 초보자. 먼저 코딩 환경에 익숙해지세요. 제가 생각하는 최선의 방법은 Javascript와 Web Browser로 코딩을 익히는 것입니다. 사칙연산은 무조건 Javascript! MS워드 대신 무조건 HTML, CSS, Javascript! 3개월만 공부해보세요.

KAIST MIM 2017 팀 성과물 제출/팀 평가/상호 평가

발표 팀 평가 아래 링크를 클릭하여 팀 발표 성과를 평가해주시기를 바랍니다. 개인별로 합니다. 발표를 잘 기록했다가 평가해주십시오. 발표 순서를 특히 잘 기억해두시기 바랍니다. 제출하기(클릭) 팀 성과물 제출 아래 링크를 클릭하여 팀 성과물을 제출해주시기를 바랍니다. 팀장이 제출하면 됩니다. 제출하기(클릭) 팀 구성원 상호 평가 아래 링크를 클릭하여 팀 구성원의 상호 평가를 수행해 주시기를 바랍니다. 개인별로 합니다. 제출하기(클릭)

KAIST 2017 MIM 수업 Take-home Exam 공지

수강생 여러분~ 시험 링크를 공개합니다. 링크 방문해서 읽어보시고 홧팅! 시험제출 링크(클릭)

Node.js Express 사용하여 RESTful API 만들기 (1)

얼마나 참고할런지 알 수는 없지만... KAIST 학생들을 위해서 Express 활용하여 RESTful API를 만드는 초간단 방법을 소개합니다. 일단 node.js 설치했다고 합시다. 폴더 구조 만들기 우선 서버가 돌아갈 폴더를 하나 만듭니다. test-server라고 합시다. 이 폴더의 하위에 package.json을 만들기 위해 다음과 같이 npm을 실행합니다. $ npm init $ npm install fs express ejs body-parser express-session --save 그리고 폴더를 세 개 만듭니다. 각각의 이름은 public, router, views입니다. Server.js 파일 만들기 이제 test-server에 server.js 파일을 만들고 다음과 같이 씁니다. /* External Moduels */ var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var session = require('express-session'); var fs = require("fs") /* Environment Setting */ app.set('views', __dirname + '/views'); app.set('view engine', 'ejs'); app.engine('html', require('ejs').renderFile); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended:true})); app.use(session({  secret: 'yourkey', //MODIFY THIS  ...

Node.js의 package.json 작성하기

Node.js에서 패키지 설치를 어떻게 하느냐구요? npm을 활용한다는 것은 알려드렸죠? 간단해요. $ npm init 이렇게 하면 package.json 이 만들어져요. 이제, 패키지를 설치하려면? $ npm install 끝이에요. 이왕 패키지 이야기를 했으니 좀 더 이야기해볼까요? {   "name": "my test app",   "version": "1.0.0",   "description": "test app",   "main": "server.js",   "dependencies": {},   "devDependencies": {},   "scripts": {     "test": "echo \"Error: no test specified\" && exit 1",     "start": "node server.js"   },   "repository": {     "url": ""   }   "author": "Taekyung Kim",   "license": "MIT" } 대충 이런 모양이에요. package.json은. 중요한 것은 노란색으로 제가 칠한 부분이에요. 저 곳에 설치하려는 모듈 이름을 적어주면 되요. 다음과 같이 변경되겠죠?   "devDependencies": {     "express": "",     "ejs": "",     "bod...

어떤 세미나를 준비하며...

R을 좋아하는 사람들은 그래프 하면 ggplot을 떠올린다. 웹을 좀 써야 한다면 역시 python으로 그림을 그려보겠지. 데이터를 전공한 사람으로서 사실 그래프를 그리면 BI 툴을 써야 한다고 본다. 무엇보다 빠르고 쉬우니까 ㅎㅎㅎㅎㅎㅎ 그래서 강의에서나 평소나 MS Power BI를 애용했다. 그런데... 얼마전 알게 된 사실. 그냥 장난감이구나 생각했던 Tableau Public이 훌륭하게 커서... 많은 사람들이 즐겨 쓰게 되었다는 점. 아... 시간이 참으로도 많이 흘렀구나... 데이터를 다루는 사람들마다 관점에 차이는 있을 수 있다. 내 생각에는 (예나 지금이나) 데이터 사이즈를 두고 뭔가 특별하다라고 주장하는 일은 놀랍다. 기술의 발전은 큰 데이터를 잘 다루는 방향으로 이뤄졌다. 그것은 과거 30년 전이나 지금이나 마찬가지다. 잘 다룬다는 것은 데이터를 어떻게 다루는지 몰라도 된다는 뜻이다. 2년 전 경기도 어떤 대학에서 세미나를 할 때 한 교수님이 나에게 질문을 던졌다. "Hadoop의 MapReduce는 어떻게 하는 것인가?" 적지 않게 당황했는데 왜냐하면 학부에서 빅데이터 수업을 어떻게 가르칠 것인가를 다루는 시간이었기 때문이다. 4년 전 싱가포르 국립대학에서 데이터를 다룰 때 나는 Hadoop과 기타 프로그램을 빌드업했다. 서버를 설치하고 일일이 컴파일 수행하며 여러 작은 컴퓨터를 엮어(당시에 1TB HDD가 엄청 비쌌다!) 10TB 하둡을 구축했다. 그리고 쿼리를 디자인하고 각각 Java API를 만들어 JSON 형태로 데이터를 다운로드 받을 수 있도록 했다. 그로부터 몇 달 뒤, AWS로 Hadoop을 쓸 수 있게 되었고 Java API 대신 AWS의 API로 데이터를 받았고 또한 몇 달 뒤, IBM의 CouchDB를 쓰면서 Java는 빠이빠이 되었다. 그로부터 몇 달 뒤, Google의 Cloud API 플랫폼에 데이터를 적재하고 Big Query를 쓰면서 이제는 다시 SQL로 복귀했다. 지난...

MIM 수업 학생들을 위한 FTP 사이트 오픈

xftp로 접속가능 SFTP Port:22 Host: api.rmaster.net ID와 PW는 수업시간에 공개함

카카오 LAMP 이용한 초간단 챗봇 만들기

카카오 플러스친구 API 만들기 PHP를 이용해서 간단한 플러스친구 챗봇을 만들어보자. https://center-pf.kakao.com/login  로긴하고 플러스 친구를 만든다. 스마트 채팅 > API형 LAMP 설정 DigitalOcean에서 계정을 만든다면 LAMP 환경을 구축한다. /etc/apache2/apache2.conf 수정하여 php extensions을 감추자. <Directory "/var/www/html/">     Options FollowSymLinks MultiViews     AllowOverride none     Order allow,deny     Allow from all </Directory> PHP 기본적으로 두 개의 파일이 필요하다. keyboard.php, message.php Keyboard.php <?php echo <<< EOD {     "type" : "buttons",     "buttons" : ["시작하기", "도움말"] } EOD; ?> Message.php <?php function call_msg($msg) {     $output = '{"message":{"text":"'.$msg.'"}}';     return $output; } $data = json_decode(file_get_contents('php://input'), true); $content = $data["content"]; if( $content == "시작하기" ) {     echo call_msg("시작해볼까?"); } //...

가설을 전개하기 위한 기본적인 논리

Statement Logic의 몇 가지 예를 들어볼까? 예제 문장 아인슈타인은 광전자 효과에 대한 설명 또는 특수상대성 이론으로 노벨상을 받았다. 그런데 아인슈타인은 광전자 효과에 대한 설명으로 노벨상을 수상하였다. 그러므로 아인슈타인은 특수상대성 이론으로 노벨상을 받지 않았다. 다음과 같은 논리 A: 아인슈타인은 광전자 효과에 대한 설명으로 노벨상을 받았다. B: 아인슈타인은 특수상대성 이론으로 노벨상을 받았다. A | B 전제 A      전제 -> ~B 결론 진리표 A     B     A | B     A     ~B T     T      T            T      F T     F      T            T       T F     T      T           F     F F     F      F          F     T 결론 전제가 참이면서 결론이 거짓인 경우가 나온다. 따라서 논증은 부당하다. 정리 combination이 가능한 경우를 두고 전제가 참이면 결론도 참이어야 한다. 연습문제 [1] 애리조나 호 또는 미주리 호는 일본의 진주만 공격 때 격침되지 않았다. 따라서애리조나 호 또는 미주리 호가 일본의 진주만 공격 때 격침...

16장 동영상입니다

경영학원론2016, 조 과제

날짜 챕터 요약 비디오 사례 5 월 11 일 16 장 5 월 18 일 17 장 5 월 25 일 18 장 6 월 1 일 19 장

경영학원론 비디오 사례 17장