N Best Programming Techniques

From Compsci.ca Wiki

Revision as of 04:01, 9 July 2006 by Cartoon shark (Talk | contribs)
Jump to: navigation, search

Ten best programming techniques you're (probably) not using.


Contents


Pattern matching

Common Lisp (destructuring-bind)

Erlang

-module(example).
-export(hello/1]).
-import(io).

hello("wtd") ->
    io:format("Hello, ~s!~n", [Name]);

hello(Name) ->
    io:format("Get out!!~n", []).

Haskell

O'Caml

SML/NJ

Templates/Generics

C++/D

Java/Scala

O'Caml/Haskell

Regular expressions

Anonymous functions/closures

Personal tools