Skip to content

Commit

Permalink
makes fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcarlisle committed Feb 18, 2017
1 parent f3a9723 commit e41275c
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions README.md
Expand Up @@ -42,7 +42,6 @@ so "**real-time**" web apps are "_easy_"
(_or at least **easier** than many other languages!_)
+ ***Zero-Downtime Deployment*** is a _reality_ without any DevOps gymnastics!!!

***

## *What*?

Expand Down Expand Up @@ -85,7 +84,6 @@ https://www.sitepoint.com/an-interview-with-elixir-creator-jose-valim/
+ What was "_wrong_" with just writing directly in Erlang? read:
http://www.unlimitednovelty.com/2011/07/trouble-with-erlang-or-erlang-is-ghetto.html

***

## *How*?

Expand All @@ -110,7 +108,7 @@ wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo
`sudo apt-get install esl-erlang`
+ **_Install_ Elixir**: `sudo apt-get install elixir`

## *Handy Tips*
## Handy Tips

### Interactive Terminal
After installing Elixir you can open the interactive shell by typing `iex`.
Expand All @@ -131,10 +129,9 @@ type `i` followed by the value name:

![elixir-i](https://cloud.githubusercontent.com/assets/14013616/20860322/3c01d984-b96d-11e6-8cc4-a46c8657f5b4.png)

***


## *Basic Types*
## Basic Types

Elixir has 7 basic types:

Expand Down Expand Up @@ -177,7 +174,7 @@ iex> rem 10, 3
1
```

### *Booleans*
### Booleans

Elixir supports `true` and `false` as booleans.

Expand Down Expand Up @@ -331,10 +328,9 @@ A long story short, for large lists or tuples:

> source: http://stackoverflow.com/questions/31192923/lists-vs-tuples-what-to-use-and-when
***


## *Functions and Modules*
## Functions and Modules

### Anonymous functions

Expand Down Expand Up @@ -413,10 +409,9 @@ will be available (provided that `iex` is started
iex> Math.sum(1, 2)
3
```
***


## *Generating your first Elixir project*
## Generating your first Elixir project

To get started with your first Elixir project you need to make use of the [Mix](https://hexdocs.pm/mix/Mix.html) build tool that comes straight out of the box. Mix allows you to do a number of things including:

Expand Down Expand Up @@ -659,7 +654,7 @@ end

#### Pipe Operator

What if we wanted to call some of our functions in succession to another. Let's create a function that creates a zoo, randomises it and then returns a selected number of animals to go and see:
What if we wanted to call some of our functions in succession to another? Let's create a function that creates a zoo, randomises it and then returns a selected number of animals to go and see:

```elixir
@doc """
Expand All @@ -686,10 +681,9 @@ end
Now that we have the functionality for our module, let's take a look at the documentation
that we have written and how we can maximise its use.

***


## *Documentation*
## Documentation

When we created a new project with mix, it created a file for us called `mix.exs`
which is referred to as the 'MixFile'. This file holds information about our
Expand Down Expand Up @@ -748,10 +742,9 @@ This is an incredibly powerful tool that comes baked-in with elixir. It means th
other developers who are joining the project can be brought up to speed incredibly
quickly!

***


## *Testing*
## Testing

When you generate a project with Elixir it automatically gives you a number of
files and directories. One of these directories is called `test` and it holds two
Expand Down Expand Up @@ -811,7 +804,6 @@ end

This is basically saying "prove to be false that zoo is equal to Animals.randomise(zoo)"

***

## Resources

Expand Down

0 comments on commit e41275c

Please sign in to comment.