Friday, February 9, 2018

CaffeineScript

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:

4 comments:

  1. Thanks for providing such a great Information, you can see
    Custom Peptide Synthesis
    Peptide Synthesis

    ReplyDelete
  2. Nice blog. Thanks for sharing this userful article.
    We help you to create an Independent Contractor Agreement that sets the terms between your business and a contracted worker.

    ReplyDelete
  3. The very next time I read a blog, I hope that it won’t disappoint me as much as this one. After all, I know it was my choice to read, however I genuinely thought you’d have something useful to talk about. All I hear is a bunch of whining about something that you can fix if you weren’t too busy searching for attention. game light

    ReplyDelete