@carlogilmar

Blog for share my learning experience as software developer since 2016.

Phoenix Live Views

The content below was generated for prepare a talk for the Elixir Meetup in CDMX 🇲🇽 All the drawings were drew my me. The Phoenix Live Views is an open-source project created since last October, 2018. The core maintainers are Chris McCord, Jose Valim, Alex Garibay, Gary Rennie and Scott Newcomer. Join to the Elixir Community Slack! In the next sections I’ll explain what is and how I understood that this works 😅.

Discover

Phoenix Simple App using Web Sockets

Hi! This post is for explain how to create a simple application with Phoenix and Elixir using Web Sockets. Web Sockets The Web Socket protocol based on TCP produce a bidirectional communication between client-server app, and it doesn’t need to use HTTP protocols. I created a phoenix project without ecto mix phx.new sampler --no-ecto for show a simple connection using web sockets. Create the two-way communication For start, we have to create the communication through the web socket.

Discover

Hello Elixir!

Recientemente he estado conociendo el lenguaje Elixir, un lenguaje que aprovecha la máquina virtual de Erlang, una plataforma conocida por soportar sistemas en baja latencia, sistemas distribuidos y tolerantes a fallas. Para familiarizarme con el lenguaje he optado por resolver algunos ejercicios, un par de ellos son el Fizz Buzz y Guess My Number. Fizz Buzz // My Fizzbuzz Solution in Swift for i in 1...50 { if i%5==0 && i%3==0 { print("Fizzbuzz 🍻 ") } else if i%5 == 0{ print("Buzz") } else if i%3==0{ print("Fizz") } else{ print("\(i)") } } Normalmente suelo resolver este ejercicio con una iteración, y el siempre confiable y útil IF, sin embargo, Elixir al ser un lenguaje funcional obliga a la implementación de otra solución bajo términos funcionales, aquí el primer reto.

Discover