Erlang Central

Difference between revisions of "Category:Common Idioms"

From ErlangCentral Wiki

m
Line 16: Line 16:
  
 
[[Category:CookBook]]
 
[[Category:CookBook]]
 +
 +
 +
 +
[http://www.casinos-new.com/poker.html Online casino - Poker in casino]
 +
[http://www.casinos-go.com/online-casino-tips/free-online-casino-slot.html free online casino slot]
 +
[http://www.online-casino-wiki.com/index.php/online_casino online casino]
 +
[http://www.casino-games-wiki.com/index.php/play_casino_games play casino games]
 +
[http://www.bestweb-online-casinos.com/best-online-casino/online-casino-free-game.html online casino free game]
 +
[http://www.casino-games-wiki.com/index.php/casino_games_rules casino games rules]
 +
[http://www.fortune-slots.com/ online slots]
 +
[http://www.casino-games-wiki.com/index.php/play_casino_games play casino games]
 +
[http://www.casino-theory.com/online-casino-royale/play-free-online-casino.html play free online casino]
 +
[http://www.slots-wiki.com/index.php/slots_online slots online]

Revision as of 04:05, 24 November 2006

Introduction

A coding idiom is a solution to a commonly occurring programming problem. In a sense all recipes are idioms, but we use the term here for those recipes that apply to many different tasks. In Erlang many patterns, such as object oriented programming, become idioms as we can express these patterns directly in code using functions and macros.

A seminal work in Object Oriented Programming is the so-called "Gang of Four" book, Design Patterns: Elements of Reusable Object-Oriented Software. In the late 1990's, Peter Norvig argued that 16 of the 23 patterns in the Design Patterns book are simplified or eliminated in dynamic languages, such as Lisp or Erlang.

Hopefully, with the aid of the recipes in this section, you will soon be building robust, efficient, and understandable modules in Erlang.

General Concepts

Erlang programs are typically structured and built quite differently than many other languages. The major differences can be summarized in a few bullet points, which I here link to important papers exploring these ideas in more depth.

  • Let It Fail -- The design of reliable systems, considering that the language implementations and runtimes are typically incorrect themselves, requires a new way of approaching software design. See also Hardcoding_Expectations.
  • Everything Is An Erlang Process -- Model the natural parts of a problem as independent, communicating processes. In short, "Think Massively Parallel".
  • Trust No One -- Erlang processes share no data, and only interact by exchanging Erlang messages.


Online casino - Poker in casino free online casino slot online casino play casino games online casino free game casino games rules online slots play casino games play free online casino slots online

Pages in category ‘Common Idioms’

The following 4 pages are in this category, out of 4 total.