Skip to content

Instantly share code, notes, and snippets.

@teropa
Created January 6, 2014 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teropa/8286237 to your computer and use it in GitHub Desktop.
Save teropa/8286237 to your computer and use it in GitHub Desktop.

On Lisp

Instead of just writing your program in Lisp, you can write your own language on Lisp, and write your program in that.

It is possible to write programs bottom-up in any language, but Lisp is the most natural vehicle for this style of programming. In Lisp, bottom-up design is not a special technique reserved for unusually large or difficult programs. Any substantial program will be written partly in this style. Lisp was meant from the start to be an extensible language. [...]

A good Lisp programmer must know how to take advantage of this possibility. The usual way to do so is by defining a kind of operator called a macro. Mastering macros is one of the most important steps in moving from writing correct Lisp programs to writing beautiful ones. Introductory Lisp books have room for no more than a quick overview of macros: an explanation of what macros are,together with a few examples which hint at the strange and wonderful things you can do with them. [...]

Paul Graham, On Lisp

On Angular

Instead of just writing your app in Angular directives, you can write your own markup language on Angular directives, and write your app in that.

It is possible to write apps bottom-up in any framework, but Angular is the most natural vehicle for this style of programming. In Angular, bottom-up design is not a special technique reserved for unusually large or difficult apps. Any substantial app will be written partly in this style. Angular was meant from the start to be an extensible framework. [...]

A good Angular programmer must know how to take advantage of this possibility. The usual way to do so is by defining a kind of operator called a directive. Mastering directives is one of the most important steps in moving from writing correct Angular apps to writing beautiful ones. Introductory Angular books have room for no more than a quick overview of directives: an explanation of what directives are,together with a few examples which hint at the strange and wonderful things you can do with them. [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment