개발팀내에서 underscore.js 스터디를 하고 있는데, Collection 함수들에 대해서 유형별로 정리하면서 진행을 했다. 아래는 그 결과이다.
filter ( [a,b,c] -> [b,c] )
_.filter
_.where
_.reject
_.sample
_.first
_.last
_.initial
_.rest
_.compact
_.without
_.union
_.intersection
_.difference
_.uniq
map ( [a,b,c] -> [A,B,C] )
_.each
_.map
_.invoke
_.pluck
_.sortBy
_.groupBy
_.indexBy
_.shuffle
_.toArray
_.partition
_.flatten
_.zip
_.unzip
reduce ( [a,b,c] -> abc )
_.reduce
_.reduceRight
_.find
_.findWhere
_.every
_.some
_.contains
_.max
_.min
_.countBy
_.sample
_.size
_.first
_.last
_.indexOf
_.lastIndexOf
_.sortedIndex
_.findIndex
_.findLastIndex
object ( [] -> {} )
_.object
range ( 3 -> [1,2,3] )
_.range
레이블이 functional programming인 게시물을 표시합니다. 모든 게시물 표시
레이블이 functional programming인 게시물을 표시합니다. 모든 게시물 표시
2017년 1월 15일 일요일
2016년 12월 13일 화요일
Underscore.js 스터디 계획
자주 사용하게 되는 Underscore.js에 대한 스터디를 시작하게 되어, 그 계획을 짧게 적어본다. 다양한 API에 대해서 인지하고, 사용법을 숙지하고, Functional Programming에 대해서 간단히 감을 잡는 시간이 될 것 같다. 그리고 사용법만 보지 않고 소스코드도 같이 보면 좋을 것 같다.
1. 첫째날
- Introduction : 같이 읽어 보고 어떤 느낌의 라이브러리인지 공감한다.
- Collections : 이때 filter, map, reduce 유형으로 크게 나누고, 각 함수마다 어느 유형에 속하는지 이야기해본다.
2. 둘쨰날
- Arrays
- Objects
1. 첫째날
- Introduction : 같이 읽어 보고 어떤 느낌의 라이브러리인지 공감한다.
- Collections : 이때 filter, map, reduce 유형으로 크게 나누고, 각 함수마다 어느 유형에 속하는지 이야기해본다.
2. 둘쨰날
- Arrays
- Objects
- OOP Style
- Chaining
3. 셋째날
- Functions
- Utility
4. 넷째날
- Change Log
- Links : Underscore.string, Underscore.java
- 다른 라이브러리 : Lodash
- Functions
- Utility
4. 넷째날
- Change Log
- Links : Underscore.string, Underscore.java
- 다른 라이브러리 : Lodash
피드 구독하기:
글 (Atom)