Main Page: Difference between revisions

From ElixirBlocks
Jump to: navigation, search
No edit summary
No edit summary
Line 13: Line 13:
3. Contextualize the code so the reader understands why it's useful.
3. Contextualize the code so the reader understands why it's useful.


To write code encapsulate it in the  '''syntaxhighlight'''  element. At the top of the page click the Edit button to see the innards of the code example below.
To write code you encapsulate it in the  '''syntaxhighlight'''  element. At the top of the page click the Edit button to see the syntax of the code example below.





Revision as of 13:21, 8 March 2023

Welcome to ElixirBlocks.

This is my personal web project where I write small working blocks of useful Elixir Code.

If you want to contribute here are the rules:

1. Write the smallest fully working example possible. Ideally, the reader should be able to copy and paste the code and have a working example quickly.

2. Set assumptions prior to writing. If your code requires perquisite knowledge, be explicit and let the reader know.

3. Contextualize the code so the reader understands why it's useful.

To write code you encapsulate it in the syntaxhighlight element. At the top of the page click the Edit button to see the syntax of the code example below.


def hello_world() do 
  "hello world"
end

LogIn or Create Account