Welcome to ElixirBlocks: Difference between revisions

From ElixirBlocks
Jump to: navigation, search
No edit summary
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Phoenix and Elixir Programming Wiki=
To view all Elixir tutorials and content just click [[Special:AllPages|Explore]]


All documents are written in a wiki style format.


This is my personal web project where I write small working blocks of useful Elixir Code.
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.
 
Although Elixir is a functional language, the process of learning (and much of the community conduct) has felt like a mix between trying to decipher clinical API docs and mulling through an over complicated jumble of unspoken assumptions. The goal of Elixir Blocks is to be a repository of learning material that is more in line with the functional thought process - Simple, small, contextualized, explicit and useful ''Elixir blocks''.
 
This entire site is a work ''in progress''. Many articles are either partially completed or set as placeholders intended for future development.


To contribute follow these guidelines:  
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 can be easily validated.
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.
2. Set assumptions before writing your code. If your code requires prerequisite knowledge, be explicit and inform the reader.
Line 11: Line 20:
3. Provide context for your code so that the reader understands its usefulness.
3. Provide context for your code so that the reader understands its usefulness.


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




<syntaxhighlight>
<source>
def hello_world() do  
def hello_world() do  
   "hello world"
   "hello world"
end
end
</syntaxhighlight>
</source>


[[Special:UserLogin | LogIn or Create Account]]
[[Special:UserLogin | LogIn or Create Account]]

Latest revision as of 16:50, 19 October 2023

Phoenix and Elixir Programming Wiki

To view all Elixir tutorials and content just click Explore

All documents are written in a wiki style format.

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.

Although Elixir is a functional language, the process of learning (and much of the community conduct) has felt like a mix between trying to decipher clinical API docs and mulling through an over complicated jumble of unspoken assumptions. The goal of Elixir Blocks is to be a repository of learning material that is more in line with the functional thought process - Simple, small, contextualized, explicit and useful Elixir blocks.

This entire site is a work in progress. Many articles are either partially completed or set as placeholders intended for future development.

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