2017의 게시물 표시

Publish to my blog (weekly)

ScalaBodyParsers - 2.6.x tags: scala object function parameter synthetic sugar def action = Action { request : Request[AnyContent] => ...}*** 위의 문법을 이해하기 위한 예제scala> object Action { | def apply(request: (String) => Unit) { | request("I am an Action") | } | }defined object Actionscala> def action = Action {request: String => println(request + " then is called by outside")}action: Unitscala> actionI am an Action then is called by outside Kotlin DSL: From Theory to Practice - DZone Java ...

Publish to my blog (weekly)

스칼라 강좌 (25) - 부분 함수 (Partial function) 그 예외 항목이 먼지 알려주는 함수가 isDefinedAt 입니다. PartialFunction 은 아래와 같이 만들며 자동으로 isDefinedAt 이 만들어지는게 특징입니다. [Int, Int] 는 인자로 Int 리턴값으로 Int 를 말합니다. Partial Functions, Scala Partial Function 을 이해하는 쉬운 방법은, 일반 Function 을 Total Function 으로 이해하면 된다. 즉, 일반 Function 이 주어진 인자에 대해 모든 값을 취한다면, Partial Function 은 주어진 타입에 대해서 특정 값만 취할 수 있다. Scala School 의 원문을 첨부하면 A function works for every argument of the defined type. In other words, a function defined as (Int) =>...

Publish to my blog (weekly)

ETL 시대의 종말 - ITWorld Korea 변환이란 미변환 상태의 로우 데이터(raw data)를 정리, 필터링, 정형(reshaping)하고, 요약해 분석에 적합한 상태로 바꾸어놓는 과정을 일컫는다. 사실상 데이터 변환과 쿼리가 하나의 단계로 통합되는 것이다. 그리고 바로 이런 맥락에서 등장한 것이 ELT이다. 대부분의 변환을 적재 단계 바로 직후에 하는 방식을 택하고 있다. 이런 방식은 예전 시스템보다 훨씬 큰 민첩성을 허용하면서도 괜찮은 결과물을 내어 놓고 있기 때문이다. 적어도 현재로써는 이런 식으로 변환이 이뤄지고 있으며 이러한 변환 단계를 가리켜 대문자 T를 사용해 표현했다. 한편 가벼운 변환 작업들, 웨어하우스에서 바로 처리할 수 있는 변환은 쿼리 타임과 동시에 진행되고 있다. 이런 가벼운 변환 단계를 소문자 t를 써서 표현한 것이다. 이 변환 단계에서는 새로운 메트릭스 프로토타입이나 즉흥적인 탐색이 이뤄지므로 쿼리 타임 가공이 제공하는 완전한 유연성이 요구되기 때문이다 우리가 알던 그 ETL은 죽었다. 하지만 EtLTt(?)는 영원할 것이다...

Publish to my blog (weekly)

ScalaActions - 2.6.x It is often useful to mark the request parameter as implicit so it can be implicitly used by other APIs that need it: A controller in Play is nothing more than an object that generates Action values. Controllers are typically defined as classes to take advantage of Dependency Injection . Posted from Diigo . The rest of my favorite links are here .

Publish to my blog (weekly)

♛ Delta Backup react-router/Switch.md at master · ReactTraining/react-router <Switch> is unique in that it renders a route exclusively . In contrast, every <Route> that matches the location renders inclusively . Consider this code: "고객 분석부터 사기 방지까지"··· 머신러닝 최신 성공사례 3가지 - CIO Korea 더 나은 고객 통찰 많은 기업처럼 유에스 뱅크(U.S. Bank)도 상당한 양의 고객 데이터를 수집했다. 그리고 역시 대부분 은행과 마찬가지로 이런 데이터로부터 실행 가능한 통찰을 얻기 위해 노력하고 있다. 예를 들어, 고객이 유에스 뱅크의 웹사이트에서 담보 대출에 관한 정보를 검색했다면 다음에 이 고객이 지점을 방문...

Publish to my blog (weekly)

