2013-05-21 2 views
8

저는 최근 Chris Granger와 Light Table의 작업에 많은 감명을 받았습니다. 내가 Clojure에 꽤 새로운 해요하지만 싶습니다 이제 http://www.chris-granger.com/2013/01/24/the-ide-as-data/Clojure의 데이터 중심 응용 프로그램 및 객체 구성 이해

:이 질문은 비록 라이트 테이블에 대해 아니지만, 그는 자신의 블로그 게시물에서 "값 같은 IDE를"사용 설명 "BOT"아키텍처에 대한 자세한 태그 행동, 개체 :

(behavior* :read-only 
        :triggers #{:init} 
        :reaction (fn [this] 
          (set-options this {:readOnly "nocursor"}))) 

(object* :notifier 
     :triggers [:notifo.click :notifo.timeout] 
     :behaviors [:remove-on-timeout :on-click-rem!] 
     :init (fn [this] 
       [:ul#notifos 
        (map-bound (partial notifo this) notifos)])) 

(object/tag-behaviors :editor.markdown [:eval-on-change :set-wrap]) 

내가 그 스타일과 그 구성 원리를 사용하여 Clojure의 코드를 찾을 수 있습니다 더 나은이 프로그램의 방법을 탐구?

답변

10

BOT는 Entity-Component-System (ECS) 아키텍처의 라이트 테이블 "독점"풍미처럼 들립니다. wikipedia entry으로 시작한 다음 ActionScript의 코드 예제를 사용하여 this post으로 이동합니다 (우리는 게임 세계에 있습니다).

Clojure 컨텍스트에는 some examples도 있습니다.

관련 문제