본문 바로가기

분류 전체보기

(989)
함수형 자바스크립트 : Frisby 교수의 Composable Functional JavaScript https://egghead.io/courses/professor-frisby-introduces-composable-functional-javascript Professor Frisby Introduces Composable Functional JavaScript This course teaches the ubiquitous abstractions for modeling pure functional programs. Functional languages have adopted these algebraic constructs across the board as a way to compose applications in a principled way. We can do the same in JavaScri..
React 디자인 패턴 : 관심사의 분리 (Seperation Of Concern) https://dmitripavlutin.com/orthogonal-react-components/ The Benefits of Orthogonal React Components How to design React components that are easy to change, maintain, and test? Strive to orthogonal React components. dmitripavlutin.com Orthogonal components A와 B가 직교하는 경우 A를 변경해도 B는 변경되지 않으며 그 반대의 경우도 마찬가지입니다. 그것이 직교성(통계적 무연관)의 개념입니다. 아래 그림에서 FM/AM 라디오 방송국 선택과 볼륨 조절은 서로 영향을 주면 안됩니다. 한 컴포넌트의 변경이 다른 ..
Recoil, Redux. 상태관리 라이브러리의 Selector 개념 Redux의 셀렉터 Deriving Data with Selectors | Redux Usage > Redux Logic > Selectors: deriving data from the Redux state redux.js.org 모든 앱의 상태를 싱글턴 기반으로 추적하는 개념인 Redux는 탑 다운 스타일로 상태 그래프의 해당 상태를 컴포넌트와 연결한다. 즉, 기본적으로 상태가 변경되면 전부 변경되지만, 그렇게 되면 최적화가 어려울 것이기에, 일부 데이터만 구독하도록 최적화한다. https://redux.js.org/usage/deriving-data-selectors 반대로 contextAPI는 컴포넌트 하단으로 데이터를 전달하기 위한 도구이다. 즉 props drilling을 피하기 위한 도구지, ..
resizable table(row, col) with React Unfortunately it's not an optimized solution. If you have any ideas for refactoring and optimization, feel free to contact me. note : This table's height is not fixed, so scrollTop is calculated with document.documentElement HTML 삽입 미리보기할 수 없는 소스 reference https://adamlynch.com/flexible-data-tables-with-css-grid/ Flexible data tables with CSS Grid Now that we've launched, I can finally talk abou..
Recoil 실전 패턴 : 상태의 계층화와 분리 원문 보기 Recoil Patterns: Hierarchic & Separation This article will discuss practical patterns in Recoil. It’s an advance topic that goes beyond Recoil basics, so we won’t spend time… medium.com 이 아티클에서는 Recoil의 실전 패턴에 대해 설명합니다. * 공식 Recoil YouTube * Recoil documentation 이 기사는 WeKnow에서 제공했으며 REDUX에서 Recoil로 이동하는 동안 아키텍처 작업에서 얻은 통찰들을 보여줍니다. 글로벌 상태를 분리된 자율적인 상태로 유지하며, 높은 레벨의 추상화, 합성을 통해 그 상태들을 조합하는 방..
reveal.js - 웹 기술로 PPT(발표자료)를 만들어보자! https://revealjs.com/ The HTML presentation framework | reveal.js Documentation and demos for the open source reveal.js HTML presentation framework. revealjs.com 개발자에게 ppt(발표자료) 제작 프로그램 (키노트, 파워포인트)로 발표자료를 만드는 작업은 여간 고된 일이 아닙니다. 만약 발표자료를 css와 html, 때때로 js를 활용하여 만든다면 어떨까요? 특히 개발자들이 문서 작성 시애용하는 markdown을 이용하면, 더 쉽게 문서를 만들 수 있을 것입니다. reveal.js를 이용해 웹 기술로 간단한 발표자료를 만들어 보겠습니다. 기본 설정하기 해당 튜토리얼은 코드 샌드..
[Recoil]Jotai의 구현으로 알아보는 atom 종속성 추적 https://jotai.org/docs/guides/core-internals Core Internals — Jotai A simplified version of the core implementation jotai.org Jotai는 Recoil에서 영감을 받은 원자 모델을 사용하여 React 상태 관리에 대한 상향식 접근 방식을 취합니다. 원자를 결합하여 상태를 구축할 수 있으며 원자 종속성을 기반으로 렌더링이 최적화됩니다. 이는 React 컨텍스트의 추가 리렌더링 문제를 해결하고 메모이제이션 기술의 필요성을 제거합니다. Jotai 핵심 구현의 완전한 예가 아니라 단순화된 버전입니다. (Recoil의 코드베이스는 React와 연계하여 최적화 하기 위한 코드가 너무 많이 들어가 쉽게 분석할 수가 없습..
Recoil Pattern : Selector Composition (셀렉터 조합하기) https://learnrecoil.com/video/selector-composition Selector Composition - Free Recoil.js Course We create a new selectorFamily that composes functionality on top of our existing editProperty selectorFamily. learnrecoil.com 기존 editProperty selectorFamily 위에 기능을 구성하는 새로운 selectorFamily를 만듭니다. Motivation 리코일은 각 아톰, 셀렉터의 getter, setter를 조합해 상위 getter setter를 조합하여 파생 상태를 만든다. (selector는 반드시 아톰으로부터 파생..