Facebook just changed the license on React. Here’s a 2-minute explanation why. sue 고소하다. infringing 침해하는 banning 금지하는 litigation 소송 spurred 박차를 가하다. ...

Publish to my blog (weekly)

Where to Fetch Data: componentWillMount vs componentDidMount There are two common places to fetch data:      componentWillMount   componentDidMount In practice, componentDidMount is the best place to put calls to fetch data , for two reasons: Reselect로 React와 Redux 성능 향상시키기 – 불펌 오역 블로그 이것이 의미하는 바는 getItemsWithTotals가 처음 실행될 때는 계산된다는 것이다. 만약 다시 한번 같은 함수가 불렸는데 입력(getItems의 결과)이 변경되지 않았다면, items와 합계에 대해 캐시된 계산 결과를 리턴할 것이다. 만약 아이템이 수정되었다면( 아이템이 추가되거나, 수량이 변경되거나, getItems의 결과에 영향을 주는 어떤 일이든), 함수는 다시 실행될 것이다. Posted from Diigo . The rest of my favorite l...

Publish to my blog (weekly)

8 Best ReactJS Admin Templates For Your Next Project | AZMIND 5. Angle – Bootstrap Admin Template Top 10: Best Premium ReactJS Admin Templates | Our Code World 9. SPIN 8. Beyond Admin 3. Rubix Inspinia Bootstrap 3+ Framework ReactJS Posted from Diigo . The rest of my favorite links are here .

Publish to my blog (weekly)

함수형 setState가 리액트(React)의 미래이다(Functional setState is the future of React) | vobour 보버 - 블로그형 SNS 그의 트윗을 유의해서 보자. 함수형   setState 쓸 때 ... 업데이트는 큐(queue)에 쌓이고 추후에 호출 된 순서대로 실행된다.  따라서 리액트가 객체를 머지(merge)하는 대신 "여러 함수형 setState 호출"를 만나면 (물론 머지 할 객체가 없다) 리액트는 "호출 된 순서대로"함수를 큐에 넣는다.  그 후 리액트는 "큐(queue)"의 각 함수를 호출하여 상태를 업데이트하고 이전 상태, 즉 첫 번째 함수형 setState () 호출 이전 상태를 전달한다 (첫 번째 함수형 setState () 인 경우).  만약  첫 번째 함수형 setState () 호출이 아니라면,  큐 내의 이전의 함수형 setState () 호출로부터 최신 갱신된 상태를 전달한다.  [React.JS] 강좌 5편 컴포넌트의 State 와 Props 사용하기 | VELOPERT.LOG parent 컴포넌트에서 child 컴포넌트로 데이터를 전할 때, props 가 사용됩니다. ...

Publish to my blog (weekly)

Higher-Order Components - React Concretely, a higher-order component is a function that takes a component and returns a new component. Whereas a component transforms props into UI, a higher-order component transforms a component into another component. HOCs are common in third-party React libraries, such as Redux's connect and Relay's createContainer . // This function takes a component...   function withSubscription ( WrappedComponent , selectData ) {   // ...and returns another component...   return class extends React . Component {   constructor ( props ) {   super ( props );   this . handleChange = this . hand...

Publish to my blog (weekly)

Read Me · Redux 상태는 평범한 객체나 배열이면 충분히 다룰 수 있지만 리듀서에서 상태를 변경하지 않는 것을 강력히 권장합니다. 스토어나 리듀서는 애플리케이션 코드가 직접 데이터를 조작하는 대신 액션이라고 불리는 평범한 객체로만 모든 데이터 변화를 묘사하도록 강제합니다. 리듀서에서는 항상 새로운 객체를 반환해야합니다. Flux와 또 다른 중요한 차이점은 Redux는 당신이 결코 데이터의 상태를 바꾸지 않는다고 가정한다는 점입니다 . 순수하지 않은 리듀서 구현은 시간 여행, 기록/재생, 핫 로딩과 같은 개발 지원 기능을 망가뜨립니다. Tutorial: Intro To React - React A component takes in parameters, called props ...