Elixir Tip
Favorites
Most Shared
Resources
< 2014
Tips 2015
2016 >
#elixirlang v1.2.0 soft deprecates `Set` and `HashSet` in favor of `MapSet`.
[Link]
Shares:
2
Likes:
7
2015-12-31
#elixirlang v1.2.0 soft deprecates `Dict` and `HashDict` in favor of `Map`.
[Link]
Shares:
15
Likes:
21
2015-12-30
#elixirlang v1.2.0 adds the `i/1` helper to IEx, which prints info about any data type.
[Link]
Shares:
10
Likes:
24
2015-12-29
#elixirlang v1.2.0 warns when piping into an expression without parentheses.
[Link]
Shares:
2
Likes:
8
2015-12-28
#elixirlang v1.2.0 allows the pin operator `^` to be used in `fn` clauses and `for` comprehensions.
[Link]
Shares:
11
Likes:
21
2015-12-25
The docs for `Module` contains pre-defined module attributes such as `@before_compile`, `@doc`, `@vsn`.
[Link]
Shares:
3
Likes:
6
2015-12-24
Learn #elixirlang with Red:4.
[Link]
Shares:
2
Likes:
7
2015-12-23
#elixirlang v 1.2.0 RC1 has been released.
[Link]
Shares:
3
Likes:
1
2015-12-22
Build a cache with #elixirlang.
[Link]
Shares:
6
Likes:
13
2015-12-21
With #elixirlang v1.2.0, Mix is able to fetch and compile Rebar 3 dependencies.
[Link]
Shares:
17
Likes:
23
2015-12-18
#elixirlang v1.2.0 allows umbrella apps to share build and configuration files.
[Link]
Shares:
8
Likes:
12
2015-12-17
Here’s a better link for that last tweet:
[Link]
Shares:
0
Likes:
3
2015-12-16
Erlang 18.2 has been released.
[Link]
Shares:
5
Likes:
4
2015-12-16
Ecto v1.1.0 has been released.
[Link]
Shares:
6
Likes:
8
2015-12-15
Implementation details behind Phoenix websockets.
[Link]
Shares:
7
Likes:
16
2015-12-14
Elixir v1.2.0 introduces the new `with` syntax.
[Link]
Shares:
13
Likes:
9
2015-12-11
CQRS with Elixir and Phoenix.
[Link]
Shares:
10
Likes:
17
2015-12-10
#elixirlang v1.2.0 release candidate.
[Link]
Shares:
9
Likes:
5
2015-12-09
Elixir regional conference in Florida.
[Link]
Shares:
3
Likes:
6
2015-12-08
Advent of Code has some great puzzles to practice #elixirlang.
[Link]
Shares:
3
Likes:
7
2015-12-07
Phoenix v1.0.4 is available.
[Link]
Shares:
7
Likes:
13
2015-12-04
Elixir macro guards.
[Link]
Shares:
2
Likes:
6
2015-12-03
Pattern matching in Elixir/Erlang can be clearer than a recursive solution.
[Link]
Shares:
4
Likes:
5
2015-12-02
Documentation for uploading packages to Hex.pm
[Link]
Shares:
0
Likes:
2
2015-12-01
MonadEx has been published to Hex.
[Link]
Shares:
0
Likes:
6
2015-11-30
#elixirlang can learn a lot from Elm's architecture.
[Link]
Shares:
6
Likes:
12
2015-11-24
Phoenix is not Rails.
[Link]
Shares:
14
Likes:
10
2015-11-20
Make it work, make it beautiful, then make it fast.
[Link]
Shares:
9
Likes:
13
2015-11-19
Phoenix, React, and Redux.
[Link]
Shares:
9
Likes:
25
2015-11-18
Credo is a great static analysis tool for #elixirlang.
[Link]
Shares:
5
Likes:
12
2015-11-17
gettext is a library for internationalization and localization.
[Link]
Shares:
1
Likes:
6
2015-11-12
Hex.pm has over 1000 packages published.
[Link]
Shares:
9
Likes:
8
2015-11-10
Great tips for working with binaries.
[Link]
Shares:
3
Likes:
10
2015-11-09
Elixir 1.1 mix profile.fprof command.
[Link]
Shares:
0
Likes:
2
2015-11-06
Sharing tidbits through
@elixirtip
is one of the many ways I contribute to the #elixirlang community.
[Link]
Shares:
1
Likes:
11
2015-11-03
Elixir Experience provides sample problems to help learn #elixirlang.
[Link]
Shares:
3
Likes:
10
2015-11-02
It's not scary to switch to #elixirlang.
Shares:
10
Likes:
11
2015-10-30
Elixir has come a long way in a year
2014 US:
[Link]
2015 EU:
[Link]
2015 US:
[Link]
Shares:
12
Likes:
16
2015-10-28
Embedding Elixir Struct in Ecto Models.
[Link]
Shares:
2
Likes:
4
2015-10-27
Debugging Phoenix with `IEx.pry`.
[Link]
Shares:
0
Likes:
6
2015-10-26
Proposal for `with`.
[Link]
Shares:
1
Likes:
4
2015-10-23
The `for` keyword is not the typical loop seen in other languages. It's a comprehension.
[Link]
Shares:
2
Likes:
4
2015-10-22
Sigils support 8 delimiters \\ || "" '' () [] {} <>.
[Link]
Shares:
1
Likes:
1
2015-10-21
Exrm makes it easy to release Elixir apps.
[Link]
Shares:
1
Likes:
5
2015-10-20
If you haven't seen
@jessitron
's ElixirConf keynote, watch it now.
[Link]
Shares:
7
Likes:
11
2015-10-19
Unicode characters now use the format `\uXXXX` or `\u{X*}`.
[Link]
Shares:
0
Likes:
1
2015-10-16
Elixir v1.1 adds `Task.yield/2` and `Task.shutdown/2`.
[Link]
Shares:
0
Likes:
4
2015-10-15
When thinking about writing a macro, remember Data > Functions > Macros.
[Link]
Shares:
1
Likes:
4
2015-10-14
.
@ElixirConf
videos are starting to show up!
[Link]
Shares:
3
Likes:
9
2015-10-13
In `mix.exs`, `included_applications` must not include any atoms from `applications`. Otherwise, weird errors happen with `exrm`.
Shares:
0
Likes:
4
2015-10-12
PowerAssert gives visualizes your test assertions.
[Link]
Shares:
3
Likes:
5
2015-10-09
`mix help` lists all Mix commands including those from third-party sources.
[Link]
Shares:
1
Likes:
1
2015-10-08
In `mix.exs`, `applications` are other applications that start before yours. `included_applications` start after.
[Link]
Shares:
1
Likes:
6
2015-10-07
Mex is a tool for debugging macros by visualizing how they expand.
[Link]
Shares:
2
Likes:
8
2015-10-06
Elixir v1.1.0 soft deprecates `Behaviour`. Use `@callback` instead of `defcallback`.
[Link]
Shares:
5
Likes:
3
2015-10-05
Elixir v1.1.0 adds `mix profile.fprof` for easy code profiling.
[Link]
Shares:
6
Likes:
3
2015-10-02
Watch the tweets from
@elixirconf
.
[Link]
Shares:
0
Likes:
1
2015-10-02
Elixir v1.1.0 allows rebar dependencies with `mix.exs` to be compiled with Mix.
[Link]
Shares:
0
Likes:
5
2015-10-01
Elixir v1.1.0 introduces a new `MapSet` type.
[Link]
Shares:
3
Likes:
4
2015-09-30
The
@elixirphoenix
book is in beta.
[Link]
Shares:
10
Likes:
10
2015-09-30
Tomorrow is
@ElixirConf
. I can't make it this year, so have a great time for me. :)
Shares:
3
Likes:
4
2015-09-30
Elixir v1.1.0 allows tests to be skipped with `@tag :skip` or `@tag skip: "reason"`
[Link]
Shares:
6
Likes:
7
2015-09-29
Elixir v1.1.1 has been released.
[Link]
Shares:
15
Likes:
2
2015-09-29
Elixir v1.1.0 release announcement.
[Link]
Shares:
12
Likes:
4
2015-09-28
Elixir v1.1.0 allows underscores in binary, octal and hex literals.
[Link]
Shares:
1
Likes:
4
2015-09-25
Elixir v1.1.0 has been released!
[Link]
Shares:
11
Likes:
5
2015-09-25
PSA: Please update your
@elixirlang
libraries to support Elixir 1.1.0. :)
Shares:
3
Likes:
1
2015-09-25
`mix test --trace` lists all the tests as they are run and how long each took to finish.
[Link]
Shares:
20
Likes:
22
2015-09-24
`Enum.into` inserts the contents of one collection into another.
`[b: 2] |> Enum.into %{a: 1} # => %{a: 1, b: 2}`
[Link]
Shares:
1
Likes:
6
2015-09-23
Understanding the details of Erlang garbage collection.
[Link]
Shares:
11
Likes:
13
2015-09-22
In Elixir/Erlang, crashing is often a feature, not a bug. ;) #LetItCrash
Shares:
7
Likes:
6
2015-09-21
You can choose Bitwise operators or functions with `use Bitwise, :only_operators` and `use Bitwise, :skip_operators`.
[Link]
Shares:
0
Likes:
1
2015-09-18
Need to destructure two lists of different lengths? Try the `destructure` macro.
[Link]
Shares:
2
Likes:
1
2015-09-17
A struct is simply a `Map` with a special `__struct__` key indicating the module.
[Link]
Shares:
4
Likes:
5
2015-09-16
Internal dependencies are best handled with umbrella projects.
[Link]
Shares:
2
Likes:
7
2015-09-15
The #elixirlang release candidate must be compiled from source or you can download a precompiled copy.
[Link]
Shares:
0
Likes:
0
2015-09-15
Not only can you specify dependencies with Hex or Git, but you can also specify a local file path.
[Link]
Shares:
6
Likes:
5
2015-09-14
New episode of
@elixirfountain
with
@emjii
.
[Link]
Shares:
0
Likes:
1
2015-09-11
You can get the current environment with `Mix.env`. The default environments include `:dev`, `:prod`, and `:test`.
[Link]
Shares:
1
Likes:
1
2015-09-11
Lots of great discussion today on the Google group.
[Link]
Shares:
4
Likes:
1
2015-09-10
Check out
@chris_mccord
's talk about Phoenix at LoneStarRuby 2015.
[Link]
Shares:
3
Likes:
4
2015-09-09
I wrote a simple s-expression parser in #elixirlang. #myelixirstatus
[Link]
Shares:
3
Likes:
4
2015-09-07
Build your docs to use with Dash.
[Link]
Shares:
2
Likes:
9
2015-09-04
.
@ElixirConf
is four weeks from today!
Shares:
2
Likes:
2
2015-09-03
ExCoveralls reports test line coverage and optionally can post to coveralls.io.
[Link]
Shares:
2
Likes:
5
2015-08-28
.
@elixirphoenix
v1.0.0 is finally out!
[Link]
Shares:
11
Likes:
6
2015-08-28
.
@elixirphoenix
v0.17.1 has been released
[Link]
Shares:
6
Likes:
3
2015-08-27
Ecto provides several convenient Mix tasks: create, drop, migrate, rollback, gen.migration, and gen.repo.
[Link]
Shares:
6
Likes:
5
2015-08-25
Mix can run in different environments:
`MIX_ENV=prod mix run server.exs`
or
`env MIX_ENV=prod mix run server.exs`
[Link]
Shares:
0
Likes:
4
2015-08-24
.
@elixirphoenix
provides `ConnTest` and `ChannelTest` to make testing easy.
[Link]
[Link]
Shares:
2
Likes:
1
2015-08-21
.
@elixirphoenix
v0.17.0 has been released with v1.0.0 coming some time next week.
[Link]
Shares:
16
Likes:
5
2015-08-19
Support the
@elixir4rubyists
Indiegogo campaign.
[Link]
Shares:
3
Likes:
1
2015-08-12
Ecto associations and embeds by
@josevalim
.
[Link]
Shares:
6
Likes:
10
2015-08-12
How to encrypt data with Ecto.
[Link]
Shares:
4
Likes:
8
2015-08-10
How to add subdomains to Phoenix.
[Link]
Shares:
4
Likes:
8
2015-08-07
.
@elixirphoenix
v0.16 has been released.
[Link]
Shares:
1
Likes:
2
2015-08-06
New
@elixirfountain
episode with
@samueltonini
.
[Link]
Shares:
2
Likes:
10
2015-08-04
Plug v1.0.0 is coming.
[Link]
Shares:
5
Likes:
7
2015-08-03
This book is a little older, but it's a great resource for learning code generation.
[Link]
Shares:
1
Likes:
3
2015-07-28
To best understand macros, it's best to first learn about code generators and compilers.
Shares:
4
Likes:
3
2015-07-28
Binary pattern matching with PNGs.
[Link]
Shares:
1
Likes:
7
2015-07-24
Here's a list of companies using Elixir in production.
[Link]
Shares:
5
Likes:
10
2015-07-22
Don't forget about the
@ElixirConf
2015 CFP.
[Link]
Shares:
1
Likes:
1
2015-07-21
.
@elixirfountain
interview with
@chris_mccord
.
[Link]
Shares:
5
Likes:
7
2015-07-20
Another great list of resources for starting #elixirlang.
[Link]
Shares:
6
Likes:
8
2015-07-15
You can always preview the docs for the next Elixir release here:
[Link]
Shares:
2
Likes:
3
2015-07-14
ElixirConf 2015 CFP
[Link]
Shares:
2
Likes:
4
2015-07-13
New
@elixirfountain
interview with
@sasajuric
.
[Link]
Shares:
5
Likes:
7
2015-07-10
[Link]
has a great, well-formmated style guide.
[Link]
Shares:
8
Likes:
9
2015-07-08
Dash 3 is now available for those of you who use it for Elixir/Erlang. For those who don't use Dash, you should.
[Link]
Shares:
6
Likes:
9
2015-07-07
In case you missed it, check out this article about Elixir and micro services.
[Link]
Shares:
2
Likes:
9
2015-07-06
I’m back from vacation and daily tips will be resuming. #myelixirstatus
Shares:
1
Likes:
3
2015-07-06
Phoenix v0.14 has been released.
[Link]
Shares:
3
Likes:
5
2015-07-01
Elixir v1.0.5 has been released.
[Link]
Shares:
19
Likes:
5
2015-06-29
Here is a great article on mutable value chains by
@joeerl
.
[Link]
Shares:
4
Likes:
4
2015-06-19
For you emacs users that haven’t seen it yet, Alchemist v1 has been released.
[Link]
Shares:
3
Likes:
5
2015-06-18
`String.to_existing_atom/1` will attempt to find an existing atom matching the string.
[Link]
Shares:
1
Likes:
2
2015-06-10
The `ExUnit.CaptureIO` module is used to capture terminal output during tests.
[Link]
Shares:
6
Likes:
3
2015-06-09
Elixir v1.0.5 is coming.
[Link]
Shares:
10
Likes:
4
2015-06-08
Atoms are like strings, except they are global and equality is determined by simple value comparison.
Shares:
1
Likes:
0
2015-06-05
By convention, Elixir functions that end with `?` return a boolean. Functions that end with `!` crash if an error occurs.
Shares:
9
Likes:
11
2015-06-04
New to #elixirlang? Check out this article.
[Link]
Shares:
6
Likes:
10
2015-06-03
Elixir and Erlang use the actor model to manage concurrency. Here's a Wikipedia article explaining in more detail.
[Link]
Shares:
5
Likes:
4
2015-06-02
Ecto v0.12.0.rc has been released.
[Link]
Shares:
4
Likes:
1
2015-06-01
`Process.register/2` associates a name to a pid. This name can be used with `Kernel.send/2`.
[Link]
Shares:
1
Likes:
1
2015-06-01
`
[Link]
` returns debugging information about a pid.
[Link]
Shares:
2
Likes:
3
2015-05-29
`System.cmd/3` allows you to run external commands.
[Link]
Shares:
1
Likes:
1
2015-05-28
Agent is like a GenServer that holds data. Task is like a GenServer that performs an action.
[Link]
[Link]
Shares:
6
Likes:
7
2015-05-27
Don't underestimate the power of streams. They can make many tasks trivial.
[Link]
Shares:
4
Likes:
5
2015-05-22
Reaxive is a reactive event handling library based off Elm and Reactive Extensions.
[Link]
Shares:
6
Likes:
6
2015-05-21
`Code.get_docs/2` lets you get the docs from a given module.
[Link]
Shares:
3
Likes:
4
2015-05-20
The `OptionParser` module is used to parse command line arguments.
[Link]
Shares:
1
Likes:
0
2015-05-19
The `Base` module allows you to convert strings to and from base 64.
[Link]
Shares:
3
Likes:
0
2015-05-18
Strings can have their capitalization changed with the `String` module's `upcase/1`, `downcase/1`, and `capitalize/1`
[Link]
Shares:
0
Likes:
1
2015-05-15
In IEx, press ctrl+g to open the user switch command. From here you can manage shells.
[Link]
[Link]
Shares:
2
Likes:
8
2015-05-14
Upgrade your pipelines with monads.
[Link]
Shares:
2
Likes:
11
2015-05-13
Here are a couple more videos from Elixir Conf EU.
[Link]
[Link]
Shares:
2
Likes:
4
2015-05-13
Phoenix 0.13.0 has been released.
[Link]
Shares:
10
Likes:
5
2015-05-12
Here’s a cool project using Elixir and Phoenix to make ephemeral web pages.
[Link]
Shares:
3
Likes:
4
2015-05-12
Here’s a link to some ephemeral content.
[Link]
Shares:
1
Likes:
0
2015-05-12
Flashback to Elixir Conf 2014—Elixir by José Valim
[Link]
Shares:
0
Likes:
1
2015-05-12
Elixir Conf EU videos are begging to show up. Keep an eye open here:
[Link]
Shares:
5
Likes:
4
2015-05-11
Flashback to Elixir Conf 2014—Think Different by Dave Thomas
[Link]
Shares:
0
Likes:
4
2015-05-11
José Valim’s Elixir Conf EU keynote.
[Link]
Shares:
9
Likes:
17
2015-05-09
Chris McCord’s Elixir Conf EU keynote.
[Link]
Shares:
7
Likes:
19
2015-05-09
Make your modules conform to the `Inspect` protocol in order to print them in IEx.
[Link]
Shares:
5
Likes:
6
2015-05-08
The Erlang `:filename` module is great for working with file paths.
[Link]
Shares:
3
Likes:
1
2015-05-07
The `System` module lets you interact with the VM and the host system.
[Link]
Shares:
0
Likes:
2
2015-05-06
I don’t always dream about programming, but when I do it’s #elixirlang.
Shares:
2
Likes:
5
2015-05-06
Using `var!` in a macro allows you to create unhygienic macros.
[Link]
Shares:
1
Likes:
0
2015-05-05
Ecto 0.11.0 has been released.
[Link]
Shares:
16
Likes:
7
2015-05-04
`if not x do ...` is equivalent to `unless x do ...`
[Link]
Shares:
1
Likes:
2
2015-05-04
Take time to read the source code for Elixir, Phoenix, Ecto, and others. There is a lot to learns from others’ code.
Shares:
5
Likes:
5
2015-04-30
.
@elixirphoenix
has a great listing of #elixirlang resources.
[Link]
Shares:
2
Likes:
3
2015-04-28
The `__ENV__` macro returns the current environment info as a `Macro.Env` struct.
[Link]
Shares:
3
Likes:
6
2015-04-27
Blacksmith (by
@redrapids
) is a great tool for making mock data for testing.
[Link]
Shares:
8
Likes:
3
2015-04-21
`Process.spawn` can be given options such as heap size and priority for tuning your processes.
[Link]
Shares:
3
Likes:
4
2015-04-20
The `__MODULE__` macro returns the name of the current module. This is especially useful in `__using__` macros.
Shares:
2
Likes:
4
2015-04-14
@bartj3
Thanks!
Shares:
0
Likes:
0
2015-04-10
A new #elixirlang radar is available.
[Link]
Shares:
7
Likes:
6
2015-04-10
Today marks one year of Elixir Tips!
Shares:
6
Likes:
11
2015-04-10
#elixirlang v1.0.4 has been released.
[Link]
Shares:
33
Likes:
12
2015-04-07
.
@elixirlang
v1.0.4 is coming. Take some time to test it out.
[Link]
Shares:
18
Likes:
5
2015-04-02
Get 35% off Programming Elixir and Metaprogramming Elixir with code “randy_lives_8675309”.
[Link]
[Link]
Shares:
31
Likes:
18
2015-04-01
April Fool’s prank to play on #elixirlang devs tomorrow: Change their terminal prompt to `iex(1)>`.
Shares:
3
Likes:
6
2015-03-31
Erlang Factory videos are being uploaded to YouTube.
[Link]
Shares:
19
Likes:
20
2015-03-27
Don’t miss out on
@josevalim
’s #ErlangFactory talk.
[Link]
Shares:
8
Likes:
10
2015-03-27
`IEx.configure/1` lets you customize your IEx shell.
[Link]
Shares:
1
Likes:
1
2015-03-25
Another list of great Elixir resources.
[Link]
Shares:
8
Likes:
8
2015-03-20
When starting IEx, it looks for a local and/or global .iex.exs file to run. This can be used for configuring IEx.
[Link]
Shares:
4
Likes:
5
2015-03-18
List of great tricks in Erlang.
[Link]
Shares:
13
Likes:
22
2015-03-13
Erlang’s IOLists are a great tool.
[Link]
Shares:
5
Likes:
7
2015-03-11
A great shirt for #elixirlang devs.
[Link]
Shares:
1
Likes:
2
2015-03-10
Phoenix v0.10.0 has been released.
[Link]
[Link]
Shares:
14
Likes:
8
2015-03-08
Periodic reminder that the #elixirlang cheat sheet is a great reference.
[Link]
Shares:
15
Likes:
25
2015-03-07
Erlang has several data structures without Elixir equivalents, ex:
* gb_trees
* gb_sets
* digraph
* orddict
* ordsets
* queue
Shares:
4
Likes:
11
2015-03-05
Traverse nested structures with `get_in`, `update_in`, `put_in`, and `get_and_update_in`.
Shares:
1
Likes:
8
2015-03-04
The ternary conditional (? :) from C-based languages, can be simulated with && and ||. For example:
is_it_true && "TRUE" || "FALSE"
Shares:
8
Likes:
26
2015-03-04
Custom collectables can be great with `for` comprehensions.
[Link]
[Link]
Shares:
2
Likes:
1
2015-02-27
If you have a stray parenthesis in IEx, you can cancel that statement using `#iex:break` without restarting IEx.
[Link]
Shares:
2
Likes:
11
2015-02-26
ExDoc provides a mix task for generating documentation.
[Link]
Shares:
3
Likes:
1
2015-02-25
Within `defimpl`, `@protocol` holds the protocol name and `@for` holds the target module name. Useful when making macros and behaviours.
Shares:
1
Likes:
3
2015-02-24
Early bird ticket prices for Erlang Factory SF end in 15 hours.
[Link]
Shares:
0
Likes:
0
2015-02-23
Elixir has several macros for specifying types for static analysis tools, such as Dialyzer.
[Link]
Shares:
1
Likes:
2
2015-02-19
Use the `IO.ANSI` module to write different colors, fonts, etc. to the terminal.
[Link]
Shares:
1
Likes:
2
2015-02-18
When pipelininig a `Stream`, use `Stream.run/1` to eagerly evaluate the pipeline while ignoring the return value(s).
[Link]
Shares:
2
Likes:
0
2015-02-17
#ElixirLang 1.0.3 has been released.
[Link]
Shares:
22
Likes:
8
2015-02-12
Ecto is a DSL for interacting with databases in #ElixirLang. It’s works nicely with
@elixirphoenix
.
[Link]
Shares:
3
Likes:
7
2015-02-11
If you need simple state storage, `Agent` is often a better choice than `GenServer`.
Shares:
3
Likes:
3
2015-02-10
Use `quote` to see the AST representation of Elixir code. For example:
quote do: 1 + 3 * 5
[Link]
Shares:
8
Likes:
13
2015-02-09
If your tests have a lot of repeated boilerplate, use ShouldI by
@redrapids
.
[Link]
Shares:
2
Likes:
6
2015-02-03
Insert `IEx.pry` in your code to create “breakpoints” while running your code in IEx.
[Link]
Shares:
10
Likes:
15
2015-01-30
Only some expressions can be used in guards. However, macros using only those expressions can be used in guards.
[Link]
Shares:
0
Likes:
1
2015-01-29
Metaprogramming Elixir is now available. Congrats
@chris_mccord
.
[Link]
Shares:
8
Likes:
12
2015-01-28
Get Programming Elixir 35% off with code “ElixirCatchup”.
[Link]
Shares:
37
Likes:
25
2015-01-28
In IEx, `v` shows your history of expressions. `v(-1)` returns the result of your most recent expression.
[Link]
Shares:
3
Likes:
6
2015-01-27
The `&` macro has several uses, including:
&(&1 + 42)
&Kernel.is_atom/1
&{&1, &2}
&[&1|&2]
&”Hello #{&1}”
[Link]
Shares:
6
Likes:
10
2015-01-22
`defmodule` can be given dynamic names, great for macros.
defmodule String.to_atom("Foo#{1}") do
# ...
end
[Link]
Shares:
8
Likes:
5
2015-01-21
`h/0` and `h/1’ shows help in IEx. Here are some to try:
h
h IEx
h for
h Stream
Shares:
2
Likes:
3
2015-01-20
Protocols can have default implementations by adding `@fallback_to_any true` in the protocol and implementing the protocol for `Any`.
Shares:
1
Likes:
2
2015-01-19
`defprotocol`/`defimpl` allow for creating/implementing common interfaces between different Elixir modules.
Shares:
2
Likes:
1
2015-01-16
Erlang Factory has some Elixir talks. There is also an optional half-day Elixir training. Check out the schedule.
[Link]
Shares:
3
Likes:
1
2015-01-15
The `Stream` module is a composable, lazy enumerable. It makes it easy to work with large or infinite data.
[Link]
Shares:
7
Likes:
6
2015-01-14
Dialyzer is a static analysis tool for finding type errors and other problems.
[Link]
Shares:
2
Likes:
1
2015-01-13
If you need many processes to generate many random numbers at the same time, `:crypto.rand_uniform/2` is better than `:random.uniform/1`.
Shares:
3
Likes:
8
2015-01-06
Here are a couple examples of how to add currying to Elixir using macros:
*
[Link]
*
[Link]
Shares:
5
Likes:
12
2015-01-05
< 2014
2016 >