Welcome to ElixirBlocks: Difference between revisions

From ElixirBlocks
Jump to: navigation, search
No edit summary
No edit summary
Line 7: Line 7:
This is my personal web project where I document blocks of Elixir and Phoenix code that I find useful.
This is my personal web project where I document blocks of Elixir and Phoenix code that I find useful.


I try to be as '''''direct and minimalistic'''''  in my examples as possible.
I try to be as '''''direct and minimalistic'''''  in my examples as possible.  
 


To contribute follow these guidelines:  
To contribute follow these guidelines:  

Revision as of 16:21, 21 June 2023

Explore

This is my personal web project where I document blocks of Elixir and Phoenix code that I find useful.

I try to be as direct and minimalistic in my examples as possible.

To contribute follow these guidelines:

1. Write small, fully working code examples. Ideally, the reader should be able to copy and paste the code and have it working quickly. For larger code examples, explicitly break them up into smaller examples so that each block is easily validated.

2. Set assumptions before writing your code. If your code requires prerequisite knowledge, be explicit and inform the reader.

3. Provide context for your code so that the reader understands its usefulness.

To write code you encapsulate it in the source element. Click the Edit button to see the syntax of the code example below.


def hello_world() do 
  "hello world"
end

LogIn or Create Account