Friday, February 9, 2018


I believe less is more. It is the first principle of design and the foundation of just about every good programming practice: DRYKISSZEN (YAGNI)single responsibility principleinterface segregation, etc... That's why I wrote CaffeineScript. This info-graphic shows the result:

CaffeineScript, with the help of ArtSuite, takes 3x less code to write this complete implementation of Tic-Tac-Toe. In general, CaffeineScript is 2.5-3x more efficient than JSX, TypeScript or JavaScript. Imagine seeing 3x as much code on screen at once. Imagine having 3x less code to write. Imagine having 3x less code to change when you need to refactor. Imagine having 3x less code to debug.
TicTacToe source:
TicTacToe live:
Of course, just because CaffeineScript can reduce code-size by 3x doesn't mean you'll be a full 3x faster. CaffeineScript cannot reduce the essential logic of your code. However, it dramatically cuts back the noise so you can see your core logic clearly.
More reading: