-
Notifications
You must be signed in to change notification settings - Fork 6
What is CaffeineScript Good For?
Shane Brinkman-Davis Delamore edited this page Mar 16, 2018
·
7 revisions
Related: Language Comparison, Benefits and Highlights
While CaffeineScript is an excellent choice for any JavaScript project, there are certain areas where it particularly excels:
- React with CaffeineScript and Declarative Programming
- NodeJS with CaffeineScript with 90% reduction in module-specific-code
CaffeineScript
import &ArtSuite
class Login extends Component
render: ->
Element
TextElement
text: :username
size: ww: 1 hch: 1
TextInputElement
placeholder: "" enter username here
size: ww: 1 hch: 1
JavaScript
let {Component, Element, TextElement, TextInputElement} = require('art-suite');
class Login extends Component {
render() {
return Element(
TextElement({ text: "username", size: { ww: 1, hch: 1 } }),
TextInputElement({
placeholder: "enter username here",
size: { ww: 1, hch: 1 }
})
);
}
}
- Home
- Get Started
- Benefits
- Highlights
- Productivity by Design
- CaffeineScript Design
- What is CaffeineScript Good For?
- Get the most out of JavaScript
- Language Comparison
- CHANGELOG
- Blocks Instead of Brackets
- Binary Line-Starts
- Everything Returns a Value
- Streamlined Modules
- Scopes and Variables
- Optional Commas
- Semantics
- Ambiguities