DEV
-
프로미스와 관련된 흔한 실수들DEV/Javascript 2022. 2. 21. 14:35
https://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html We have a problem with promises Clarification: for these examples, I’m assuming that both doSomething() and doSomethingElse() return promises, and that those promises represent something done outside of the JavaScript event loop (e.g. IndexedDB, network, setTimeout), which is why they pouchdb.com 프로미스 사용법이 헷갈리는 사람들이 읽어보면 좋을듯! MD..
-
Object.assign, spread operator, deep mergingDEV/Javascript 2022. 2. 7. 18:01
리액트 컴포넌트 설정을 유저가 변경할 수 있게 만들려면, 우선 기본 설정 값을 객체로 제공하고 프로퍼티로 커스텀 설정 값을 받아들여 두 객체를 합쳐야 한다. 조건은 1) 커스텀 설정 값이 무조건 우선으로 오게 하고, 2) 그 값이 없는 경우에는 기본 설정 값을 사용한다. 간단한 객체 구조인 경우, 즉 깊이가 1인 객체인 경우 그냥 spread 연산자나 Object.assign()으로 간단하게 해결이 가능하다. spread 연산자와 Object.assign의 차이점은 MDN에 나와 있듯이, Object.assign은 setter 함수를 트리거하는 반면 spread 연산자는 그렇지 않다는 점이다. Setter 함수는 속성 값 설정이 일어날 때마다 호출할 함수를 속성에 묶는다(bind). 둘 사이의 간단한 성..
-
개발자가 갖추어야 할 9가지 기술DEV 2022. 1. 4. 18:23
개발자 커리어에 대한 좋은 영상. 21분쯤에 보면 개발자를 What / Why / How / What If? 의 4가지 유형으로 나눌 수 있다고 하신다. 뭘 만들지 얘기하는 사람이 "What", 근데 왜 하냐고 딴지 거는 사람들이 "Why", 어떻게 할 것인지 기술적인 측면에 집중하는 사람들이 "How", 그리고 엉뚱하게 딴 거 만들자고 이야기하는 사람이 "What If?"에 속한다. 나는 Why는 좀 약하고 What / How / What If를 다 갖췄는데 "What If"식의 작업을 제일 좋아한다. 영상에서 Why 형의 개발자가 미국에 엄청 많다고 하는데 나랑 같이 일하는 미국분이 딱 이런 사람이다. 이런 유형이 팀에 있어야 기존에 존재하는 프로덕트의 문제점을 개선하여 새롭게 접근하는 것이 가능한 ..
-
rsync 유틸리티DEV 2022. 1. 4. 16:40
https://unix.stackexchange.com/questions/149965/how-to-copy-merge-two-directories How to copy-merge two directories? I have two directories images and images2 with this structure in Linux: /images/ad /images/fe /images/foo ... and other 4000 folders and the other is like: /images2/ad /images2/fe / unix.stackexchange.com 테스트 파일이 컴포넌트와 같이 있는게 아니라, 'src/components', 'test/components' 이렇게 따로 나눠진 상황일..
-
공부해야 하는 것들DEV 2021. 11. 6. 12:17
Postman에서 발표한 2021년 API 보고서를 읽다가, 문득 다음 기술 스택 중에 상위 스택들에 대해 별로 아는 바가 없다는 것을 깨달았다. https://www.postman.com/state-of-api/api-technologies/#api-technologies 2021 State of the API Report | API Technologies Learn about the API technologies used by developers worldwide. www.postman.com 내년에는 이러한 것들에 집중하기! (과연 가능할까? ㅎㅎㅎ)
-
리액트에서 제공하는 React.Children 유틸리티DEV/Javascript 2021. 10. 26. 11:28
https://www.reactenlightenment.com/basic-react-components/6.8.html 6.7 Accessing Children Components/Nodes · React Enlightenment [DRAFT] Accessing Children Components/Nodes If a component, when used, contains child components or React nodes inside of the component (e.g., or test ) these React node or component instances can be accessed by using this.props.children. In the code below the Par www...
-
zsh pluginsDEV 2021. 9. 17. 11:46
zsh 플러그인이 상당히 다양하다는 것을 이제서야 알았다. 맨날 git alias global로 설정한 과거의 나 반성해... 플러그인 설정 방법은 간단하다. .zshrc 파일을 열고 plugins=()에다가 원하는 플러그인 추가하고 저장한 다음, 1) source 명령어로 설정 파일을 실행하던가, 아니면 2) 터미널 재실행 하면 된다. 둘 중 하나만 해도 플러그인 설정이 완료된다. https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/vscode GitHub - ohmyzsh/ohmyzsh: 🙃 A delightful community-driven (with 1800+ contributors) framework for managing your zsh conf..
-
Introduction to Self-driving cars PrerequisitesDEV/Automotive 2021. 9. 8. 11:17
https://www.coursera.org/learn/intro-self-driving-cars/home/welcome Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera Learn online and earn valuable credentials from top universities like Yale, Michigan, Stanford, and leading companies like Google and IBM. Join Coursera for free and transform your career with degrees, certificates, Specializations, & MOOCs in d..