Write and publish your first Elixir library

Today I published a blog post about how to write your first Elixir library and how to publish it to Hex.pm. Check it out here.

Debugging Phoenix with IEx.pry

I just published a little side-post to my blog tutorial series in Elixir and Phoenix, this time covering how to debug your application in development mode using IEx.pry!

https://medium.com/@diamondgfx/debugging-phoenix-with-iex-pry-5417256e1d11?source=tw-5dbe5bfa021a-1444659472753

Last episode in the TCP experiment series passes over 2M msg/sec (by @dbeck74)

If you are new to this series: I started experimenting with a TCP server in Elixir to receive small messages (and learn Elixir). The initial attempts didn’t go so well:

The good thing is that I have learned something at every experiment and now I think I have the tooling to start something serious in Elixir.

Compile-time work with Elixir macros

Hey there :), I wrote an article about doing work at compile time inside macros.

http://andrealeopardi.com/posts/compile-time-work-with-elixir-macros/

Third episode of my Elixir TCP experiments arrive to 250k msg/sec (by @dbeck74)

In the third episode of my Elixir TCP experiments I gained another 2.5x speedup by improving my Elixir code (being more Elixir-ish):

http://dbeck.github.io/Over-Two-Times-Speedup-By-Better-Elixir-Code/

Factor Girl with CouchDb persistence

After building my first API in Phoenixframework which serves CouchDb data to an iOS app. I found my self missing FactoryGirl. I found factory_girl_elixir, which I tried to use for persisting my couch data for testing, but didn’t like the API. So I decided to try my own implementation, for practical and didactic purposes.

Now it does simple factories that persist. But plan to add more features soon.

https://github.com/javierg/couch_factory

Benchmark Helloworld in different frameworks

When I started with Elixir and Phoenix I wanted to see with my own eyes the speed of functional approach and Erlang in comparing with other well known languages. I just want to compare the simplest possible „Hello world“ in Javascript, PHP and Elixir.

So well, the fully featured fat-lady framework Phoenix with its rounting, view, layout and template runs at the same speed like a pure NodeJS with http. And PHP plain just returning a string is not significant faster.

http://blog.rh-flow.de/2015/10/08/benchmark-helloworld-in-different-frameworks-myelixirstatus/

New Elixir TCP small message experiment reaches 100k msg/sec (by @dbeck74)

This is my second part of my experiments with Elixir TCP server programming. I am still learning this. The good news is that my msg server improved 4x over the previous one:

http://dbeck.github.io/Four-Times-Speedup-By-Throttling/

The previous one did only 22k messages / sec:

http://dbeck.github.io/simple-TCP-message-performance-in-Elixir/

Beware! I am still an Elixir beginner, don’t copy codes into production from these posts. Thank you all the nice feedbacks!

Nested Forms Part 2

https://youtu.be/od5FxqxjIzM

Dynamic nested forms

Inspiration: http://blog.plataformatec.com.br/2015/08/working-with-ecto-associations-and-embeds/ Source: https://github.com/cas27/nested

Recently released: ExMachina, a library for generating test data

Hey everyone! We’ve been working on a factory library called ExMachina: https://github.com/thoughtbot/ex_machina

We’ve been using it on a few internal projects. Here’s what we think you’ll like.

  • Makes it easy to work with belongs_to associations
  • Easy to pipe records through functions
  • Simple API with as few macros as possible

You can do cool things like

factory :user do
  %User{
    name: "Johnny",
    email: sequence(:email, &"email-#{&1}@example.com")
  }
end

def make_admin(user) do
  %{user | admin: true}
end

def with_article(user) do
  create(:article, user: user)
  user
end

build(:user) |> make_admin |> create |> with_article

Phoenix Nested Forms Part 1

Going over the basics of a has_many / belongs_to association and their nested form using phoenix.

https://youtu.be/x_Zv_BT1gKI

Writing a Blog in Phoenix and Elixir Tutorial Part 2: Authorization

I just created the second part of my blog tutorial in Phoenix, this time covering authorization, associations, and more testing!

https://medium.com/@diamondgfx/writing-a-blog-engine-in-phoenix-part-2-authorization-814c06fa7c0

Elixir Logger

Overview of the elixir logger used by Phoenix, filtering parameters in your log and how to go about writing your own logging backend.

https://youtu.be/p7tCvygCebE

Debugging with Phoenix

Learn how to debug a phoenix app, in-line inspection and configuring your IEx session to make things faster.

https://youtu.be/EBbSM6DSZnA

TCP Roundtrip performance experiment with small TCP messages (by @dbeck74)

I sent messages in a loop to an Elixir TCP server which sent back an ACK in turn. I was interested to see how many roundtrips would go per second. This is a non-scientific experiment to get an idea about the performance of this scenario.

http://dbeck.github.io/simple-TCP-message-performance-in-Elixir/

Just Pushed a Membership Backend Store

My weekend project, and I love it: https://github.com/bigmachine-io/blackbook.

Handles the basics of a membership system (no UI, just data etc).

Building docker images for Elixir applications

https://tkowal.wordpress.com/2015/10/04/building-docker-images-for-elixir-applications/

Functors, Applicatives, and Monads in Elixir

Join me as I take an exploratory look into the subject using protocols in place of Haskell’s type classes.

http://www.slogsdon.com/functors-applicatives-and-monads-in-elixir/

Serial Deprecator Jose Valim Strikes Again!

In the wake of ElixirConf 2015 and Jose Valim’s keynote address outlining the future of the language, many are left to wonder if Valim is the most dangerous language designer alive today. How many features can one man deprecate before he is stopped?

RIP HashSet, HashDict, Set, and Dict. You will be missed. By some.

We have a special report.

Instagram client for Elixir (with Phoenix auth example app)

I made a nice API client for Instagram called Elixtagram

Also includes a Phoenix user authentication example :)

Previous page Next page