Declarative Models in CoffeeScript

    _   _              _    ___  _            _     _                  _
   /_\ | |_ __  ___ __| |_ / _ \| |__ ___ ___| |___| |_ ___   _ _  ___| |_
  / _ \| | '  \/ _ (_-<  _| (_) | '_ (_-</ _ \ / -_)  _/ -_)_| ' \/ -_)  _|
 /_/ \_\_|_|_|_\___/__/\__|\___/|_.__/__/\___/_\___|\__\___(_)_||_\___|\__|
                                                   In Glorious ASCII-VISION
Home

Summary: I've come across a nice way of using CoffeeScript class syntax to make declarative models, examples below. A more complete implementation is in a Gist here.

2011-11-26 Sat Declarative Models in CoffeeScript

I've been playing with a nice way of defining models in a sort of declarative way in CoffeeScript, this is what I have so far:

Date: 2015-04-04 20:46:47 BST

Author: Thomas Parslow

Org version 7.7 with Emacs version 24

Validate XHTML 1.0